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

# Get an SMS log

> Returns a single SMS log entry enriched with message details fetched live from the SMS provider: message body, delivery status, sent/delivered timestamps, and failure reason. If provider details are unavailable, the entry is returned with `status: "unknown"` and null detail fields.



## OpenAPI

````yaml get /v2/sms-logs/{sms_log_id}
openapi: 3.0.3
info:
  title: OpenMic External API v2
  version: '2.0'
  description: >-
    The OpenMic External API (v2) provides programmatic access to agents, calls,

    phone numbers, tools, contact lists, campaigns, and voices.


    ## Authentication

    All endpoints require an API key passed as a Bearer token in the

    `Authorization` header:

    ```

    Authorization: Bearer <your_api_key>

    ```


    ## Rate Limiting

    Most endpoints are limited to **100 requests per minute** per organization.

    The `POST /create-phone-call` endpoint has a stricter limit of **5 requests
    per minute**.
  contact:
    name: OpenMic Support
servers:
  - url: https://api.openmic.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Auth
    description: Verify API key identity.
  - name: Agents
    description: Create and manage voice AI agents.
  - name: Calls
    description: Initiate and track phone calls.
  - name: Phone Numbers
    description: Manage phone numbers and agent assignments.
  - name: Tools
    description: Manage agent tools (API requests, call transfers, etc.).
  - name: Contact Lists
    description: Manage contact lists and individual contacts.
  - name: Campaigns
    description: Create and manage outbound dialing campaigns.
  - name: Voices
    description: Browse available voices for agents.
  - name: SMS
    description: Send SMS messages.
paths:
  /v2/sms-logs/{sms_log_id}:
    get:
      tags:
        - SMS
      summary: Get an SMS log
      description: >-
        Returns a single SMS log entry enriched with message details fetched
        live from the SMS provider: message body, delivery status,
        sent/delivered timestamps, and failure reason. If provider details are
        unavailable, the entry is returned with `status: "unknown"` and null
        detail fields.
      operationId: getSmsLog
      parameters:
        - name: sms_log_id
          in: path
          required: true
          schema:
            type: integer
          description: SMS log entry ID from the list endpoint.
      responses:
        '200':
          description: SMS log entry with message details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsLogDetailResponse'
              example:
                id: 62
                direction: outbound
                from_number: '+16625658792'
                to_number: '+17189153182'
                session_id: null
                created_at: '2026-07-10T10:00:00.000Z'
                status: delivered
                message: >-
                  Hello from OpenMic! Here is your appointment link:
                  https://example.com/book
                sent_at: '2026-07-10T10:00:01.000Z'
                delivered_at: '2026-07-10T10:00:03.000Z'
                failure_reason: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    SmsLogDetailResponse:
      allOf:
        - $ref: '#/components/schemas/SmsLogResponse'
        - type: object
          required:
            - status
          properties:
            status:
              type: string
              enum:
                - delivered
                - failed
                - sent
                - queued
                - unknown
              description: >-
                Delivery status reported by the SMS provider. `unknown` when
                provider details are unavailable.
            message:
              type: string
              nullable: true
              description: The message body, fetched from the SMS provider.
              example: Hello from OpenMic!
            sent_at:
              type: string
              format: date-time
              nullable: true
              description: When the message was sent by the provider.
            delivered_at:
              type: string
              format: date-time
              nullable: true
              description: When the message was delivered.
            failure_reason:
              type: string
              nullable: true
              description: Reason the message failed, if delivery failed.
    SmsLogResponse:
      type: object
      required:
        - id
        - direction
        - to_number
        - created_at
      properties:
        id:
          type: integer
          description: Unique SMS log entry identifier.
          example: 42
        direction:
          type: string
          enum:
            - inbound
            - outbound
          description: Message direction relative to your organization.
        from_number:
          type: string
          nullable: true
          description: The phone number the message was sent from.
          example: '+16625658792'
        to_number:
          type: string
          description: The phone number the message was sent to.
          example: '+17189153182'
        session_id:
          type: string
          nullable: true
          description: >-
            ID of the linked session when the message was part of an SMS
            conversation.
        created_at:
          type: string
          format: date-time
          description: When the message was logged.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        details:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              message:
                type: string
              error:
                type: string
              retryAfter:
                type: integer
    InternalServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from the OpenMic dashboard.

````