AgentController

Claim the next conversation work item

Selects the oldest available scoped conversation and atomically claims it for one worker. This combines queue selection and claim acquisition so concurrent workers do not need to coordinate those steps themselves.

post/agent/work-items/next

Request

  • Base URL: https://api.mailslurp.com
  • URL: https://api.mailslurp.com/agent/work-items/next
  • Auth: API key in header x-api-key

Request body

workerIdstring required
leaseSecondsinteger required
cursorstring nullable
inboxIdstring uuid nullable
hasAttachmentsboolean nullable

Response

The claimed conversation, or an empty work item when none is available.

nextCursorstring nullable
hasMoreboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.