ThunderPhone Webhooks API
The Webhooks API from ThunderPhone — 3 operation(s) for webhooks.
The Webhooks API from ThunderPhone — 3 operation(s) for webhooks.
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-webhooks-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 Webhooks 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: Webhooks
paths:
/v1/developer/webhook-endpoints/{endpoint_id}/rotate-secret:
post:
operationId: developer_webhook_endpoints_rotate_secret
description: Replace an endpoint's signing secret. The new secret is returned once and takes effect on the next delivery, retries included; the old secret stops being used at once, so deliveries fail your signature check until your receiver has the new secret. By default the organization's other endpoints with the same URL and the same current secret get the new secret too.
parameters:
- in: path
name: endpoint_id
schema:
type: string
format: uuid
required: true
tags:
- Webhooks
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeveloperWebhookEndpointsRotateSecretBodyRequest'
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeveloperWebhookRotateSecretResponse'
description: ''
summary: Developer webhook endpoints rotate secret
x-summary-source: derived
/v1/developer/webhook-endpoints/{endpoint_id}/test:
post:
operationId: developer_webhook_endpoints_test
description: Send a synthetic event through the normal signed delivery pipeline to one endpoint. Omit event_type to send webhook.test. Test sends get one retry after about a minute and never change endpoint status.
parameters:
- in: path
name: endpoint_id
schema:
type: string
format: uuid
required: true
tags:
- Webhooks
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeveloperWebhookEndpointsTestBody'
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeveloperWebhookTestDelivery'
description: ''
summary: Developer webhook endpoints test
x-summary-source: derived
/v1/developer/webhook-endpoints/{endpoint_id}/deliveries/{event_id}/resend:
post:
operationId: developer_webhook_endpoints_deliveries_resend
description: Send a failed delivery to its endpoint once more, now. The envelope keeps its `event_id`, so a receiver that already processed the event can drop the copy, and it is signed with the endpoint's current secret. Only real deliveries whose retries ran out (`failed`) on an active endpoint can be resent; a failed resend does not pause the endpoint. Pass `idempotency_key` so a repeated request sends nothing new. Limited per endpoint.
parameters:
- in: path
name: endpoint_id
schema:
type: string
format: uuid
required: true
- in: path
name: event_id
schema:
type: string
format: uuid
required: true
tags:
- Webhooks
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeveloperWebhookDeliveriesResendBodyRequest'
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeveloperWebhookResendResponse'
description: ''
summary: Developer webhook endpoints deliveries resend
x-summary-source: derived
components:
schemas:
NullEnum:
enum:
- null
DeveloperWebhookRotateSecretResponse:
type: object
properties:
endpoint:
$ref: '#/components/schemas/DeveloperWebhookEndpoint'
secret:
type: string
description: The new signing secret. Returned once.
rotated_endpoint_ids:
type: array
items:
type: string
format: uuid
required:
- endpoint
- rotated_endpoint_ids
- secret
DeveloperWebhookEndpoint:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
label:
type: string
maxLength: 120
url:
type: string
format: uri
maxLength: 200
events: {}
status:
$ref: '#/components/schemas/Status51eEnum'
agent_id:
type:
- integer
- 'null'
readOnly: true
agent_name:
type:
- string
- 'null'
readOnly: true
secret_hint:
type: string
readOnly: true
paused_at:
type:
- string
- 'null'
format: date-time
readOnly: true
description: When ThunderPhone set the endpoint to `failing` after a delivery used up its 24 h retry schedule. Null while active or disabled.
pause_last_error:
type: string
readOnly: true
description: Last delivery error when the endpoint was paused (query strings removed).
pause_undelivered_count:
type:
- integer
- 'null'
readOnly: true
description: Events not delivered since the endpoint's last successful delivery, counted when it was paused.
created_at:
type: string
format: date-time
readOnly: true
updated_at:
type: string
format: date-time
readOnly: true
required:
- agent_id
- agent_name
- created_at
- id
- label
- pause_last_error
- pause_undelivered_count
- paused_at
- secret_hint
- updated_at
- url
DeveloperWebhookTestDelivery:
type: object
properties:
success:
type: boolean
readOnly: true
event_id:
type: string
format: uuid
readOnly: true
event_type:
type: string
readOnly: true
status:
type: string
readOnly: true
response_code:
type:
- integer
- 'null'
readOnly: true
error:
type: string
readOnly: true
required:
- error
- event_id
- event_type
- response_code
- status
- success
DeveloperWebhookDeliveryStatusEnum:
enum:
- delivered
- retrying
- failed
type: string
description: '* `delivered` - delivered
* `retrying` - retrying
* `failed` - failed'
DeveloperWebhookResendResponse:
type: object
properties:
source:
allOf:
- $ref: '#/components/schemas/DeveloperWebhookDeliverySourceEnum'
readOnly: true
endpoint_id:
type: string
readOnly: true
endpoint_label:
type: string
readOnly: true
url:
type:
- string
- 'null'
format: uri
readOnly: true
event_type:
type: string
readOnly: true
call_id:
type:
- integer
- 'null'
readOnly: true
status:
allOf:
- $ref: '#/components/schemas/DeveloperWebhookDeliveryStatusEnum'
readOnly: true
attempt_count:
type: integer
minimum: 0
readOnly: true
http_status:
type:
- integer
- 'null'
maximum: 599
minimum: 100
readOnly: true
failure_category:
readOnly: true
oneOf:
- $ref: '#/components/schemas/FailureCategoryEnum'
- $ref: '#/components/schemas/NullEnum'
last_attempt_at:
type:
- string
- 'null'
format: date-time
readOnly: true
next_retry_at:
type:
- string
- 'null'
format: date-time
readOnly: true
id:
type:
- string
- 'null'
readOnly: true
description: The event's `event_id`, which identifies this delivery together with `endpoint_id`. Null for the legacy call-finished webhook.
duration_ms:
type:
- integer
- 'null'
minimum: 0
readOnly: true
description: How long the endpoint took on the latest attempt, in milliseconds. Null before an attempt reached it.
is_test:
type: boolean
readOnly: true
description: A test send from the dashboard or the test endpoint.
can_resend:
type: boolean
readOnly: true
description: True for a real delivery whose retries ran out (`failed`). Resend also needs the endpoint to be active.
was_resent:
type: boolean
readOnly: true
description: Someone resent this delivery by hand.
created_at:
type:
- string
- 'null'
format: date-time
readOnly: true
description: When the event was first queued for this endpoint. A resend changes `last_attempt_at`, not this.
resent_at:
type:
- string
- 'null'
format: date-time
readOnly: true
description: When it was last resent by hand.
resent:
type: boolean
readOnly: true
description: False when this idempotency key already resent the delivery and nothing new was sent.
required:
- attempt_count
- call_id
- can_resend
- created_at
- duration_ms
- endpoint_id
- endpoint_label
- event_type
- failure_category
- http_status
- id
- is_test
- last_attempt_at
- next_retry_at
- resent
- resent_at
- source
- status
- url
- was_resent
EventTypeEnum:
enum:
- telephony.incoming
- telephony.complete
- telephony.tool
- telephony.turn
- web.incoming
- web.complete
- web.tool
- web.turn
- sms.sent
- sms.failed
- sms.received
- call.graded
- call.data_extracted
- call.transfer_completed
- call.billed
- campaign.completed
- issue.reported
- issue.escalated
- test-call.completed
- migration.call.complete
- migration.rollback
- alert.triggered
- phone_number.spam_risk_changed
- scheduled.skipped
- scheduled.failed
- call.status_changed
type: string
description: '* `telephony.incoming` - telephony.incoming
* `telephony.complete` - telephony.complete
* `telephony.tool` - telephony.tool
* `telephony.turn` - telephony.turn
* `web.incoming` - web.incoming
* `web.complete` - web.complete
* `web.tool` - web.tool
* `web.turn` - web.turn
* `sms.sent` - sms.sent
* `sms.failed` - sms.failed
* `sms.received` - sms.received
* `call.graded` - call.graded
* `call.data_extracted` - call.data_extracted
* `call.transfer_completed` - call.transfer_completed
* `call.billed` - call.billed
* `campaign.completed` - campaign.completed
* `issue.reported` - issue.reported
* `issue.escalated` - issue.escalated
* `test-call.completed` - test-call.completed
* `migration.call.complete` - migration.call.complete
* `migration.rollback` - migration.rollback
* `alert.triggered` - alert.triggered
* `phone_number.spam_risk_changed` - phone_number.spam_risk_changed
* `scheduled.skipped` - scheduled.skipped
* `scheduled.failed` - scheduled.failed
* `call.status_changed` - call.status_changed'
DeveloperWebhookDeliveriesResendBodyRequest:
type: object
properties:
idempotency_key:
type: string
description: 'A value unique to this click or request. Repeating a request with the key of the delivery''s latest Resend sends nothing new and returns `resent: false`.'
maxLength: 64
FailureCategoryEnum:
enum:
- timeout
- dns
- tls
- connection
- http_error
- other
type: string
description: '* `timeout` - timeout
* `dns` - dns
* `tls` - tls
* `connection` - connection
* `http_error` - http_error
* `other` - other'
DeveloperWebhookDeliverySourceEnum:
enum:
- endpoint
- legacy
type: string
description: '* `endpoint` - endpoint
* `legacy` - legacy'
DeveloperWebhookEndpointsRotateSecretBodyRequest:
type: object
properties:
include_copies:
type: boolean
default: true
description: Also give the new secret to this organization's other endpoints that have the same URL and the same current secret (copies of this endpoint on other agents), so one receiver keeps verifying with one secret.
Status51eEnum:
enum:
- active
- disabled
- failing
type: string
description: '* `active` - Active
* `disabled` - Disabled
* `failing` - Failing'
DeveloperWebhookEndpointsTestBody:
type: object
properties:
event_type:
$ref: '#/components/schemas/EventTypeEnum'
agent_id:
type: integer
minimum: 1
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