AgentPhone Subaccounts API
The Subaccounts API from AgentPhone — 2 operation(s) for subaccounts.
The Subaccounts API from AgentPhone — 2 operation(s) for subaccounts.
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/agentphone:agentphone-subaccounts-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. 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:
title: SMS Sub Accounts API
description: A simple API to provision phone numbers and receive SMS
version: 0.1.0
tags:
- name: Subaccounts
paths:
/v1/sub-accounts:
get:
tags:
- Subaccounts
summary: List Sub Accounts
operationId: list_sub_accounts_v1_sub_accounts_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 500
minimum: 1
- type: 'null'
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: stats_days
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 90
minimum: 1
- type: 'null'
title: Stats Days
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Subaccounts
summary: Create Sub Account
operationId: create_sub_account_v1_sub_accounts_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSubAccountRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/sub-accounts/{sub_account_id}:
patch:
tags:
- Subaccounts
summary: Update Sub Account
operationId: update_sub_account_v1_sub_accounts__sub_account_id__patch
security:
- HTTPBearer: []
parameters:
- name: sub_account_id
in: path
required: true
schema:
type: string
title: Sub Account Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateSubAccountRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Subaccounts
summary: Delete Sub Account
operationId: delete_sub_account_v1_sub_accounts__sub_account_id__delete
security:
- HTTPBearer: []
parameters:
- name: sub_account_id
in: path
required: true
schema:
type: string
title: Sub Account Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
CreateSubAccountRequest:
properties:
name:
type: string
maxLength: 100
minLength: 1
title: Name
type: object
required:
- name
title: CreateSubAccountRequest
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
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
UpdateSubAccountRequest:
properties:
name:
type: string
maxLength: 100
minLength: 1
title: Name
type: object
required:
- name
title: UpdateSubAccountRequest
securitySchemes:
HTTPBearer:
type: http
scheme: bearer