Update SMS settings
PATCH/sms/settings
Changes the opt-out message and the other SMS settings. Send only the fields to change. The opt-out message is footer_text, appended to every outbound campaign message while footer_enabled is true. It is not appended to messages sent with POST /sms. Unknown fields and out-of-range values are rejected with 400.
Requires
Authorization: Bearer <api_key>. Create a key in the Inspra dashboard under Workspace Settings → API Keys.Body application/json
- footer_enabledbooleanoptionalAppend the opt-out message to every outbound campaign message.
- footer_textstring0–120 charsoptionalThe opt-out message.
- max_segmentsinteger1–5optionalCap on campaign message length in segments.
- retry_enabledbooleanoptionalRe-send failed campaign messages automatically.
- retry_max_attemptsinteger1–3optionalTotal attempts per recipient including the first.
- retry_delay_minutesinteger5–120optional
- custom_variablesstring[]optionalWorkspace-defined template variables. Letters, digits and underscores, max 40 characters each.
Response 200 OK
Settings after the update.
- footer_enabledbooleanoptionalAppend the opt-out message to every outbound campaign message.
- footer_textstring0–120 charsoptionalThe opt-out message.
- max_segmentsinteger1–5optionalCap on campaign message length in segments.
- retry_enabledbooleanoptionalRe-send failed campaign messages automatically.
- retry_max_attemptsinteger1–3optionalTotal attempts per recipient including the first.
- retry_delay_minutesinteger5–120optional
- custom_variablesstring[]optionalWorkspace-defined template variables. Letters, digits and underscores, max 40 characters each.
Errors
- 400Bad RequestValidation failed / malformed request.
- 401UnauthorizedMissing, malformed, or invalid API key.
- 403ForbiddenWorkspace unavailable, suspended, or paywalled.
- 429Too Many RequestsWorkspace request limit exceeded; shared across all its API keys.