Create masked voice-SMS session

Body Params
string
string
integer
≥ 1
Headers
string
enum
Defaults to application/json
Allowed:
Responses

status.code and errors.code properties in the response payload, rather than the HTTP status code of the response.

Status codeDescription
2700Session successfully created
2701Session successfully created, the country codes of the phone number and assigned masked_id differs

status.code and errors.code properties in the response payload, rather than the HTTP status code of the response.

Status codeDescription
2702Request for creating session failed, there isn't available masked_id
2703Request for creating session failed, invalid session type
2705Request for creating session failed, validity_period must be integer greater than zero
2706Request for creating session failed, phone number {phone_number} blocked by Telesign
2707Request for creating session failed, phone number {phone_number} blocked by customer
2708Request for creating session failed, phone_number_1 and phone_number_2 parameters cannot be the same value

status.code and errors.code properties in the response payload, rather than the HTTP status code of the response.

Status codeDescription
2704Request for creating session failed, internal error

Language
Credentials
Basic
base64
:
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain