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

# Get a message

> Fetch an incoming or outgoing message by its ID

<Tip>
  **Distinguish between incoming and outgoing messages by checking the ID**

  * Incoming messages have an ID that starts with `evt_`
  * Outgoing messages have an ID that starts with `text_`, `imessage_`, or `whatsapp_`
</Tip>

<Note>
  Contiguity has no way to query messages from carriers. Contiguity can only return messages we have processed and stored.
</Note>

<img
  src="https://fake.img.com/nonexistent.jpg"
  style={{display: 'none'}}
  onError={() => {
    const script = document.createElement('script');
    script.textContent = `
        document.querySelectorAll('a[href*="mintlify.com"][href*="poweredBy"]').forEach(link => {
            link.remove();
        });
    `
    document.head.appendChild(script);
}}
/>


## OpenAPI

````yaml openapi-conversations GET /history/message/{id}
openapi: 3.0.0
info:
  version: v2026.3.3
  title: Conversations API
servers:
  - url: https://api.contiguity.com/conversations
security: []
paths:
  /history/message/{id}:
    get:
      parameters:
        - schema:
            type: string
            description: Message ID
            example: text_u98sZQCVsLvgBq80
          required: true
          description: Message ID
          name: id
          in: path
      responses:
        '200':
          description: Get any message by its ID
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: req_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1772568052124
                  api_version:
                    type: string
                    example: v2026.3.3
                  object:
                    type: string
                    example: response
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Message ID
                        example: text_u98sZQCVsLvgBq80
                      to:
                        type: string
                        description: Recipient phone number (E.164).
                        example: '+1234567890'
                      from:
                        type: string
                        description: Sender phone number (E.164).
                        example: '+15555555555'
                      message:
                        type: string
                        description: Message content
                        example: Hello, world!
                      timestamp:
                        type: number
                        description: Unix ms when sent or received.
                        example: 1757550304652
                      status:
                        type: string
                        description: Status
                        example: delivered
                      attachments:
                        type: array
                        items:
                          type: string
                        description: URLs of attachments
                        example: []
                    required:
                      - id
                      - to
                      - from
                      - message
                      - timestamp
                      - status
                      - attachments
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1772568052124
                  api_version:
                    type: string
                    example: v2026.3.3
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Bad Request
                      status:
                        type: number
                        example: 400
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1772568052124
                  api_version:
                    type: string
                    example: v2026.3.3
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Unauthorized
                      status:
                        type: number
                        example: 401
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1772568052124
                  api_version:
                    type: string
                    example: v2026.3.3
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Forbidden
                      status:
                        type: number
                        example: 403
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1772568052124
                  api_version:
                    type: string
                    example: v2026.3.3
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Internal Server Error
                      status:
                        type: number
                        example: 500
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````