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
url
string<uri>
required

A public https:// URL, at most 2,048 characters. It must not have a user name, a password or a fragment (#). It must not be localhost, a .localhost host, or a private or reserved IP address.

Maximum string length: 2048
events
enum<string>[]
required
Required array length: 1 - 6 elements

An event type that the subscription receives.

Available options:
room.response,
reviews.approvals.created,
reviews.questions.created,
reviews.connect_apps.created,
room.status,
worker.status
name
string

The display name. Default: the host name of url.

Required string length: 1 - 255

Response

The new subscription, with its signing secret.

id
string
required

Subscription ID.

name
string
required

The display name.

url
string<uri>
required

The HTTPS URL that receives the webhooks.

events
enum<string>[]
required

The event types that the subscription receives.

An event type that the subscription receives.

Available options:
room.response,
reviews.approvals.created,
reviews.questions.created,
reviews.connect_apps.created,
room.status,
worker.status
enabled
boolean
required

False when a person turned the subscription off in the web app. The API cannot change it.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
secret
string
required

The signing secret. It starts with whsec_. The API returns it only in this response.