GET Hook history window
/api/clist/v1/workspaces/{workspaceId}/hook-settings
API key scope: workspace.update
How many days (7 to 90, default 30) the workspace keeps its event history and delivery log. A backfill can reach back this far and no further.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsonhistory_daysinteger (7 to 90) required
Errors come in the error format.
GET List hooks
/api/clist/v1/workspaces/{workspaceId}/hooks
API key scope: workspace.update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsonitemsarray of object requiredidstring (uuid) requirednamestring requiredeventstring required The first ofevents.includearray of string required What the hook adds to its payloads.deliveryobject required Header names and the kind of authentication, never a value.headersarray of object requirednamestring required
authobject requiredtypestring requiredheaderstring
timeout_msinteger or null requiredretryobject requiredmax_attemptsinteger or null requiredbase_delay_secondsinteger or null required
batchobject or null requiredmax_eventsinteger requiredmax_wait_secondsinteger required
eventsarray of string required Everything the hook listens to: event types, families (run.*) or*.scopeobject requiredtypestring requiredidstring (uuid) or null requiredchecklist_idstring (uuid) or null required
conditionany or null requiredactionobject requiredtypestring requiredconfigobject required
enabledboolean requiredcreated_bystring (uuid) requiredendpoint_set_bystring (uuid) or null required Who chose the webhook’s current URL; null for other actions.endpoint_set_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.secret_holder_user_idstring (uuid) or null required Who was last shown the webhook’s signing secret (created it, or last rotated it); null for other actions.secret_shown_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.created_by_namestring or null In the list only: the creator’s name while they are a member.endpoint_set_by_namestring or nullsecret_holder_namestring or nullcreated_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.created_time_zonestring (up to 64 characters) or null The creator’s IANA time zone when this was created;UTCif they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.updated_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
Errors come in the error format.
GET Get a hook
/api/clist/v1/workspaces/{workspaceId}/hooks/{hookId}
API key scope: workspace.update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes | |
hookId | path | string (uuid) | yes |
Responses
- 200
application/jsonidstring (uuid) requirednamestring requiredeventstring required The first ofevents.includearray of string required What the hook adds to its payloads.deliveryobject required Header names and the kind of authentication, never a value.headersarray of object requirednamestring required
authobject requiredtypestring requiredheaderstring
timeout_msinteger or null requiredretryobject requiredmax_attemptsinteger or null requiredbase_delay_secondsinteger or null required
batchobject or null requiredmax_eventsinteger requiredmax_wait_secondsinteger required
eventsarray of string required Everything the hook listens to: event types, families (run.*) or*.scopeobject requiredtypestring requiredidstring (uuid) or null requiredchecklist_idstring (uuid) or null required
conditionany or null requiredactionobject requiredtypestring requiredconfigobject required
enabledboolean requiredcreated_bystring (uuid) requiredendpoint_set_bystring (uuid) or null required Who chose the webhook’s current URL; null for other actions.endpoint_set_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.secret_holder_user_idstring (uuid) or null required Who was last shown the webhook’s signing secret (created it, or last rotated it); null for other actions.secret_shown_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.created_by_namestring or null In the list only: the creator’s name while they are a member.endpoint_set_by_namestring or nullsecret_holder_namestring or nullcreated_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.created_time_zonestring (up to 64 characters) or null The creator’s IANA time zone when this was created;UTCif they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.updated_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
Errors come in the error format.
GET Hook delivery log
/api/clist/v1/workspaces/{workspaceId}/hooks/{hookId}/deliveries
API key scope: workspace.update
The hook’s deliveries, newest first, with status (pending, delivered, dead), attempts, the idempotency key and the last error code. Payloads and responses are not shown.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | one of: "pending", "delivered", "dead" | no | |
cursor | query | string (up to 100 characters) | no | |
limit | query | integer (1 to 200) | no | |
workspaceId | path | string (uuid) | yes | |
hookId | path | string (uuid) | yes |
Responses
- 200
application/jsonitemsarray of object requiredidstring (uuid) requiredevent_idstring (uuid) requiredeventstring requiredstatusone of: "pending", "delivered", "dead" requiredattemptsinteger requiredreplaysinteger requiredidempotency_keystring (uuid) requiredlast_statusinteger or null requiredlast_errorstring or null requirednext_attempt_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.last_attempt_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.delivered_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.created_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
next_cursorstring or null required
Errors come in the error format.
GET Hook event catalog
/api/clist/v1/workspaces/{workspaceId}/hooks/events
API key scope: workspace.update
Every event a hook can listen to, with its family, what causes it, its data fields and a JSON Schema of the whole message. The same schemas are in this document under webhooks. Additive within an event version.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsonapi_versionstring requiredevent_versioninteger requiredfamiliesarray of string required The families a hook can subscribe to asfamily.*.eventsarray of object requiredtypestring requiredfamilystring requireddescriptionstring requiredsourceone of: "audit", "schedule", "jornada" requiredaudit: caused by a change;schedule: caused by a date passing;jornada: a Jornada time-clock event.dataarray of object requirednamestring requiredrequiredboolean required
schemaobject required JSON Schema of the whole message a receiver gets.
Errors come in the error format.
GET Internal hook handlers
/api/clist/v1/workspaces/{workspaceId}/hooks/handlers
API key scope: workspace.update
The named handlers an internal hook action can run inside the workspace, the events each works on and the args each takes.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsonhandlersarray of object requirednamestring requireddescriptionstring requiredeventsarray of string required The events it works on, as patterns. Empty: any event about a checklist.argsarray of object requirednamestring requiredtypeone of: "text", "longtext", "integer", "groups", "person" requiredrequiredboolean required
Errors come in the error format.