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.

Body

application/json
name
string

The display name. The API removes spaces at the start and the end.

Required string length: 1 - 191
externalKey
string

Your own unique identifier for the Room—such as a support ticket ID (1–191 visible ASCII characters). Generated automatically if omitted. Archived Rooms retain their externalKey.

Pattern: ^[!-~]{1,191}$

Response

The new Room.

A conversation between your app and the factory. Each factory has a main Room, and you can create more.

id
string
required

The Room id.

source
enum<string>
required

Informational. web for the main Room, or api for an API-created Room.

Available options:
web,
api
kind
enum<string>
required

Informational. web_chat for the main Room, or api for an API-created Room.

Available options:
web_chat,
api
name
string | null
required

The display name, or null.

externalKey
string | null
required

Your key for the Room. Always null for the main Room.

lastActivityAt
string<date-time> | null
required

The time of the last activity in the Room, or null.

createdAt
string<date-time>
required