Skip to content

Store inbound call behavior on a number this account owns

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

Authorizations

Parameters

Path Parameters

phoneNumber
required
string

E.164 phone number

Request Bodyrequired

Media typeapplication/json
One of:
Script
object
type
required
string
Allowed values: script
steps
required
Array<object>

One spoken line. This slice only runs Say.

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

Omitted privacy means record and transcribe are both on.

object
record
boolean
transcribe
boolean

Responses

200

Successful response

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "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"
}
}