agentThreads

Gets agent thread message status.

Changed on

Returns the processing status of a submitted agent thread message, including messages still in the queue. Use the accepted message id returned by the server when creating a thread or submitting a message. The response indicates whether an agent response exists and includes its id and error details when available. Retrieve reply content with GET /agents/threads/{threadId}/messages.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

get/agents/threads/{threadId}/messages/{messageId}/status

Request

  • Base URL
    https://api.awork.com/api/v1
  • URL
    https://api.awork.com/api/v1/agents/threads/{threadId}/messages/{messageId}/status
  • Auth
    HTTP bearer

Path parameters

threadIdstring uuid required

The id of the thread that contains the message.

messageIdstring uuid required

The accepted message id returned by the server.

Response

OK

messageIdstring uuid

The server-generated identifier of the accepted user message.

statusstring nullable

The processing status.

hasAgentResponseboolean

Whether an agent response was persisted.

responseIdstring nullable

The persisted agent response id.

lastSequenceNumberinteger nullable

The last streamed sequence number observed for the response.

errorstring nullable

The processing error, if any.

Changes