Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Your factory's Worklayer API key (wrk-...). See Get an API key and Authentication. Requests sent from the playground execute live against your factory.

Path Parameters

roomId
string
required

Room ID. Pass web to target your factory's main Room (the conversation in the Worklayer web app).

Required string length: 1 - 191
workerId
string
required

The Worker id.

Body

application/json
text
string
required

The message. It must not be blank.

Maximum string length: 16000
delivery
enum<string>
default:queue

queue: the Worker reads the message as a new request, after its current work. steer: the Worker reads the message during its current work, as new guidance. Workers do not accept context.

Available options:
queue,
steer

Response

The message is saved. Read status to know if the Worker started work on it.

messageId
string
required

The id of the saved message.

status
enum<string>

Omitted when the Worker started processing the message. execution_unconfirmed: the message was saved, but execution start could not be confirmed—don't resend; inspect the Worker's status or messages. not_started: the message was saved, but execution did not start.

Available options:
execution_unconfirmed,
not_started
failure
string

Only with not_started: a failure code, when there is one.