pingx.aiAPI docs Markdown

Voice reference

Every Voice endpoint with parameters, request and response fields, required scope and a curl example.

Every Voice endpoint. Base URL https://api.pingx.ai; send Authorization: Bearer <API key>. Read endpoints need voice:read (or :write), write endpoints need voice:write; the bare voice scope grants both. See Authentication and conventions. Machine-readable: openapi.json.

19 endpoints

MethodPathOperationScope
GET/voice/v1/callsListCallsread
POST/voice/v1/callsPlaceCallwrite
GET/voice/v1/calls/{callId}GetCallread
GET/voice/v1/calls/{callId}/recordingDownloadCallRecordingread
GET/voice/v1/calls/{callId}/transcriptGetCallTranscriptread
POST/voice/v1/dials/{dialId}:endEndCallwrite
GET/voice/v1/dials/{dialId}/statusGetCallStatusread
GET/voice/v1/human-assignmentsListHumanAssignmentsread
PUT/voice/v1/human-assignments/{agentId}/{humanId}SetHumanAssignmentwrite
POST/voice/v1/human-callsPlaceHumanCallwrite
GET/voice/v1/humansListHumansread
POST/voice/v1/humansAddHumanwrite
DELETE/voice/v1/humans/{humanId}RemoveHumanwrite
PATCH/voice/v1/humans/{humanId}UpdateHumanwrite
GET/voice/v1/numbersListNumbersread
POST/voice/v1/numbersAddNumberwrite
DELETE/voice/v1/numbers/{numberId}RemoveNumberwrite
POST/voice/v1/numbers/{numberId}:setDefaultSetDefaultNumberwrite
POST/voice/v1/numbers/{numberId}:setInboundAgentSetInboundAgentwrite

#GET /voice/v1/calls

ListCalls · needs voice:read (or write)

ListCalls lists the organization's past and in-progress calls (AI agent calls, inbound calls and human-bridged calls), newest first, optionally filtered. Browser test calls from the app are not included. Transcript text and audio are not returned here; use GetCallTranscript and DownloadCallRecording.

Query parameters

NameTypeDescription
pageSizeintegerMax calls per page. Default 50, max 200.
pageTokenstringnextPageToken from the previous response; empty for the first page.
agentIdstring (int64)Only calls handled by this AI agent. Optional (must belong to the organization).
humanIdstring (int64)Only bridged calls handled by this human. Optional.
leadIdstring (int64)Only the call(s) from this dial attempt (the dialId from PlaceCall).
startedAfterstringOnly calls started at or after this time (RFC3339). Optional.
startedBeforestringOnly calls started before this time (RFC3339). Optional.

Response ListCallsResponse

