Get Next Item

Retrieves the next uncompleted item from the queue for annotation. Items are returned in FIFO order (oldest first).

This endpoint is useful for building annotation workflows where reviewers process queue items one at a time. Returns the complete item data including the associated trace, span, or thread details. If no pending items remain, returns null with a message.

Path parameters

queueIdstringRequired
The ID of the queue.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Response

Successfully retrieved next pending queue item
successboolean
Indicates if the request was successful.
dataobject