Skip to Content
API access is available to organizations with a signed BAA. Request API access →
API referenceDelete a campaign

Delete a campaign

DELETE/campaigns/{campaignId}

Deletes a draft campaign. A campaign that has started can’t be deleted, because its messages are in patients’ conversations; archive it instead.

Scope
messages.write

Path parameters

campaignIdUUIDRequired

ID of the campaign.

Returns

Returns 204 No Content with an empty body.

Errors

Failed requests return application/problem+json problem details. The errors specific to this endpoint:

StatusCodeMeaning
400invalid_requestThe request is malformed, such as invalid JSON.
401invalid_tokenThe API key or access token is missing, expired, or revoked.
403insufficient_scopeThe credential doesn’t have the scope this endpoint needs.
404not_foundThe resource doesn’t exist, or isn’t visible to this credential.
409campaign_not_deletableThe campaign has started. Archive it with Update a campaign instead.
429rate_limitedToo many requests. Retry after Retry-After seconds.
Last updated on