Skip to content

Check a message sender

GET
/v1/Accounts/{auth_id}/MsgSenders/{country_code}/{phone_number}
curl --request GET \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/MsgSenders/US/%2B15555550100 \
--header 'Authorization: Basic <credentials>'

Tells you whether a sender may be used as the From of messages from the account in the path. It is allowed when caller-ID checks are turned off for the account, when it is an approved sender ID of the account (any country), or when it is a number on the account with the sms capability. The answer is a JSON string: “success” with 200 when allowed, “failure” with 401 when the sender is not on the account, and “success” with 401 when the number is on the account but cannot send SMS. A 401 here is the check’s answer, not an authentication failure.

auth_id
required
string

Your Auth ID (or a direct child’s).

Example

AC000000000000000000
country_code
required
string

Country of the destination; accepted but not used by the check.

Example

US
phone_number
required
string

The sender ID or number, with or without +.

Example

+15555550100

Allowed: ‘success’

Media type application/json
string

Example generated

example

A path parameter is missing

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

Not allowed (‘failure’ or ‘success’; see the description), or missing or invalid credentials (from the API gateway)

Media type application/json
string

Example generated

example