cURL
curl "https://api.myworklayer.com/v1/rooms?limit=20" \
-H "Authorization: Bearer $WORKLAYER_API_KEY"const response = await fetch('https://api.myworklayer.com/v1/rooms?limit=20', {
headers: {
Authorization: `Bearer ${process.env.WORKLAYER_API_KEY}`,
},
});
const data = await response.json();
console.log(data);{
"rooms": [
{
"id": "cmhw0b1k90001l808a1x7v3qe",
"source": "web",
"kind": "web_chat",
"name": null,
"externalKey": null,
"lastActivityAt": "2026-11-20T09:15:31.044Z",
"createdAt": "2026-10-02T14:03:12.587Z"
},
{
"id": "cmhx3q7v20004l808sd5k2r1m",
"source": "api",
"kind": "api",
"name": "Support ticket 4821",
"externalKey": "zendesk-ticket-4821",
"lastActivityAt": "2026-11-19T17:42:08.311Z",
"createdAt": "2026-11-19T17:40:55.902Z"
}
],
"nextCursor": null
}{
"statusCode": 400,
"message": "Invalid pagination parameters.",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Rooms
List Rooms
Returns your factory’s main Room and all active (non-archived) API-created Rooms, ordered by most recent activity.
GET
/
v1
/
rooms
cURL
curl "https://api.myworklayer.com/v1/rooms?limit=20" \
-H "Authorization: Bearer $WORKLAYER_API_KEY"const response = await fetch('https://api.myworklayer.com/v1/rooms?limit=20', {
headers: {
Authorization: `Bearer ${process.env.WORKLAYER_API_KEY}`,
},
});
const data = await response.json();
console.log(data);{
"rooms": [
{
"id": "cmhw0b1k90001l808a1x7v3qe",
"source": "web",
"kind": "web_chat",
"name": null,
"externalKey": null,
"lastActivityAt": "2026-11-20T09:15:31.044Z",
"createdAt": "2026-10-02T14:03:12.587Z"
},
{
"id": "cmhx3q7v20004l808sd5k2r1m",
"source": "api",
"kind": "api",
"name": "Support ticket 4821",
"externalKey": "zendesk-ticket-4821",
"lastActivityAt": "2026-11-19T17:42:08.311Z",
"createdAt": "2026-11-19T17:40:55.902Z"
}
],
"nextCursor": null
}{
"statusCode": 400,
"message": "Invalid pagination parameters.",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Authorizations
Your factory's Worklayer API key (wrk-...). See Get an API key and Authentication. Requests sent from the playground execute live against your factory.