FieldTypeDescription
callsCall[]
calls[].callIdstring (int64)Call id; used by GetCall, GetCallTranscript and DownloadCallRecording.
calls[].directionstring"outbound" (AI agent dialed the customer), "inbound" (customer dialed one of the organization's numbers) or "human" (bridged human call).
calls[].leadIdstring (int64)The dialId returned when this call was placed via the API; 0 for inbound calls.
calls[].agentIdstring (int64)AI agent that handled the call; 0 for human-bridged calls.
calls[].humanIdstring (int64)Human who handled the call; 0 for AI calls.
calls[].humanNamestringHuman's name for human-bridged calls; empty otherwise.
calls[].customerNamestringCustomer name if known; may be empty.
calls[].customerPhonestringCustomer phone number, E.164 where known.
calls[].startedAtstringWhen the call started (RFC3339, UTC).
calls[].endedAtstringWhen it ended (RFC3339, UTC); empty while ongoing.
calls[].outcomestringFree-text outcome (e.g. "link_sent", "declined").
calls[].sentimentScoreintegerSentiment 1 (negative) to 5 (positive); 0 = unscored.
calls[].sentimentWentRightstringWhat went right / wrong, from the post-call sentiment analysis.
calls[].sentimentWentWrongstring
calls[].transcriptSummarystringAI summary of the conversation; empty if none captured.
calls[].metricsScoredMetric[]The organization's custom scored metrics for this call.
calls[].hasTranscriptbooleanTrue if GetCallTranscript will return content.
calls[].hasRecordingbooleanTrue if DownloadCallRecording will return audio.
nextPageTokenstringPass as pageToken for the next page; empty on the last page.
curl "https://api.pingx.ai/voice/v1/calls" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#POST /voice/v1/calls

PlaceCall · needs voice:write

PlaceCall starts an outbound phone call from an AI agent to a customer. It validates that the agent belongs to the organization, then queues the call and returns immediately with a dialId; the telephony layer rings the customer asynchronously (credit checks, caller-ID/number selection and number-sync checks happen there, exactly as for calls placed from the the app). Poll GetCallStatus with the dialId to follow progress, and call EndCall to hang up. Once the call has connected it appears in ListCalls / GetCall (find it with ListCalls leadId = dialId).

Not idempotent: every successful request places a new call, so do not blindly retry on a timeout; check ListCalls first. Billing is the same as for the app calls; a call refused for insufficient credits is reported by GetCallStatus as status "failed" with the reason in outcome.

Request body (JSON)

FieldTypeDescription
agentIdstring (int64)The AI agent (persona) that will run the call. Required. Must belong to the organization (NOT_FOUND otherwise).
phonestringCustomer phone number to call, E.164 (e.g. "+919876543210"). Required.
namestringOptional customer display name, shown in call history (max 120 chars).

Response PlaceCallResponse

FieldTypeDescription
dialIdstring (int64)Handle for this dial attempt; pass it to GetCallStatus and EndCall, and use it as leadId in ListCalls to find the resulting call.
statusstringAlways "dialing" on success (the call has been queued, not yet answered).
curl -X POST "https://api.pingx.ai/voice/v1/calls" \
  -H "Authorization: Bearer $PINGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agentId":"…","phone":"…","name":"…"}'

#GET /voice/v1/calls/{callId}

GetCall · needs voice:read (or write)

GetCall returns one call's details: parties, timing, outcome, AI summary, sentiment and scored metrics, and whether a transcript and recording exist. NOT_FOUND for an unknown id or another organization's call.

Path parameters

NameTypeDescription
callIdstring (int64)

Response GetCallResponse

