Skip to content

Get the SMS integration

GET
/sms/settings
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/sms/settings \
--header 'Authorization: Bearer <token>'

Returns the workspace’s own SMS provider account (never its API key), the sender and its messaging profile, the texting, incoming-texts and replies switches, and how many people sign in with a texted code. The account itself is saved in Settings, Integrations, SMS. Requires settings.manage.

The SMS settings.

Media typeapplication/json
object
data
required

The workspace’s own SMS provider account and its switches, without the secret.

object
connected
required

True once a Telnyx account is saved.

boolean
inboundEnabled
required

Incoming texts open or add to tickets (Tickets module).

boolean
isEnabled
required

Texting is on: sign-in codes, incoming texts and ticket replies go out only while it is.

boolean
messagingProfileId

The Telnyx messaging profile the sender belongs to, or null while none is saved; absent on an older server. The API key is never returned.

string | null
provider
required

The provider the account is with, or null while none is saved.

Any of:
string
Allowed values: TELNYX
repliesEnabled
required

Replies on tickets that came in by text go back by text (Tickets module).

boolean
sender
required

The E.164 phone, or the messaging profile ID whose numbers texts go out from, or null while none is saved.

string | null
senderKind
required
Any of:
string
Allowed values: phone profile
smsSignInPeople
required

How many active people sign in with a texted code (the SMS second factor).

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"data": {
"provider": "TELNYX",
"senderKind": "phone"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.