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

# List received SMS messages

> Lists SMS messages received on one of your organization's numbers, oldest first.

Results are paginated. If `next_url` is non-null, send a GET request to it (with the same credentials) to fetch the
next page. When `next_url` is null, you've reached the most recent message.



## OpenAPI

````yaml https://app.goguava.ai/openapi.json get /v1/sms/messages
openapi: 3.1.0
info:
  title: Guava API Server
  version: guava-release-0.51.0
servers:
  - url: https://app.goguava.ai
security: []
paths:
  /v1/sms/messages:
    get:
      tags:
        - SMS
      summary: List received SMS messages
      description: >-
        Lists SMS messages received on one of your organization's numbers,
        oldest first.


        Results are paginated. If `next_url` is non-null, send a GET request to
        it (with the same credentials) to fetch the

        next page. When `next_url` is null, you've reached the most recent
        message.
      operationId: api_list_sms_messages_v1_sms_messages_get
      parameters:
        - name: to_number
          in: query
          required: true
          schema:
            type: string
            pattern: ^\+[1-9]\d{1,14}$
            description: >-
              Your organization's number to list received messages for, in E.164
              format.
            examples:
              - '+14155550100'
            title: To Number
          description: >-
            Your organization's number to list received messages for, in E.164
            format.
        - name: received_after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: >-
              Only return messages received strictly after this time, as an ISO
              8601 timestamp. Timestamps without an offset are treated as UTC.
              Defaults to returning all messages.
            examples:
              - '2026-10-19T17:00:00Z'
            title: Received After
          description: >-
            Only return messages received strictly after this time, as an ISO
            8601 timestamp. Timestamps without an offset are treated as UTC.
            Defaults to returning all messages.
        - name: from_number
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^\+[1-9]\d{1,14}$
              - type: 'null'
            description: Only return messages from this sender, in E.164 format.
            examples:
              - '+14155550123'
            title: From Number
          description: Only return messages from this sender, in E.164 format.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Maximum number of messages per page.
            default: 50
            title: Limit
          description: Maximum number of messages per page.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SMSMessagePage'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Your account has an unresolved billing issue.
        '404':
          description: '`to_number` isn''t owned by your organization.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKey: []
components:
  schemas:
    SMSMessagePage:
      properties:
        results:
          items:
            $ref: '#/components/schemas/SMSMessage'
          type: array
          title: Results
          description: Results on this page.
        next_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Url
          description: >-
            URL of the next page of results, or null if this is the last page.
            Send a GET request to it as-is.
      type: object
      required:
        - results
      title: SMSMessagePage
    ErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SMSMessage:
      properties:
        id:
          type: string
          title: Id
          description: Unique ID of the message.
          examples:
            - 6710a3f2c1e4b5a6d7e8f901
        from_number:
          type: string
          title: From Number
          description: Sender, in E.164 format.
          examples:
            - '+14155550123'
        to_number:
          type: string
          title: To Number
          description: >-
            Your organization's number that received the message, in E.164
            format.
          examples:
            - '+14155550100'
        content:
          type: string
          title: Content
          description: Message body.
          examples:
            - Yes, 3pm works for me.
        received_at:
          type: string
          format: date-time
          title: Received At
          description: When Guava received the message, in UTC.
        direction:
          type: string
          title: Direction
          description: Always `inbound`.
          examples:
            - inbound
      type: object
      required:
        - id
        - from_number
        - to_number
        - content
        - received_at
        - direction
      title: SMSMessage
      description: An inbound SMS message received on one of your organization's numbers.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKey:
      type: http
      description: 'A Guava API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.