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

# Get phonesmsthreads



## OpenAPI

````yaml /openapi.json get /phone/sms/threads
openapi: 3.1.1
info:
  title: Anima API
  version: 0.1.0
  description: >-
    The Anima API provides programmatic access to unified infrastructure for AI
    agents: create and manage agents; send and receive email; place phone calls
    and send/receive SMS and voice; store and retrieve vault credentials; manage
    agent identity; and configure webhooks for real-time events. Authenticate
    using a Bearer token or an API key passed via the X-API-Key header.
  contact:
    name: Anima Labs
    url: https://useanima.sh
    email: support@useanima.sh
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.useanima.sh/v1
    description: Production
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /phone/sms/threads:
    get:
      operationId: phone.listSmsThreads
      parameters:
        - name: agentId
          in: query
          schema:
            type: string
            description: >-
              Filter conversations to one agent. Optional for master keys (omit
              for every agent in the org); ignored for agent keys, which always
              see only their own.
          allowEmptyValue: true
          allowReserved: true
        - name: limit
          in: query
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
            description: Maximum conversations to return per page (1–100, default 20)
          allowEmptyValue: true
          allowReserved: true
        - name: offset
          in: query
          schema:
            default: 0
            type: integer
            minimum: 0
            description: Conversations to skip, for paging through the list
          allowEmptyValue: true
          allowReserved: true
        - name: unread
          in: query
          schema:
            type: boolean
            description: >-
              When true, return only conversations with at least one unread
              message
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        threadId:
                          type: string
                          description: >-
                            Conversation identifier — the id of its first
                            message
                        agentId:
                          type: string
                          description: Agent that owns this conversation
                        participantAddress:
                          type: string
                          description: >-
                            The counterparty's phone number (E.164) — the other
                            end of the conversation
                        agentAddress:
                          type: string
                          description: >-
                            The agent's own phone number used in this
                            conversation
                        lastMessageAt:
                          type: string
                          format: date-time
                          description: Timestamp of the most recent message
                        lastMessageSnippet:
                          type: string
                          description: >-
                            First 140 characters of the most recent message's
                            body
                        lastMessageDirection:
                          enum:
                            - INBOUND
                            - OUTBOUND
                          type: string
                          description: Direction of the most recent message
                        messageCount:
                          type: integer
                          description: Total messages in the conversation
                        unreadCount:
                          type: integer
                          description: >-
                            How many of them still carry the `unread` label.
                            Inbound texts start unread, so this is what a
                            conversation list needs to be triageable at all.
                      required:
                        - threadId
                        - agentId
                        - participantAddress
                        - agentAddress
                        - lastMessageAt
                        - lastMessageSnippet
                        - lastMessageDirection
                        - messageCount
                        - unreadCount
                      description: >-
                        Summary of one SMS/MMS conversation between an agent and
                        a phone number
                    description: Conversation summaries, newest activity first
                  total:
                    type: integer
                    description: Total conversations matching the query
                  hasMore:
                    type: boolean
                    description: Whether more conversations exist past this page
                required:
                  - items
                  - total
                  - hasMore
                description: Paginated list of SMS conversations
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Bearer token obtained from authentication. Pass as: Authorization:
        Bearer <token>
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key for programmatic access. Pass as: X-API-Key: <your-key>'

````