Skip to the page

API reference

Webhooks

The webhooks of a workspace, the events they can send and their deliveries (read only with a key).

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

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • history_days integer (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

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • items array of object required
      • id string (uuid) required
      • name string required
      • event string required The first of events.
      • include array of string required What the hook adds to its payloads.
      • delivery object required Header names and the kind of authentication, never a value.
        • headers array of object required
          • name string required
        • auth object required
          • type string required
          • header string
        • timeout_ms integer or null required
        • retry object required
          • max_attempts integer or null required
          • base_delay_seconds integer or null required
        • batch object or null required
          • max_events integer required
          • max_wait_seconds integer required
      • events array of string required Everything the hook listens to: event types, families (run.*) or *.
      • scope object required
        • type string required
        • id string (uuid) or null required
        • checklist_id string (uuid) or null required
      • condition any or null required
      • action object required
        • type string required
        • config object required
      • enabled boolean required
      • created_by string (uuid) required
      • endpoint_set_by string (uuid) or null required Who chose the webhook’s current URL; null for other actions.
      • endpoint_set_at string (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • secret_holder_user_id string (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_at string (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • created_by_name string or null In the list only: the creator’s name while they are a member.
      • endpoint_set_by_name string or null
      • secret_holder_name string or null
      • created_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if 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_at string (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

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
hookIdpathstring (uuid)yes

Responses

  • 200 application/json
    • id string (uuid) required
    • name string required
    • event string required The first of events.
    • include array of string required What the hook adds to its payloads.
    • delivery object required Header names and the kind of authentication, never a value.
      • headers array of object required
        • name string required
      • auth object required
        • type string required
        • header string
      • timeout_ms integer or null required
      • retry object required
        • max_attempts integer or null required
        • base_delay_seconds integer or null required
      • batch object or null required
        • max_events integer required
        • max_wait_seconds integer required
    • events array of string required Everything the hook listens to: event types, families (run.*) or *.
    • scope object required
      • type string required
      • id string (uuid) or null required
      • checklist_id string (uuid) or null required
    • condition any or null required
    • action object required
      • type string required
      • config object required
    • enabled boolean required
    • created_by string (uuid) required
    • endpoint_set_by string (uuid) or null required Who chose the webhook’s current URL; null for other actions.
    • endpoint_set_at string (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • secret_holder_user_id string (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_at string (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • created_by_name string or null In the list only: the creator’s name while they are a member.
    • endpoint_set_by_name string or null
    • secret_holder_name string or null
    • created_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if 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_at string (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

NameInTypeRequiredDescription
statusqueryone of: "pending", "delivered", "dead"no
cursorquerystring (up to 100 characters)no
limitqueryinteger (1 to 200)no
workspaceIdpathstring (uuid)yes
hookIdpathstring (uuid)yes

Responses

  • 200 application/json
    • items array of object required
      • id string (uuid) required
      • event_id string (uuid) required
      • event string required
      • status one of: "pending", "delivered", "dead" required
      • attempts integer required
      • replays integer required
      • idempotency_key string (uuid) required
      • last_status integer or null required
      • last_error string or null required
      • next_attempt_at string (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • last_attempt_at string (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • delivered_at string (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • created_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • next_cursor string 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

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • api_version string required
    • event_version integer required
    • families array of string required The families a hook can subscribe to as family.*.
    • events array of object required
      • type string required
      • family string required
      • description string required
      • source one of: "audit", "schedule", "jornada" required audit: caused by a change; schedule: caused by a date passing; jornada: a Jornada time-clock event.
      • data array of object required
        • name string required
        • required boolean required
      • schema object 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

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • handlers array of object required
      • name string required
      • description string required
      • events array of string required The events it works on, as patterns. Empty: any event about a checklist.
      • args array of object required
        • name string required
        • type one of: "text", "longtext", "integer", "groups", "person" required
        • required boolean required

Errors come in the error format.