textforagents-com Admin API
The Admin API from textforagents-com — 28 operation(s) for admin.
The Admin API from textforagents-com — 28 operation(s) for admin.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/textforagents-com:textforagents-com-admin-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
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 Admin API
version: 0.3.0
servers:
- url: https://api.textforagents.com
tags:
- name: Admin
paths:
/admin/10dlc/campaigns/{campaign_id}/migrations:
post:
operationId: admin_start_migration_admin_10dlc_campaigns__campaign_id__migrations_post
parameters:
- in: path
name: campaign_id
required: true
schema:
title: Campaign Id
type: string
- in: header
name: authorization
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MigrationCreate'
required: true
responses:
'201':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Admin Start Migration
tags:
- Admin
/admin/accounts:
get:
operationId: admin_list_accounts_admin_accounts_get
parameters:
- 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: Admin List Accounts
tags:
- Admin
/admin/accounts/{account_id}:
patch:
operationId: admin_update_account_admin_accounts__account_id__patch
parameters:
- in: path
name: account_id
required: true
schema:
title: Account Id
type: string
- in: header
name: authorization
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAccountSettings'
required: true
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Admin Update Account
tags:
- Admin
/admin/accounts/{account_id}/close:
post:
description: 'Churn path: close the account (terminal for sending) and
quarantine every number it holds. Idempotent.'
operationId: admin_close_account_admin_accounts__account_id__close_post
parameters:
- in: path
name: account_id
required: true
schema:
title: Account Id
type: string
- 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: Admin Close Account
tags:
- Admin
/admin/accounts/{account_id}/help-events:
get:
operationId: admin_account_help_events_admin_accounts__account_id__help_events_get
parameters:
- in: path
name: account_id
required: true
schema:
title: Account Id
type: string
- 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: Admin Account Help Events
tags:
- Admin
/admin/accounts/{account_id}/refunds:
post:
description: 'The AI support desk''s refund tool (admin-authenticated):
same engine, same caps, same source-rail rule; the refund
is recorded as support-requested and audit-logged.'
operationId: create_refund_admin_admin_accounts__account_id__refunds_post
parameters:
- in: path
name: account_id
required: true
schema:
title: Account Id
type: string
- in: header
name: authorization
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RefundBody'
required: true
responses:
'201':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Create Refund Admin
tags:
- Admin
/admin/accounts/{account_id}/suppressions:
get:
operationId: admin_account_suppressions_admin_accounts__account_id__suppressions_get
parameters:
- in: path
name: account_id
required: true
schema:
title: Account Id
type: string
- 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: Admin Account Suppressions
tags:
- Admin
/admin/accounts/{account_id}/ten-dlc:
get:
operationId: admin_account_ten_dlc_admin_accounts__account_id__ten_dlc_get
parameters:
- in: path
name: account_id
required: true
schema:
title: Account Id
type: string
- 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: Admin Account Ten Dlc
tags:
- Admin
/admin/audit-log:
get:
description: Read-only view of the append-only connection audit log.
operationId: admin_audit_log_admin_audit_log_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: Admin Audit Log
tags:
- Admin
/admin/carrier:
get:
operationId: admin_carrier_admin_carrier_get
parameters:
- 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: Admin Carrier
tags:
- Admin
/admin/csp:
get:
operationId: admin_csp_admin_csp_get
parameters:
- 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: Admin Csp
tags:
- Admin
/admin/csp/migrations:
get:
operationId: admin_list_migrations_admin_csp_migrations_get
parameters:
- in: query
name: campaign_id
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Campaign Id
- 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: Admin List Migrations
tags:
- Admin
/admin/csp/migrations/{migration_id}/transition:
post:
operationId: admin_migration_transition_admin_csp_migrations__migration_id__transition_post
parameters:
- in: path
name: migration_id
required: true
schema:
title: Migration Id
type: string
- in: header
name: authorization
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MigrationTransition'
required: true
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Admin Migration Transition
tags:
- Admin
/admin/csp/transition:
post:
operationId: admin_csp_transition_admin_csp_transition_post
parameters:
- in: header
name: authorization
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CspTransition'
required: true
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Admin Csp Transition
tags:
- Admin
/admin/delivery-receipts:
get:
operationId: admin_delivery_receipts_admin_delivery_receipts_get
parameters:
- in: query
name: transport
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Transport
- in: query
name: limit
required: false
schema:
default: 50
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: Admin Delivery Receipts
tags:
- Admin
/admin/deposits:
get:
operationId: admin_deposits_admin_deposits_get
parameters:
- in: query
name: status
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- 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: Admin Deposits
tags:
- Admin
/admin/escalations:
get:
operationId: admin_escalations_admin_escalations_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: Admin Escalations
tags:
- Admin
/admin/instant:
get:
operationId: admin_instant_admin_instant_get
parameters:
- 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: Admin Instant
tags:
- Admin
/admin/instant/company-campaigns:
post:
description: 'Record an externally filed company campaign, or file one
now through the registration client (brand + campaign).'
operationId: admin_company_campaign_admin_instant_company_campaigns_post
parameters:
- in: header
name: authorization
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyCampaignBody'
required: true
responses:
'201':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Admin Company Campaign
tags:
- Admin
/admin/instant/company-campaigns/{use_case}/refresh:
post:
operationId: admin_company_campaign_refresh_admin_instant_company_campaigns__use_case__refresh_post
parameters:
- in: path
name: use_case
required: true
schema:
title: Use Case
type: string
- 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: Admin Company Campaign Refresh
tags:
- Admin
/admin/instant/refill:
post:
operationId: admin_instant_refill_admin_instant_refill_post
parameters:
- 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: Admin Instant Refill
tags:
- Admin
/admin/instant/run:
post:
description: 'One full maintenance pass (the cron runner''s job, on
demand): queue expiry, upgrade pipelines, pool refill,
promotions, auto-top-up evaluation.'
operationId: admin_instant_run_admin_instant_run_post
parameters:
- 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: Admin Instant Run
tags:
- Admin
/admin/numbers:
get:
operationId: admin_numbers_admin_numbers_get
parameters:
- 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: Admin Numbers
tags:
- Admin
post:
description: 'Load a number into the pool as available inventory.
Phase 9: pool_kind=''instant'' stocks pre-warmed InstantStart
numbers for one use-case template, pre-attached to a
company campaign (campaign_ref).'
operationId: admin_seed_number_admin_numbers_post
parameters:
- in: header
name: authorization
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SeedNumber'
required: true
responses:
'201':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Admin Seed Number
tags:
- Admin
/admin/ports:
get:
operationId: admin_ports_admin_ports_get
parameters:
- 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: Admin Ports
tags:
- Admin
/admin/ports/run:
post:
description: 'One global port-lifecycle pass (the cron runner''s job,
on demand).'
operationId: admin_ports_run_admin_ports_run_post
parameters:
- 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: Admin Ports Run
tags:
- Admin
/admin/support/tickets/{ticket_id}:
get:
operationId: admin_support_ticket_admin_support_tickets__ticket_id__get
parameters:
- in: path
name: ticket_id
required: true
schema:
title: Ticket Id
type: string
- 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: Admin Support Ticket
tags:
- Admin
/admin/suppressions:
get:
operationId: admin_all_suppressions_admin_suppressions_get
parameters:
- 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: Admin All Suppressions
tags:
- Admin
/admin/x402/refunds-owed:
get:
operationId: admin_x402_refunds_admin_x402_refunds_owed_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: Admin X402 Refunds
tags:
- Admin
components:
schemas:
CompanyCampaignBody:
properties:
brand_payload:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Brand Payload
brand_provider_id:
anyOf:
- maxLength: 200
type: string
- type: 'null'
title: Brand Provider Id
campaign_payload:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Campaign Payload
campaign_provider_id:
anyOf:
- maxLength: 200
type: string
- type: 'null'
title: Campaign Provider Id
details:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Details
mode:
default: record
pattern: ^(record|create)$
title: Mode
type: string
status:
anyOf:
- pattern: ^(submitted|active|failed)$
type: string
- type: 'null'
title: Status
use_case:
pattern: ^(alerts|reminders|conversational|personal_assistant|marketing)$
title: Use Case
type: string
required:
- use_case
title: CompanyCampaignBody
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
MigrationCreate:
properties:
note:
anyOf:
- maxLength: 500
type: string
- type: 'null'
title: Note
to_cnp:
maxLength: 100
minLength: 1
title: To Cnp
type: string
required:
- to_cnp
title: MigrationCreate
type: object
MigrationTransition:
properties:
note:
anyOf:
- maxLength: 500
type: string
- type: 'null'
title: Note
status:
maxLength: 40
minLength: 1
title: Status
type: string
required:
- status
title: MigrationTransition
type: object
CspTransition:
properties:
note:
anyOf:
- maxLength: 500
type: string
- type: 'null'
title: Note
status:
maxLength: 40
minLength: 1
title: Status
type: string
required:
- status
title: CspTransition
type: object
UpdateAccountSettings:
properties:
daily_cap_override:
anyOf:
- maximum: 1000000.0
minimum: 0.0
type: integer
- type: 'null'
title: Daily Cap Override
notify_email:
anyOf:
- maxLength: 320
type: string
- type: 'null'
title: Notify Email
notify_webhook_secret:
anyOf:
- maxLength: 200
type: string
- type: 'null'
title: Notify Webhook Secret
notify_webhook_url:
anyOf:
- maxLength: 500
type: string
- type: 'null'
title: Notify Webhook Url
quarantined:
anyOf:
- type: boolean
- type: 'null'
title: Quarantined
quiet_hours_override:
anyOf:
- type: boolean
- type: 'null'
title: Quiet Hours Override
title: UpdateAccountSettings
type: object
RefundBody:
additionalProperties: true
properties:
amount_cents:
exclusiveMinimum: 0.0
maximum: 100000000.0
title: Amount Cents
type: integer
idempotency_key:
anyOf:
- maxLength: 200
type: string
- type: 'null'
title: Idempotency Key
rail:
default: auto
pattern: ^(auto|stripe|usdc)$
title: Rail
type: string
required:
- amount_cents
title: RefundBody
type: object
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
SeedNumber:
properties:
campaign_ref:
anyOf:
- maxLength: 200
type: string
- type: 'null'
title: Campaign Ref
number:
maxLength: 32
minLength: 5
title: Number
type: string
pool_kind:
default: general
pattern: ^(general|instant)$
title: Pool Kind
type: string
use_case:
anyOf:
- maxLength: 100
type: string
- type: 'null'
title: Use Case
required:
- number
title: SeedNumber
type: object