Skip to main content
GET
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.

Query Parameters

order
enum<string>
default:asc

asc: oldest first. desc: newest first.

Available options:
asc,
desc
limit
integer
default:30

The maximum number of items on the page.

Required range: 1 <= x <= 100
cursor
string

The nextCursor of the previous page.

Required string length: 1 - 4096
Pattern: ^[A-Za-z0-9_-]+$

Response

A page of messages.

messages
object[]
required
nextCursor
string | null
required

Send this value as cursor, with the same order, to get the next page. Null on the last page.