Delete SMS campaign
DELETE/sms-campaigns/{id}
Permanently deletes an SMS campaign and, by cascade, its recipients. This cannot be undone. To stop sending without destroying the history, use POST /sms-campaigns/{id}/terminate instead.
Requires
Authorization: Bearer <api_key>. Create a key in the Inspra dashboard under Workspace Settings → API Keys.Path parameters
- idstringrequiredUUID of the resource.
Response 200 OK
Deletion result.
- successbooleanrequired
- terminatedbooleanoptionalTrue when a provider batch was terminated before deletion.
- providerobjectoptionalPresent only when
terminatedis true.4 fields
- calledbooleanoptional
- usedstringnullableoptionalProvider that handled the terminate-batch call.
- successbooleanoptional
- errorstringnullableoptionalProvider error text when
successis false; null otherwise.
Errors
- 401UnauthorizedMissing, malformed, or invalid API key.
- 403ForbiddenWorkspace unavailable, suspended, or paywalled.
- 404Not FoundResource not found in this workspace.
- 429Too Many RequestsWorkspace request limit exceeded; shared across all its API keys.