textforagents-com Messages API

The Messages API from textforagents-com — 3 operation(s) for messages.

Operations 3

GET /v1/messages List Messages #
POST /v1/messages/preview Preview Message #
POST /v1/messages/send Send Message #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/textforagents-com:textforagents-com-messages-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

textforagents-com-messages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: TextForAgents — SMS for AI agents. Prepaid, API-key authenticated texting with compliance (10DLC, opt-out, quiet hours) built in.
  title: TextForAgents Messages API
  version: 0.3.0
servers:
- url: https://api.textforagents.com
tags:
- name: Messages
paths:
  /v1/messages:
    get:
      operationId: list_messages_v1_messages_get
      parameters:
      - in: query
        name: limit
        required: false
        schema:
          default: 100
          title: Limit
          type: integer
      - in: header
        name: authorization
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: List Messages
      tags:
      - Messages
  /v1/messages/preview:
    post:
      description: 'Phase 8a: segment preview for a draft message — encoding,

        segment count, and what optimize=true would send instead.

        Read-only: no message row, no ledger entry, no provider

        call, so it is safe to call on every draft.'
      operationId: preview_message_v1_messages_preview_post
      parameters:
      - in: header
        name: authorization
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreviewMessage'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Preview Message
      tags:
      - Messages
  /v1/messages/send:
    post:
      operationId: send_message_v1_messages_send_post
      parameters:
      - in: header
        name: authorization
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMessage'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Send Message
      tags:
      - Messages
components:
  schemas:
    PreviewMessage:
      properties:
        text:
          maxLength: 1600
          minLength: 1
          title: Text
          type: string
      required:
      - text
      title: PreviewMessage
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    SendMessage:
      properties:
        from_number:
          maxLength: 32
          minLength: 5
          title: From Number
          type: string
        idempotency_key:
          maxLength: 200
          minLength: 1
          title: Idempotency Key
          type: string
        optimize:
          default: false
          title: Optimize
          type: boolean
        text:
          maxLength: 1600
          minLength: 1
          title: Text
          type: string
        to:
          maxLength: 32
          minLength: 5
          title: To
          type: string
      required:
      - from_number
      - to
      - text
      - idempotency_key
      title: SendMessage
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
      - loc
      - msg
      - type
      title: ValidationError
      type: object