FieldTypeDescription
callCallOne call (AI agent call, inbound call, or human-bridged call).
call.callIdstring (int64)Call id; used by GetCall, GetCallTranscript and DownloadCallRecording.
call.directionstring"outbound" (AI agent dialed the customer), "inbound" (customer dialed one of the organization's numbers) or "human" (bridged human call).
call.leadIdstring (int64)The dialId returned when this call was placed via the API; 0 for inbound calls.
call.agentIdstring (int64)AI agent that handled the call; 0 for human-bridged calls.
call.humanIdstring (int64)Human who handled the call; 0 for AI calls.
call.humanNamestringHuman's name for human-bridged calls; empty otherwise.
call.customerNamestringCustomer name if known; may be empty.
call.customerPhonestringCustomer phone number, E.164 where known.
call.startedAtstringWhen the call started (RFC3339, UTC).
call.endedAtstringWhen it ended (RFC3339, UTC); empty while ongoing.
call.outcomestringFree-text outcome (e.g. "link_sent", "declined").
call.sentimentScoreintegerSentiment 1 (negative) to 5 (positive); 0 = unscored.
call.sentimentWentRightstringWhat went right / wrong, from the post-call sentiment analysis.
call.sentimentWentWrongstring
call.transcriptSummarystringAI summary of the conversation; empty if none captured.
call.metricsScoredMetric[]The organization's custom scored metrics for this call.
call.hasTranscriptbooleanTrue if GetCallTranscript will return content.
call.hasRecordingbooleanTrue if DownloadCallRecording will return audio.
curl "https://api.pingx.ai/voice/v1/calls/CALLID" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#GET /voice/v1/calls/{callId}/recording

DownloadCallRecording · needs voice:read (or write)

DownloadCallRecording returns a call's audio recording (Ogg/Opus, content type "audio/ogg") as the response body itself. Over REST this is the raw audio file, so curl -H "Authorization: Bearer pk_..." -o call.ogg https://HOST/voice/v1/calls/123/recording just works; over Connect/gRPC it is a google.api.HttpBody message. The API key authenticates the download directly: there are no signed or expiring URLs to manage. Whole-file download only (no HTTP Range). NOT_FOUND when the call is unknown, belongs to another organization, or has no recording (check Call.hasRecording); FAILED_PRECONDITION if the file exceeds the 32 MiB download cap.

Path parameters

NameTypeDescription
callIdstring (int64)

Response apiHttpBody

FieldTypeDescription
contentTypestringThe HTTP Content-Type header value specifying the content type of the body.
datastring (base64)The HTTP request/response body as raw binary.
extensionsprotobufAny[]Application specific response metadata. Must be set in the first response for streaming APIs.
extensions[].@typestringIdentifies the type of the serialized Protobuf message with a URI reference consisting of a prefix ending in a slash and the fully-qualified type name. Example: type.googleapis.com/google.protobuf.StringValue This string must contain at least one / character, and the content after the last / must be the fully-qualified name of the type in canonical form, without a leading dot. Do not write a scheme on these URI references so that clients do not attempt to contact them. The prefix is arbitrary and Protobuf implementations are expected to simply strip off everything up to and including the last / to identify the type. type.googleapis.com/ is a common default prefix that some legacy implementations require. This prefix does not indicate the origin of the type, and URIs containing it are not expected to respond to any requests. All type URL strings must be legal URI references with the additional restriction (for the text format) that the content of the reference must consist only of alphanumeric characters, percent-encoded escapes, and characters in the following set (not including the outer backticks): /-.~_!$&()*+,;=. Despite our allowing percent encodings, implementations should not unescape them to prevent confusion with existing parsers. For example, type.googleapis.com%2FFoo should be rejected. In the original design of Any, the possibility of launching a type resolution service at these type URLs was considered but Protobuf never implemented one and considers contacting these URLs to be problematic and a potential security issue. Do not attempt to contact type URLs.
curl "https://api.pingx.ai/voice/v1/calls/CALLID/recording" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#GET /voice/v1/calls/{callId}/transcript

GetCallTranscript · needs voice:read (or write)

GetCallTranscript returns a call's transcript as speaker-tagged turns (voice markup such as "[laughs]" is stripped). A call that finished without a transcript returns an empty list. NOT_FOUND for an unknown id or another organization's call.

Path parameters

NameTypeDescription
callIdstring (int64)

Response GetCallTranscriptResponse

FieldTypeDescription
turnsTranscriptTurn[]The conversation in order. Empty if the call has no transcript.
turns[].rolestring"assistant" (the AI agent or human operator side) or "user" (the customer).
turns[].textstringWhat was said.
curl "https://api.pingx.ai/voice/v1/calls/CALLID/transcript" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#POST /voice/v1/dials/{dialId}:end

EndCall · needs voice:write

EndCall hangs up an in-progress call immediately (disconnects the customer and the AI agent / human). Idempotent: ending a call that already ended returns ended=false without error. NOT_FOUND for an unknown dialId or one belonging to another organization.

Path parameters

NameTypeDescription
dialIdstring (int64)dialId returned by PlaceCall or PlaceHumanCall.

Response EndCallResponse

FieldTypeDescription
endedbooleanTrue if an in-progress call was hung up; false if nothing was active.
curl -X POST "https://api.pingx.ai/voice/v1/dials/DIALID:end" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#GET /voice/v1/dials/{dialId}/status

GetCallStatus · needs voice:read (or write)

GetCallStatus reports the live status of a call placed with PlaceCall or PlaceHumanCall, identified by the dialId those returned. Poll every 2-5 seconds while status is "dialing" or "in_progress". NOT_FOUND for a dialId that does not exist or belongs to another organization.

Path parameters

NameTypeDescription
dialIdstring (int64)dialId returned by PlaceCall or PlaceHumanCall.

Response GetCallStatusResponse

FieldTypeDescription
statusstring"dialing" (queued / ringing), "in_progress" (answered), "completed" or "failed" (could not be placed, or refused; see outcome).
outcomestringFree-text outcome once known (e.g. "link_sent", "declined"), or the reason a call was refused (e.g. insufficient credits). Empty while ongoing.
callIdstring (int64)The call's id once the call exists (0 while still dialing). Use with GetCall / GetCallTranscript / DownloadCallRecording.
hasTranscriptbooleanTrue once a transcript is available.
transcriptSummarystringShort AI summary of the conversation; empty until the call has finished post-processing.
sentimentScoreintegerSentiment 1 (negative) to 5 (positive); 0 = not scored yet.
curl "https://api.pingx.ai/voice/v1/dials/DIALID/status" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#GET /voice/v1/human-assignments

ListHumanAssignments · needs voice:read (or write)

ListHumanAssignments lists which humans each AI agent may escalate to (triage). An agent can only ever reach humans assigned to it.

Query parameters

NameTypeDescription
pageSizeintegerMax assignments per page. Default 50, max 200.
pageTokenstringnextPageToken from the previous response; empty for the first page.

Response ListHumanAssignmentsResponse

FieldTypeDescription
assignmentsHumanAssignment[]
assignments[].agentIdstring (int64)
assignments[].humanIdstring (int64)
assignments[].channelstringCurrently always "whatsapp".
assignments[].createdAtstringRFC3339, UTC.
nextPageTokenstringPass as pageToken for the next page; empty on the last page.
curl "https://api.pingx.ai/voice/v1/human-assignments" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#PUT /voice/v1/human-assignments/{agentId}/{humanId}

SetHumanAssignment · needs voice:write

SetHumanAssignment allows (channel "whatsapp") or revokes (channel "") an AI agent's escalation to a human. Idempotent. INVALID_ARGUMENT if the agent is unknown or the human has no whatsappMobile.

Path parameters

NameTypeDescription
agentIdstring (int64)Path parameter.
humanIdstring (int64)Path parameter.

Request body (JSON)

FieldTypeDescription
channelstring"whatsapp" to allow escalation; "" to revoke the assignment.

Response SetHumanAssignmentResponse

FieldTypeDescription
assignmentHumanAssignmentThe resulting assignment; unset when it was revoked.
assignment.agentIdstring (int64)
assignment.humanIdstring (int64)
assignment.channelstringCurrently always "whatsapp".
assignment.createdAtstringRFC3339, UTC.
curl -X PUT "https://api.pingx.ai/voice/v1/human-assignments/AGENTID/HUMANID" \
  -H "Authorization: Bearer $PINGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel":"…"}'

