ThunderPhone Agent Imports API
The agent-imports API from ThunderPhone — 6 operation(s) for agent-imports.
The agent-imports API from ThunderPhone — 6 operation(s) for agent-imports.
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/thunderphone-com:thunderphone-com-agent-imports-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:
title: ThunderPhone Agent Imports API
version: 1.0.0
description: Programmatic access to the ThunderPhone platform — agents, phone numbers, calls, billing, webhooks, and more. See https://thunderphone.com/docs and https://thunderphone.com/developers for the reference, tutorials and migration guides.
contact:
name: ThunderPhone support
url: https://thunderphone.com/docs
servers:
- url: https://api.thunderphone.com
description: Production
tags:
- name: agent-imports
paths:
/v1/agent-imports:
get:
operationId: agent_imports_list
description: Retrieve agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
tags:
- agent-imports
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AgentImportSummary'
description: ''
summary: Agent imports list
x-summary-source: derived
post:
operationId: agent_imports_create
description: Create or run agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
tags:
- agent-imports
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImportCreateRequest'
required: true
security:
- bearerAuth: []
- bearerAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImport'
description: ''
summary: Agent imports create
x-summary-source: derived
/v1/agent-imports/{public_id}:
get:
operationId: agent_imports_retrieve
description: Retrieve agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
parameters:
- in: path
name: public_id
schema:
type: string
format: uuid
required: true
tags:
- agent-imports
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImport'
description: ''
summary: Agent imports retrieve
x-summary-source: derived
delete:
operationId: agent_imports_delete
description: Delete agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
parameters:
- in: path
name: public_id
schema:
type: string
format: uuid
required: true
tags:
- agent-imports
security:
- bearerAuth: []
- bearerAuth: []
responses:
'204':
description: No response body
summary: Agent imports delete
x-summary-source: derived
/v1/agent-imports/{public_id}/commit:
post:
operationId: agent_imports_commit
description: Create or run agent imports / commit. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
parameters:
- in: path
name: public_id
schema:
type: string
format: uuid
required: true
tags:
- agent-imports
security:
- bearerAuth: []
- bearerAuth: []
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImport'
description: ''
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: false
summary: Agent imports commit
x-summary-source: derived
/v1/agent-imports/{public_id}/items/{item_id}:
patch:
operationId: agent_imports_items_partial_update
description: Update agent imports / items. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
parameters:
- in: path
name: item_id
schema:
type: string
format: uuid
required: true
- in: path
name: public_id
schema:
type: string
format: uuid
required: true
tags:
- agent-imports
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedAgentImportItemPatchRequest'
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImportItem'
description: ''
summary: Agent imports items partial update
x-summary-source: derived
/v1/agent-imports/{public_id}/numbers/move:
post:
operationId: agent_imports_numbers_move
description: 'Move one source number the customer owns onto an imported agent. Admin only, like ``voip-connections//import-numbers``: it re-points the number at the carrier and claims a PhoneNumber row. See ``numbers.py``.'
parameters:
- in: path
name: public_id
schema:
type: string
format: uuid
required: true
tags:
- agent-imports
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImportNumberMoveRequest'
required: true
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImportNumberMoveResult'
description: ''
summary: Agent imports numbers move
x-summary-source: derived
/v1/agent-imports/{public_id}/connection-secrets:
post:
operationId: agent_imports_connection_secrets
description: 'Write-only: set or clear one header value an imported API connection is missing. The response is the import without the value; nothing reads it back.'
parameters:
- in: path
name: public_id
schema:
type: string
format: uuid
required: true
tags:
- agent-imports
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImportConnectionSecretRequest'
required: true
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AgentImport'
description: ''
summary: Agent imports connection secrets
x-summary-source: derived
components:
schemas:
AgentImportCreateSourceEnum:
enum:
- vapi
- retell
- elevenlabs
- bland
type: string
description: '* `vapi` - vapi
* `retell` - retell
* `elevenlabs` - elevenlabs
* `bland` - bland'
Product235Enum:
enum:
- spark
- bolt
- storm-base
- storm-base-with-ack
- storm-extra
- storm-extra-with-ack
- full-duplex
type: string
description: '* `spark` - spark
* `bolt` - bolt
* `storm-base` - storm-base
* `storm-base-with-ack` - storm-base-with-ack
* `storm-extra` - storm-extra
* `storm-extra-with-ack` - storm-extra-with-ack
* `full-duplex` - full-duplex'
AgentImportNumberMoveResult:
type: object
properties:
imported:
type: boolean
needs_verification:
type: boolean
phone_number:
$ref: '#/components/schemas/AgentImportMovedNumber'
required:
- imported
- needs_verification
- phone_number
AuthModeF69Enum:
enum:
- api_key
- paste
type: string
description: '* `api_key` - API key
* `paste` - Pasted JSON'
AgentImportCreateAuthModeEnum:
enum:
- api_key
- paste
type: string
description: '* `api_key` - api_key
* `paste` - paste'
AgentImportItemStatusEnum:
enum:
- planned
- skipped
- created
- failed
type: string
description: '* `planned` - Planned
* `skipped` - Skipped
* `created` - Created
* `failed` - Failed'
AgentImportNumberMoveRequest:
type: object
properties:
number:
type: string
minLength: 1
maxLength: 64
agent_id:
type: integer
connection_id:
type:
- integer
- 'null'
required:
- agent_id
- number
Status365Enum:
enum:
- queued
- fetching
- planning
- ready
- committing
- done
- failed
- discarded
type: string
description: '* `queued` - Queued
* `fetching` - Fetching
* `planning` - Planning
* `ready` - Ready
* `committing` - Committing
* `done` - Done
* `failed` - Failed
* `discarded` - Discarded'
PromptChoiceEnum:
enum:
- deterministic
- rewritten
type: string
description: '* `deterministic` - deterministic
* `rewritten` - rewritten'
AgentImportConnectionSecretRequest:
type: object
properties:
connection:
type: string
minLength: 1
maxLength: 255
header_id:
type: string
minLength: 1
maxLength: 16
header_name:
type: string
maxLength: 255
value:
type: string
writeOnly: true
maxLength: 4096
external_account_handle:
type: string
writeOnly: true
minLength: 1
maxLength: 64
required:
- connection
- header_id
AgentImportItem:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
source_id:
type: string
readOnly: true
source_name:
type: string
readOnly: true
status:
allOf:
- $ref: '#/components/schemas/AgentImportItemStatusEnum'
readOnly: true
selected:
type: boolean
readOnly: true
mapped:
readOnly: true
warnings:
readOnly: true
created_agent_id:
type:
- integer
- 'null'
readOnly: true
error:
type: string
readOnly: true
updated_at:
type: string
format: date-time
readOnly: true
required:
- created_agent_id
- error
- id
- mapped
- selected
- source_id
- source_name
- status
- updated_at
- warnings
AgentImportSummary:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
source:
allOf:
- $ref: '#/components/schemas/Source1ecEnum'
readOnly: true
auth_mode:
allOf:
- $ref: '#/components/schemas/AuthModeF69Enum'
readOnly: true
status:
allOf:
- $ref: '#/components/schemas/Status365Enum'
readOnly: true
account_label:
type: string
readOnly: true
item_count:
type: integer
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
completed_at:
type:
- string
- 'null'
format: date-time
readOnly: true
required:
- account_label
- auth_mode
- completed_at
- created_at
- id
- item_count
- source
- status
AgentImportMovedNumber:
type: object
properties:
id:
type: integer
number:
type: string
status:
type: string
voip_verification_status:
type: string
inbound_agent_id:
type:
- integer
- 'null'
voip_connection_id:
type:
- integer
- 'null'
required:
- id
- inbound_agent_id
- number
- status
- voip_connection_id
- voip_verification_status
PatchedAgentImportItemPatchRequest:
type: object
properties:
selected:
type: boolean
name:
type: string
minLength: 1
maxLength: 255
voice:
type: string
minLength: 1
maxLength: 100
product:
$ref: '#/components/schemas/Product235Enum'
prompt_choice:
$ref: '#/components/schemas/PromptChoiceEnum'
Source1ecEnum:
enum:
- vapi
- retell
- elevenlabs
- bland
type: string
description: '* `vapi` - Vapi
* `retell` - Retell
* `elevenlabs` - ElevenLabs Agents
* `bland` - Bland'
AgentImportCreateRequest:
type: object
properties:
source:
$ref: '#/components/schemas/AgentImportCreateSourceEnum'
auth_mode:
$ref: '#/components/schemas/AgentImportCreateAuthModeEnum'
api_key:
type: string
writeOnly: true
payload:
type: string
writeOnly: true
maxLength: 2000000
external_account_handle:
type: string
writeOnly: true
minLength: 1
maxLength: 64
required:
- auth_mode
- source
AgentImport:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
source:
allOf:
- $ref: '#/components/schemas/Source1ecEnum'
readOnly: true
auth_mode:
allOf:
- $ref: '#/components/schemas/AuthModeF69Enum'
readOnly: true
status:
allOf:
- $ref: '#/components/schemas/Status365Enum'
readOnly: true
account_label:
type: string
readOnly: true
progress:
type: object
additionalProperties: true
readOnly: true
items:
type: array
items:
$ref: '#/components/schemas/AgentImportItem'
readOnly: true
report:
type: object
additionalProperties: true
readOnly: true
result:
readOnly: true
error_code:
type: string
readOnly: true
error:
type: string
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
updated_at:
type: string
format: date-time
readOnly: true
completed_at:
type:
- string
- 'null'
format: date-time
readOnly: true
required:
- account_label
- auth_mode
- completed_at
- created_at
- error
- error_code
- id
- items
- progress
- report
- result
- source
- status
- updated_at
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: sk_live_…
description: 'Organization API key. Send Authorization: Bearer sk_live_…; create a key in the dashboard.'
humanToken:
type: apiKey
in: header
name: Authorization
description: 'Human session token: Authorization: Token <session-token>. Organization API keys are rejected by key-management and account-control operations.'
x-mcp-server: https://api.thunderphone.com/v1/mcp