curl --request GET \
--url https://app.thinnest.ai/api/v1/sms/provider \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/sms/provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/sms/provider"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": "exotel",
"senderHeader": "ACMEIN",
"dltEntityId": "1201159123456789012",
"status": "working",
"lastError": null,
"fields": {
"accountSid": "acme1",
"apiKey": "a1b2c3d4e5f6",
"region": "in"
},
"secretsSaved": [
"apiToken"
]
}Get SMS Provider
The workspace’s SMS provider, sender header and DLT entity id. Secrets are never returned: secretsSaved names the ones held.
curl --request GET \
--url https://app.thinnest.ai/api/v1/sms/provider \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/sms/provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/sms/provider"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": "exotel",
"senderHeader": "ACMEIN",
"dltEntityId": "1201159123456789012",
"status": "working",
"lastError": null,
"fields": {
"accountSid": "acme1",
"apiKey": "a1b2c3d4e5f6",
"region": "in"
},
"secretsSaved": [
"apiToken"
]
}Authorizations
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
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.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Response
The connection.
The workspace's own SMS provider. Secrets are never returned.
msg91, exotel, gupshup, infobip, vonage, fast2sms "ACMEIN"
"1201159123456789012"
From the last Send Test SMS since it was saved.
untested, working, failing Why the last test failed.
The provider's fields that are not secret.
Show child attributes
Show child attributes
The secret fields held, by name.