SMS
Save SMS provider configuration
Upserts the credentials for a single SMS provider (twilio, sinch, or textgrid) on the caller's organization. Whitespace is trimmed from every credential before persistence. Only fields relevant to the chosen provider are read; other fields are ignored. Requires SUPERADMIN.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Save credentials for a single SMS provider. Only the fields relevant to provider are read; others may be present but are ignored. All credential strings are trimmed before persistence.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/sms/providers/config" \ -H "Content-Type: application/json" \ -d '{ "provider": "twilio", "twilioAccountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "twilioAuthToken": "your-twilio-auth-token", "twilioMessagingServiceSid": "MGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }'{ "success": true, "message": "twilio SMS configuration saved"}