UseDocumentation Index
Fetch the complete documentation index at: https://docs.pam.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/calls to start a single outbound voice call outside of a campaign. PAM accepts the request, creates a conversation, and dispatches the call asynchronously.
Create a Call
202 Accepted:
queued means PAM has accepted the call for dispatch. Use webhooks to track connection, end, and post-call analysis events.
Request Fields
| Field | Required | Description |
|---|---|---|
agentSlug | one of agentSlug or agentId | Stable slug for a PAM-managed voice agent. |
agentId | one of agentSlug or agentId | UUID of a specific agent. |
toNumber | yes | Customer phone number in E.164 format. |
fromNumber | PAM-managed agents only | Sender phone number in E.164 format. For custom agents with a configured number, PAM uses the agent’s number. |
dynamicVariables | no | String variables available to the agent during the call. |
metadata | no | Opaque reconciliation data stored with the conversation. |
clientOrgId in the request body.
Idempotency
Idempotency-Key is required. Use the same key when retrying a request after a network error or timeout.
If PAM has already created a conversation for the same key and client organization, the retry returns the original conversationId and current status instead of creating a duplicate call.
Lifecycle Webhooks
Subscribe to these events to follow the call:| Event | When it fires |
|---|---|
call.started | The provider reports that the call started. |
call.ended | The call has ended and the transcript has been persisted. |
call.analyzed | Post-call analysis is available. |
Close a Call
UsePOST /v1/calls/{id}/close to close an open voice conversation.
reason is omitted, PAM uses admin_closed.
Common Errors
400 validation_error— missingIdempotency-Key, invalid phone format, bothagentIdandagentSlugwere provided, or neither was provided.400 validation_error—fromNumberis missing for a PAM-managed agent.401 unauthorized— missing, expired, revoked, or invalid API key.404 not_found— the agent could not be resolved or the conversation does not belong to the authenticated client.