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

# Retrieve message details

> Fetches detailed tracking information for a specific message, including all associated events.



## OpenAPI

````yaml /openapi.json get /activity/messages/{id}
openapi: 3.1.0
info:
  description: Helo API
  version: 1.0.0-beta.1
  title: Helo API
servers:
  - url: https://api.helohq.com
security: []
tags:
  - name: Activity
    description: >-
      Track and retrieve message activity, including messages, delivery and
      engagement events.
  - name: Broadcasts
    description: Manage and track broadcast email campaigns.
  - name: Channels
    description: Create and manage communication channels for organizing messages.
  - name: Domains
    description: Register, verify, and manage domains for email sending.
  - name: Sending
    description: Send transactional and broadcast emails.
  - name: Statistics
    description: Access activity statistics.
  - name: Webhooks
    description: Create and manage webhooks for event notifications.
paths:
  /activity/messages/{id}:
    get:
      tags:
        - Activity
      summary: Retrieve message details
      description: >-
        Fetches detailed tracking information for a specific message, including
        all associated events.
      operationId: Activity_retrieveMessage
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageDetailsResponse'
        '401':
          description: Unauthorized
          content:
            application/json: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: ruby
          source: |-
            Helo.configure do |config|
              config.api_key = ENV.fetch("HELO_API_KEY")
            end

            id = "550e8400-e29b-41d4-a716-446655440000"
            Helo::Activity.retrieve_message(id)
        - lang: javascript
          source: |-
            import Helo from "@helo-email/sdk";

            const apiKey = process.env.HELO_API_KEY;
            const helo = new Helo(apiKey);

            const result = await helo.activity.retrieveMessage(
              "550e8400-e29b-41d4-a716-446655440000",
            );
        - lang: go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/helo-email/helo-sdk-go\"\n)\n\nfunc main() {\n\tclient := helo.NewHelo(os.Getenv(\"HELO_API_KEY\"))\n\tctx := context.Background()\n\n\tresult, err := client.Activity.RetrieveMessage(ctx, \"550e8400-e29b-41d4-a716-446655440000\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t_ = result\n}"
        - lang: csharp
          source: var message = await helo.Activity.RetrieveMessage("message-id");
        - lang: python
          source: |-
            import sdk_helo_email as helo

            client = helo.Helo()  # reads HELO_API_KEY from the environment

            message = client.activity.retrieve_message("message-id")
components:
  schemas:
    MessageDetailsResponse:
      type: object
      properties:
        messageId:
          type: string
          format: uuid
        channelId:
          type: string
          format: uuid
        timestamp:
          type: string
          format: date-time
        mailType:
          type: string
          enum:
            - transactional
            - broadcast
        mailSource:
          type: string
          enum:
            - api
            - smtp
        deliveryType:
          type: string
          enum:
            - live
            - sandbox
        status:
          type: string
          enum:
            - queued
            - sent
        subject:
          type: string
        from:
          $ref: '#/components/schemas/ActivityMailAddress'
        to:
          type: array
          items:
            $ref: '#/components/schemas/ActivityMailAddress'
        cc:
          type: array
          items:
            $ref: '#/components/schemas/ActivityMailAddress'
        bcc:
          type: array
          items:
            $ref: '#/components/schemas/ActivityMailAddress'
        replyTo:
          type: array
          items:
            $ref: '#/components/schemas/ActivityMailAddress'
        text:
          type: string
        html:
          type: string
        body:
          type: string
        tags:
          type: array
          items:
            type: string
        headers:
          type: object
        metadata:
          type: object
        attachments:
          type: array
          items:
            type: object
            properties:
              fileName:
                type: string
              disposition:
                type: string
                enum:
                  - inline
                  - attachment
              size:
                type: number
            required:
              - fileName
              - disposition
              - size
        tracking:
          type: object
          properties:
            links:
              type: boolean
            opens:
              type: boolean
          required:
            - links
            - opens
        events:
          type: array
          items:
            type: object
            properties:
              eventType:
                $ref: '#/components/schemas/EventType'
              timestamp:
                type: string
                format: date-time
              recipients:
                type: array
                items:
                  type: string
              details:
                type: object
            required:
              - eventType
              - timestamp
              - recipients
      required:
        - messageId
        - channelId
        - timestamp
        - mailType
        - mailSource
        - deliveryType
        - status
        - subject
        - from
        - to
        - tracking
        - events
    ErrorResponse:
      description: Standard error response body.
      type: object
      properties:
        type:
          description: A URI reference identifying the problem type.
          type: string
        title:
          description: Short, human-readable summary of the problem.
          type: string
        instance:
          description: URI reference identifying the specific occurrence of the problem.
          type: string
        status:
          description: HTTP status code.
          type: integer
          format: int32
        code:
          description: Application-specific error code.
          type: string
        detail:
          description: Human-readable explanation of this specific occurrence.
          type: string
        requestId:
          description: Unique request ID, useful for support correlation.
          type: string
        errors:
          description: Field-level validation errors, keyed by field name.
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/ValidationError'
    ActivityMailAddress:
      type: object
      properties:
        email:
          type: string
          format: email
        name:
          type: string
      required:
        - email
    EventType:
      type: string
      enum:
        - accepted
        - processed
        - delivered
        - bounced
        - opened
        - clicked
        - complained
        - unsubscribed
        - resubscribed
    ValidationError:
      description: A single field validation error.
      required:
        - message
      type: object
      properties:
        message:
          description: Description of the validation failure.
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````