Skip to content

Arm the shared test number

POST
/voice/inbound-claims
curl --request POST \
--url https://api.pingram.io/voice/inbound-claims \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "inbound": { "type": "script", "steps": [ { "verb": "Say", "text": "example" } ], "stream": { "audio": true, "transcript": "single" }, "privacy": { "record": true, "transcript": "single" } } }'

Arm the shared test number so the next call from this user’s phone uses this inbound behavior

Authorizations

Request Bodyrequired

Media typeapplication/json

Playground request that arms the shared test number for the signed-in user’s phone.

object
inbound
required
One of:
Script
object
type
required
string
Allowed values: script
steps
required
Array<object>

One spoken line.

object
verb
required
string
Allowed values: Say
text
required
string
stream

What the call socket carries. Omitted means the socket is open and carries neither.

object
audio

Live call audio. Omitted means off.

boolean
transcript

Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.

string
Allowed values: single multichannel
privacy

Omitted record and transcript mean both are off.

object
record
boolean
transcript

Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.

string
Allowed values: single multichannel

Responses

200

Successful response

Media typeapplication/json
object
callerNumber
required

E.164 number Pingram expects the call to come from.

string
sharedNumber
required

Shared platform number to dial.

string
Examplegenerated
{
"callerNumber": "example",
"sharedNumber": "example"
}

400

Bad Request - validation errors, invalid input

Media typeapplication/json

Standard error response for API errors.

object
trackingId
required

Unique tracking ID for the request.

string
error
required

Structured error details for API error responses.

object
code
required

Machine-readable error code.

string
message
required

Human-readable error message.

string
fix

Actionable hint for fixing the error.

string
Examplegenerated
{
"trackingId": "example",
"error": {
"code": "example",
"message": "example",
"fix": "example"
}
}

401

Unauthorized

402

Payment Required - usage limits exceeded

Media typeapplication/json

Standard error response for API errors.

object
trackingId
required

Unique tracking ID for the request.

string
error
required

Structured error details for API error responses.

object
code
required

Machine-readable error code.

string
message
required

Human-readable error message.

string
fix

Actionable hint for fixing the error.

string
Examplegenerated
{
"trackingId": "example",
"error": {
"code": "example",
"message": "example",
"fix": "example"
}
}

500

Internal Server Error

502

Bad Gateway - provider error

Media typeapplication/json

Standard error response for API errors.

object
trackingId
required

Unique tracking ID for the request.

string
error
required

Structured error details for API error responses.

object
code
required

Machine-readable error code.

string
message
required

Human-readable error message.

string
fix

Actionable hint for fixing the error.

string
Examplegenerated
{
"trackingId": "example",
"error": {
"code": "example",
"message": "example",
"fix": "example"
}
}