Withdraw a message
Withdraws a message your application sent in the conversation.
Only messages your application sent can be withdrawn. Any other message, the creator’s own included, answers
404. Withdrawing a message that is already withdrawn returns 204 again, and no fencingToken is checked for it.
Paid messages
A message someone paid for is never withdrawn: refund it first. The code you receive depends on read:revenue,
because whether a message was purchased is shown only with that scope, on every channel.
Conversation leases
Your application’s withdrawal is coordinated like its send (conversation leases). Send the
fencingToken as a query parameter. EVVA decides in the same transaction as the withdrawal, so a takeover and the withdrawal are
always ordered.
- While a lease is live, only your application’s own lease admits the withdrawal, with its current
fencingToken. Under a lease held by a person on the agency’s team or by another application, or without the token, it is refused with409 LEASE_HELDandRetry-Afterset to the lease’s remaining time. - A
fencingTokenthat is not your lease’s current one is refused with409 STALE_FENCING_TOKEN. Once the lease is released or has expired, send no token: an old one is refused the same way. - After a person on the agency’s team replies in the conversation, the withdrawal is refused with
409 AUTOMATION_PAUSEDfor the agency’s pause window, withRetry-After. While a handoff to a person has been taken up, it is refused with409 AUTOMATION_PAUSEDand noRetry-After, until a person hands the conversation back. The creator’s own replies do not pause it.
Errors
400 INVALID_REQUEST— thefencingTokenis malformed.409 MESSAGE_ALREADY_SOLD— someone paid for the message, and the creator’s consent coversread:revenue.409 STATE_CHANGE_REFUSED— the same refusal when the consent does not coverread:revenue.409 LEASE_HELD— a lease held by someone else is live, or you sent nofencingTokenwhile a lease is live.Retry-Aftergives the lease’s remaining time.409 STALE_FENCING_TOKEN— thefencingTokenis not your lease’s current one.409 AUTOMATION_PAUSED— a person on the agency’s team is handling the conversation. See Conversation leases.
Required scopes: write:messages.
Authentication
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.
write:messagesPath parameters
The creator profile id — the ONLY source of the creator a request acts for.
Headers
Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
