textforagents-com Auth API

The Auth API from textforagents-com — 4 operation(s) for auth.

Operations 4

POST /auth/device/approve Auth Device Approve #
POST /auth/device/code Auth Device Code #
POST /auth/device/token Auth Device Token #
POST /auth/login Auth Login #

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-auth-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-auth-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 Auth API
  version: 0.3.0
servers:
- url: https://api.textforagents.com
tags:
- name: Auth
paths:
  /auth/device/approve:
    post:
      description: 'The human side of the device flow: type the user code

        and log in with username/password. Approving binds the code

        to the account — the password itself never reaches the

        agent.'
      operationId: auth_device_approve_auth_device_approve_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceApproveBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Auth Device Approve
      tags:
      - Auth
  /auth/device/code:
    post:
      description: 'Start the device-code flow: the agent shows its human

        the user_code + verification path; the human approves by

        logging in there. The agent then polls /auth/device/token.'
      operationId: auth_device_code_auth_device_code_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceCodeBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Auth Device Code
      tags:
      - Auth
  /auth/device/token:
    post:
      operationId: auth_device_token_auth_device_token_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceTokenBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Auth Device Token
      tags:
      - Auth
  /auth/login:
    post:
      operationId: auth_login_auth_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Auth Login
      tags:
      - Auth
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    DeviceCodeBody:
      properties:
        scope:
          default: admin-lite
          pattern: ^(send|read|admin-lite)$
          title: Scope
          type: string
      title: DeviceCodeBody
      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
    DeviceApproveBody:
      properties:
        password:
          maxLength: 300
          minLength: 1
          title: Password
          type: string
        user_code:
          maxLength: 20
          minLength: 4
          title: User Code
          type: string
        username:
          maxLength: 100
          minLength: 1
          title: Username
          type: string
      required:
      - user_code
      - username
      - password
      title: DeviceApproveBody
      type: object
    LoginBody:
      properties:
        password:
          maxLength: 300
          minLength: 1
          title: Password
          type: string
        scope:
          default: admin-lite
          pattern: ^(send|read|admin-lite)$
          title: Scope
          type: string
        username:
          maxLength: 100
          minLength: 1
          title: Username
          type: string
      required:
      - username
      - password
      title: LoginBody
      type: object
    DeviceTokenBody:
      properties:
        device_code:
          maxLength: 200
          minLength: 8
          title: Device Code
          type: string
      required:
      - device_code
      title: DeviceTokenBody
      type: object