> ## 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.

# List SMS logs

> Returns a cursor-paginated list of SMS log entries for your organization, newest first. Entries contain delivery metadata (direction, phone numbers, timestamps) — message bodies are not stored.



## OpenAPI

````yaml get /v2/sms-logs
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:
    get:
      tags:
        - SMS
      summary: List SMS logs
      description: >-
        Returns a cursor-paginated list of SMS log entries for your
        organization, newest first. Entries contain delivery metadata
        (direction, phone numbers, timestamps) — message bodies are not stored.
      operationId: listSmsLogs
      parameters:
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/Cursor'
        - name: direction
          in: query
          schema:
            type: string
            enum:
              - inbound
              - outbound
          description: Filter by message direction.
        - name: from_number
          in: query
          schema:
            type: string
          description: Filter by sender phone number (partial match).
        - name: to_number
          in: query
          schema:
            type: string
          description: Filter by recipient phone number (partial match).
        - name: from_date
          in: query
          schema:
            type: string
            format: date-time
          description: Filter messages logged on or after this ISO 8601 timestamp.
        - name: to_date
          in: query
          schema:
            type: string
            format: date-time
          description: Filter messages logged on or before this ISO 8601 timestamp.
      responses:
        '200':
          description: Paginated list of SMS log entries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSmsLogsResponse'
              example:
                sms_logs:
                  - id: 62
                    direction: outbound
                    from_number: '+16625658792'
                    to_number: '+17189153182'
                    session_id: null
                    created_at: '2026-07-10T10:00:00.000Z'
                has_more: true
                next_cursor: '61'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    PageSize:
      name: page_size
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
      description: Number of records per page (default 50, max 100).
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
      description: Opaque pagination cursor returned by the previous response.
  schemas:
    ListSmsLogsResponse:
      allOf:
        - $ref: '#/components/schemas/PaginationMeta'
        - type: object
          required:
            - sms_logs
            - has_more
          properties:
            sms_logs:
              type: array
              items:
                $ref: '#/components/schemas/SmsLogResponse'
    PaginationMeta:
      type: object
      properties:
        has_more:
          type: boolean
          description: Whether more records exist after this page.
        next_cursor:
          type: string
          description: Opaque cursor to pass as `cursor` in the next request.
    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'
    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.

````