> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notifique.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Detalhe do e-mail recebido

> Detalhe com `bodyText`, `bodyHtml`, threading (`mimeMessageId`, `inReplyTo`, `references`), `rawMetadata` e `emailDomain`. Escopo **`email:inbound:read`**. Domínio fora dos `domainIds` da chave → **404** (não vaza existência).



## OpenAPI

````yaml /es/emails-api/api-reference/openapi-email.json get /v1/email/inbound/{id}
openapi: 3.0.3
info:
  title: Notifique API. E-mail
  description: >-
    Envie e-mails, gerencie domínios (envio e recebimento inbound), e consulte
    status. Autentique com `Authorization: Bearer sk_live_...` ou `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfEmailBearerAuth: []
  - ntfEmailApiKeyHeader: []
tags:
  - name: E-mail
    description: Envio e consulta de e-mails
  - name: Domínios
    description: Registro, verificação DNS (envio e inbound)
  - name: E-mails recebidos
    description: Listagem e detalhe de e-mails inbound persistidos (`email:inbound:read`)
  - name: Dominios
paths:
  /v1/email/inbound/{id}:
    get:
      tags:
        - E-mails recebidos
      summary: Detalhe do e-mail recebido
      description: >-
        Detalhe com `bodyText`, `bodyHtml`, threading (`mimeMessageId`,
        `inReplyTo`, `references`), `rawMetadata` e `emailDomain`. Escopo
        **`email:inbound:read`**. Domínio fora dos `domainIds` da chave →
        **404** (não vaza existência).
      operationId: ntfEmail_getV1EmailInboundById
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: E-mail inbound encontrado.
          content:
            application/json:
              example:
                success: true
                data:
                  id: clinb_01H...
                  from: cliente@externo.com
                  to: suporte@seudominio.com
                  subject: Dúvida sobre pedido
                  bodyText: 'Olá, gostaria de saber o status do pedido #1234.'
                  bodyHtml: '<p>Olá, gostaria de saber o status do pedido #1234.</p>'
                  mimeMessageId: <abc@externo.com>
                  inReplyTo: null
                  references: null
                  createdAt: '2026-08-14T15:00:00.000Z'
                  emailDomainId: cldom_01H...
                  rawMetadata:
                    receivedVia: mx
                  emailDomain:
                    id: cldom_01H...
                    domain: seudominio.com
              schema:
                $ref: '#/components/schemas/ntfEmail_GetV1EmailInboundByIdResponse'
        '401':
          description: API Key ausente ou inválida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfEmail_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
        '403':
          description: Escopo email:inbound:read ausente.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfEmail_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
        '404':
          description: >-
            Não encontrado ou domínio fora da chave (mesma resposta — não vaza
            existência).
          content:
            application/json:
              example:
                success: false
                error: Not Found
                message: Inbound email not found
                code: NOT_FOUND
components:
  schemas:
    ntfEmail_GetV1EmailInboundByIdResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            id:
              type: string
            from:
              type: string
            to:
              type: string
            subject:
              type: string
            bodyText:
              type: string
            bodyHtml:
              type: string
            mimeMessageId:
              type: string
            inReplyTo:
              nullable: true
            references:
              nullable: true
            createdAt:
              type: string
            emailDomainId:
              type: string
            rawMetadata:
              type: object
              properties:
                receivedVia:
                  type: string
            emailDomain:
              type: object
              properties:
                id:
                  type: string
                domain:
                  type: string
      example:
        success: true
        data:
          id: clxx...
          from: '5511999999999'
          to: '5511999999999'
          subject: string
          bodyText: string
          bodyHtml: string
          mimeMessageId: clxx...
          createdAt: string
          emailDomainId: clxx...
          rawMetadata:
            receivedVia: string
          emailDomain:
            id: clxx...
            domain: string
    NtfEmail_ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          description: 'Rótulo HTTP do erro (ex.: Unauthorized, Bad Request, Not Found).'
        message:
          type: string
          description: >-
            Mensagem legível para exibir ao usuário (localizada via
            Accept-Language / x-locale quando aplicável).
        code:
          type: string
          description: >-
            Código estável da API v1 (enum). Sempre presente em erros. Use com o
            status HTTP para decidir retry ou correção. Ver [Respostas de
            erro](/guides/conceitos/resposta-de-erros).
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
        data:
          type: object
          description: 'Dados adicionais em alguns erros (ex.: status do e-mail em cancel).'
          properties:
            status:
              type: string
              example: QUEUED
            id:
              type: string
              example: clxx...
            domain:
              type: string
              example: seudominio.com
      required:
        - success
        - error
        - message
        - code
      example:
        success: false
        error: string
        message: string
        code: string
        details:
          - field: string
            message: string
        data: {}
  securitySchemes:
    ntfEmailBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API Key no header Authorization. Exemplo: `Authorization: Bearer
        sk_live_xxxxx`
    ntfEmailApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key no header x-api-key. Exemplo: `x-api-key: sk_live_xxxxx`'

````