#POST /voice/v1/human-calls

PlaceHumanCall · needs voice:write

PlaceHumanCall starts a bridged call between one of the organization's humans (see ListHumans) and a customer: the human's phone is dialed first, then the customer's, and both are joined on one line. No AI persona speaks; the call is silently recorded, transcribed and scored. Returns immediately with a dialId, same lifecycle and polling as PlaceCall. The human must have a phone number. Not idempotent.

Request body (JSON)

FieldTypeDescription
humanIdstring (int64)The human to bridge in (from ListHumans). Required; must have a phone.
phonestringCustomer phone number to call, E.164. Required.
namestringOptional customer display name (max 120 chars).

Response PlaceHumanCallResponse

FieldTypeDescription
dialIdstring (int64)Handle for this dial attempt; see PlaceCallResponse.dialId.
statusstringAlways "dialing" on success.
curl -X POST "https://api.pingx.ai/voice/v1/human-calls" \
  -H "Authorization: Bearer $PINGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"humanId":"…","phone":"…","name":"…"}'

#GET /voice/v1/humans

ListHumans · needs voice:read (or write)

ListHumans lists the directory of people the business can reach by phone (bridged human calls) and/or WhatsApp (AI agent escalations), oldest first.

Query parameters

NameTypeDescription
pageSizeintegerMax humans per page. Default 50, max 200.
pageTokenstringnextPageToken from the previous response; empty for the first page.

Response ListHumansResponse

