Skip to navigation

Cancel a mass message

Cancels a mass message that has not finished sending.

Cancelling is a withdrawal: it needs only write:mass_messages and is never blocked by restrictions on the creator’s account.

Idempotency

With an Idempotency-Key, cancelling a campaign that is already CANCELLED returns 200 with its state instead of 409.

Required scopes: write:mass_messages.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:write:mass_messages

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

midstringRequired>=1 character

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Idempotency-KeystringOptionalformat: "^[A-Za-z0-9_-]*$"<=128 characters

Optional key for creating, queueing and cancelling a mass message. On create, the same key with the same draft answers 200 with the stored draft, and a different draft is 409 IDEMPOTENCY_KEY_REUSED. On queue and cancel, a campaign already in the target state answers 200 with its state instead of 409. The key is never stored raw and never echoed.

Response

Cancelled.
massMessageobject
The creator's own campaign DTO.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error