Atomically claim oldest eligible case in workspace selection
POST
/api/tickets/v2/workspace/next
Body contains filter (workspace filters excluding limit/offset) and UUID request_id. Requires an authenticated tenant member. Same tenant lock, capacity and optimistic claim checks as existing service workflow. Idempotent per request_id and filter; never changes V1.
Request
Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Responses
🟢200
ticket_id or null when none eligible
This response does not have a body.
🟠409
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.snakk.ai/api/tickets/v2/workspace/next' \
--header'X-API-Key: <api-key>'