FieldTypeDescription
humansHuman[]
humans[].humanIdstring (int64)
humans[].namestring
humans[].phonestringDialed for bridged human calls, E.164; may be empty.
humans[].whatsappMobilestringWhere AI agents notify this human on WhatsApp, E.164; may be empty.
humans[].purposestringOptional role tag (e.g. "technician", "billing") AI agents can look people up by.
humans[].activebooleanWhether this human can currently be dialed or notified.
humans[].createdAtstringRFC3339, UTC.
nextPageTokenstringPass as pageToken for the next page; empty on the last page.
curl "https://api.pingx.ai/voice/v1/humans" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#POST /voice/v1/humans

AddHuman · needs voice:write

AddHuman adds a person to the directory. At least one of phone or whatsappMobile is required. ALREADY_EXISTS if the phone is already registered.

Request body (JSON)

FieldTypeDescription
namestringRequired, max 60 chars.
phonestringE.164; optional if whatsappMobile is set.
whatsappMobilestringE.164; optional if phone is set.
purposestringOptional role tag, max 60 chars.

Response AddHumanResponse

FieldTypeDescription
humanHumanA person in the directory.
human.humanIdstring (int64)
human.namestring
human.phonestringDialed for bridged human calls, E.164; may be empty.
human.whatsappMobilestringWhere AI agents notify this human on WhatsApp, E.164; may be empty.
human.purposestringOptional role tag (e.g. "technician", "billing") AI agents can look people up by.
human.activebooleanWhether this human can currently be dialed or notified.
human.createdAtstringRFC3339, UTC.
curl -X POST "https://api.pingx.ai/voice/v1/humans" \
  -H "Authorization: Bearer $PINGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","phone":"…","whatsappMobile":"…","purpose":"…"}'

#DELETE /voice/v1/humans/{humanId}

RemoveHuman · needs voice:write

RemoveHuman deletes a human and their agent assignments. NOT_FOUND if unknown or in another organization.

Path parameters

NameTypeDescription
humanIdstring (int64)

Response RemoveHumanResponse

curl -X DELETE "https://api.pingx.ai/voice/v1/humans/HUMANID" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#PATCH /voice/v1/humans/{humanId}

UpdateHuman · needs voice:write

UpdateHuman replaces a human's name, phone, whatsappMobile and purpose (full replace, not a merge: send every field you want to keep).

Path parameters

NameTypeDescription
humanIdstring (int64)

Request body (JSON)

FieldTypeDescription
namestringSame rules as AddHumanRequest; all fields replace the stored values.
phonestring
whatsappMobilestring
purposestring

Response UpdateHumanResponse

FieldTypeDescription
humanHumanA person in the directory.
human.humanIdstring (int64)
human.namestring
human.phonestringDialed for bridged human calls, E.164; may be empty.
human.whatsappMobilestringWhere AI agents notify this human on WhatsApp, E.164; may be empty.
human.purposestringOptional role tag (e.g. "technician", "billing") AI agents can look people up by.
human.activebooleanWhether this human can currently be dialed or notified.
human.createdAtstringRFC3339, UTC.
curl -X PATCH "https://api.pingx.ai/voice/v1/humans/HUMANID" \
  -H "Authorization: Bearer $PINGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","phone":"…","whatsappMobile":"…","purpose":"…"}'

#GET /voice/v1/numbers

ListNumbers · needs voice:read (or write)

ListNumbers lists the organization's voice phone numbers (the numbers calls are placed from and received on), default number first. WhatsApp numbers are managed by the WhatsApp API, not here.

Query parameters

NameTypeDescription
pageSizeintegerMax numbers per page. Default 50, max 200.
pageTokenstringnextPageToken from the previous response; empty for the first page.

Response pingxVoiceV1ListNumbersResponse

FieldTypeDescription
numbersVoiceNumber[]
numbers[].numberIdstring (int64)Id used by RemoveNumber, SetDefaultNumber and SetInboundAgent.
numbers[].numberstringThe number, E.164.
numbers[].labelstringOptional human label (max 60 chars).
numbers[].isDefaultbooleanTrue for the number outbound calls use by default.
numbers[].inboundAgentIdstring (int64)AI agent answering inbound calls to this number; 0 = none (calls refused).
numbers[].inboundAgentNamestringName of that agent; empty when unbound.
numbers[].syncErrorstringEmpty when the number is registered on the telephony trunk and dialable; otherwise why not (the number is refused for calls until fixed).
numbers[].createdAtstringWhen it was registered (RFC3339, UTC).
nextPageTokenstringPass as pageToken for the next page; empty on the last page.
curl "https://api.pingx.ai/voice/v1/numbers" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#POST /voice/v1/numbers

