Skip to main content
PUT
Connect SMS Provider

Authorizations

Authorization
string
header
required

Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.

Headers

Thinnest-Workspace
string

Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.

Example:

"org_3fKq9TzQ1mN8vB2xR7cLpA"

Body

application/json
provider
enum<string>
required
Available options:
msg91,
exotel,
gupshup,
infobip,
vonage,
fast2sms
credentials
object
required

The provider's own fields, as listed above.

senderHeader
string
required

Your six-letter sender header, as registered on your DLT portal.

Example:

"ACMEIN"

dltEntityId
string
required

Your Principal Entity ID from your DLT portal (digits only).

Example:

"1201159123456789012"

Response

The connection as saved.

The workspace's own SMS provider. Secrets are never returned.

provider
enum<string>
required
Available options:
msg91,
exotel,
gupshup,
infobip,
vonage,
fast2sms
senderHeader
string
required
Example:

"ACMEIN"

dltEntityId
string
required
Example:

"1201159123456789012"

status
enum<string>
required

From the last Send Test SMS since it was saved.

Available options:
untested,
working,
failing
lastError
string | null
required

Why the last test failed.

fields
object
required

The provider's fields that are not secret.

secretsSaved
string[]
required

The secret fields held, by name.