Ban a customer
POST
/org/{tenant_code}/v2/messaging/banned-customers
Platform support: MT
Token Cost: 2 tokens (low)
Bans a customer by IP, customer id, or both (ban_type), optionally
resolving the customer from a live chat ticket. Closes the customer's
active ticket, if any. Can be called by an agent or by an API key;
banned_by on the resulting ban reflects which one it was.
Request
Responses
- 201
- 400
- 401
- 404
- 500
Customer banned.
Input failed validation (missing IP/customer id for the chosen ban_type, or days_banned <= 0).
Missing or invalid X-User-Identity header.
Unknown tenant.
Unhandled server-side error.