AddNumber · needs voice:write

AddNumber registers a phone number the organization owns on Pingx Telephony so it can place and receive calls. The first number becomes the default automatically. If registering it on the telephony trunk fails the number is still saved and the returned syncError says why it is not yet dialable (registration is retried automatically). ALREADY_EXISTS if the number is already registered.

Request body (JSON)

FieldTypeDescription
numberstringE.164 number to register. Required.
labelstringOptional label (max 60 chars).
makeDefaultbooleanForce this number to become the default even if others exist.

Response AddNumberResponse

FieldTypeDescription
numberVoiceNumberA voice phone number registered by the organization.
number.numberIdstring (int64)Id used by RemoveNumber, SetDefaultNumber and SetInboundAgent.
number.numberstringThe number, E.164.
number.labelstringOptional human label (max 60 chars).
number.isDefaultbooleanTrue for the number outbound calls use by default.
number.inboundAgentIdstring (int64)AI agent answering inbound calls to this number; 0 = none (calls refused).
number.inboundAgentNamestringName of that agent; empty when unbound.
number.syncErrorstringEmpty when the number is registered on the telephony trunk and dialable; otherwise why not (the number is refused for calls until fixed).
number.createdAtstringWhen it was registered (RFC3339, UTC).
curl -X POST "https://api.pingx.ai/voice/v1/numbers" \
  -H "Authorization: Bearer $PINGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"…","label":"…","makeDefault":false}'

#DELETE /voice/v1/numbers/{numberId}

RemoveNumber · needs voice:write

RemoveNumber unregisters a voice number and removes it from the telephony trunk; inbound calls to it stop being answered. NOT_FOUND when the number is unknown (including already removed) or belongs to another organization.

Path parameters

NameTypeDescription
numberIdstring (int64)

Response RemoveNumberResponse

curl -X DELETE "https://api.pingx.ai/voice/v1/numbers/NUMBERID" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#POST /voice/v1/numbers/{numberId}:setDefault

SetDefaultNumber · needs voice:write

SetDefaultNumber makes a number the one outbound calls are placed from by default. Idempotent.

Path parameters

NameTypeDescription
numberIdstring (int64)

Response SetDefaultNumberResponse

curl -X POST "https://api.pingx.ai/voice/v1/numbers/NUMBERID:setDefault" \
  -H "Authorization: Bearer $PINGX_API_KEY"

#POST /voice/v1/numbers/{numberId}:setInboundAgent

SetInboundAgent · needs voice:write

SetInboundAgent chooses which AI agent answers cold inbound calls to a number. agentId = 0 clears the binding, after which the number refuses inbound calls (there is no fallback agent). Idempotent.

Path parameters

NameTypeDescription
numberIdstring (int64)

Request body (JSON)

FieldTypeDescription
agentIdstring (int64)AI agent to answer inbound calls; 0 clears the binding. Must belong to the organization.

Response SetInboundAgentResponse

FieldTypeDescription
numberVoiceNumberA voice phone number registered by the organization.
number.numberIdstring (int64)Id used by RemoveNumber, SetDefaultNumber and SetInboundAgent.
number.numberstringThe number, E.164.
number.labelstringOptional human label (max 60 chars).
number.isDefaultbooleanTrue for the number outbound calls use by default.
number.inboundAgentIdstring (int64)AI agent answering inbound calls to this number; 0 = none (calls refused).
number.inboundAgentNamestringName of that agent; empty when unbound.
number.syncErrorstringEmpty when the number is registered on the telephony trunk and dialable; otherwise why not (the number is refused for calls until fixed).
number.createdAtstringWhen it was registered (RFC3339, UTC).
curl -X POST "https://api.pingx.ai/voice/v1/numbers/NUMBERID:setInboundAgent" \
  -H "Authorization: Bearer $PINGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agentId":"…"}'