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

# Email Messages Get

> Inspect one authorized email, recipient headers and bounded recent events. Use detailed mode for stored HTML/text; use email_messages_events_list for the full timeline. Personal keys only; current scope, project grants and role capability are required. Billing is excluded.

Requires a scoped personal key, explicit project context and current role authorization. See [Agent messaging and project operations](https://docs.sendrealm.com/tutorials/agent-messaging-project-operations.md) for review, execution receipts and recovery.


## OpenAPI

````yaml api-reference/openapi.json POST /project-operations/email_messages_get
openapi: 3.0.1
info:
  title: Sendrealm API
  description: >-
    API for email, push, audience resources, domains, campaign drafts,
    templates, events, topics, and automations
  license:
    name: MIT
  version: 0.4.0
servers:
  - url: https://api.sendrealm.com
security:
  - bearerAuth: []
paths:
  /project-operations/email_messages_get:
    post:
      tags:
        - Agent project operations
      summary: >-
        Inspect authorized delivery history. Lists are concise; detail includes
        content and bounded diagnostics, never provider secrets or tokens.
      description: >-
        Inspect one authorized email, recipient headers and bounded recent
        events. Use detailed mode for stored HTML/text; use
        email_messages_events_list for the full timeline. Personal keys only;
        current scope, project grants and role capability are required. Billing
        is excluded.
      operationId: email_messages_get
      parameters:
        - name: X-Sendrealm-Project-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpPhaseTwoEmailMessagesGet'
      responses:
        '200':
          description: Authorized result, preparation, or durable execution receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  data:
                    $ref: '#/components/schemas/McpProjectEmailMessage'
                additionalProperties: false
                required:
                  - status
                  - data
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Personal credential required or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Scope, current role or project grant denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource unavailable or feature disabled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Stale preparation or conflicting resource state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Operational content validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    McpPhaseTwoEmailMessagesGet:
      type: object
      additionalProperties: false
      properties:
        id:
          type: string
          maxLength: 36
          format: uuid
          description: >-
            UUID returned by the matching discovery tool in the selected
            project.
      required:
        - id
      x-sendrealm-mcp-contract: true
    McpProjectEmailMessage:
      type: object
      properties:
        id:
          type: string
          format: uuid
        subject:
          type: string
        from:
          type: string
        status:
          type: string
        last_event:
          type: string
        domain_id:
          type: string
          format: uuid
        broadcast_id:
          type: string
          nullable: true
        automation_run_id:
          type: string
          nullable: true
        html:
          type: string
          nullable: true
        text:
          type: string
          nullable: true
        events:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
              created_at:
                type: string
            additionalProperties: false
            required:
              - id
              - type
              - created_at
      additionalProperties:
        $ref: '#/components/schemas/McpJsonValue'
      required:
        - id
        - subject
        - from
        - status
      x-sendrealm-mcp-contract: true
    Error:
      type: object
      required:
        - status
        - error
      properties:
        status:
          type: integer
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              $ref: '#/components/schemas/JsonValue'
            issues:
              type: array
              items:
                $ref: '#/components/schemas/ValidationIssue'
    McpJsonValue:
      oneOf:
        - type: string
          nullable: true
        - type: number
        - type: boolean
        - type: array
          items:
            $ref: '#/components/schemas/McpJsonValue'
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/McpJsonValue'
      description: >-
        JSON application data. Do not include credentials or unnecessary
        personal data.
      x-sendrealm-mcp-contract: true
    JsonValue:
      oneOf:
        - type: string
          nullable: true
        - type: number
        - type: boolean
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
    ValidationIssue:
      type: object
      required:
        - code
        - path
        - message
      properties:
        code:
          type: string
        path:
          type: string
          nullable: true
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Integration key for backend workloads, or a scoped personal key
        (sr_user_) for account discovery and supported project operations. MCP
        accepts only personal keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.