Webhooks
React to events such as completions by subscribing an HTTPS endpoint, verifying signatures, and inspecting and retrying deliveries.
Part of Tayl's API docs: requests go to
https://tayl.prowithAuthorization: Bearer <key>, and Errors explains every error code.
Webhooks tell you about changes as they happen, such as a task becoming overdue or a person joining a group, so you don't have to poll. An organisation admin can manage endpoints in Tayl under Settings > Public API > Webhook endpoints, or a key can with webhooks:manage.
Setting up an endpoint
- Run a public HTTPS receiver that can read the exact raw request body.
- Create the endpoint with
POST /api/v1/webhook-endpoints, subscribing only to the events you need. The key also needs each event's read scope, listed under Events below. - Store the
whsec_…signing secret from the response in your receiver's secret store. It's shown only once.
Removing an event from an endpoint also stops its pending and retrying deliveries: they're abandoned rather than sent, and retrying one returns 422 event_unsubscribed.
Deliveries
Each delivery is an HTTPS POST of a JSON envelope that never changes once created:
{
"id": "event-uuid",
"type": "completion.created",
"created_at": "2026-07-16T10:00:00Z",
"data": {}
}
It carries the headers X-Tayl-Event, X-Tayl-Event-Id, X-Tayl-Delivery, X-Tayl-Timestamp and X-Tayl-Signature. Delivery is at least once and in no particular order, so:
- Verify the signature, as below.
- Deduplicate on
X-Tayl-Event-Id, the envelope'sid, in the same transaction that applies the change. - Return any
2xxpromptly, once the event is safely stored. Redirects aren't followed.
- Retries: network failures, timeouts,
408,429and5xxresponses are retried after 1 minute, 5 minutes, 30 minutes and 2 hours, five attempts in all, or after a longerRetry-Afterof up to 12 hours. Any other status stops delivery. - Failing endpoints: after 50 failed deliveries in a row, the endpoint is deactivated and the organisation's admins are told. Reactivating it doesn't replay what was missed.
- Manual retries:
POST /api/v1/webhook-deliveries/{id}/retryresends a failed or abandoned delivery, replacing any automatic retries still to come. - Retention: sent and abandoned deliveries are kept for 90 days.
Verifying signatures
X-Tayl-Signature is t=<unix seconds>,v1=<hex>, where the hex is an HMAC-SHA256 of <timestamp>.<raw body> with the endpoint's secret. Verify it against the raw bytes before parsing, since re-serialised JSON won't match, compare in constant time, and reject timestamps outside your replay window. During a secret rotation the header has one v1 for each valid secret.
Ruby:
require "openssl"
def verify_tayl_webhook(body:, signature_header:, secrets:, now: Time.now.to_i)
parts = signature_header.to_s.split(",").filter_map { |part| part.strip.split("=", 2) if part.include?("=") }
timestamp = Integer(parts.find { |key, _| key == "t" }&.last, 10)
return false if (now - timestamp).abs > 300
signatures = parts.filter_map { |key, value| value if key == "v1" }
Array(secrets).any? do |secret|
expected = OpenSSL::HMAC.hexdigest("SHA256", secret, "#{timestamp}.#{body}")
signatures.any? do |signature|
signature.bytesize == expected.bytesize && OpenSSL.fixed_length_secure_compare(signature, expected)
end
end
rescue ArgumentError, TypeError
false
end
JavaScript (Node.js):
const crypto = require("node:crypto")
function verifyTaylWebhook({ body, signatureHeader, secrets, now = Math.floor(Date.now() / 1000) }) {
const parts = String(signatureHeader || "").split(",").map((part) => part.trim().split("=", 2))
const timestampPart = parts.find(([key]) => key === "t")
const timestamp = Number(timestampPart && timestampPart[1])
if (!Number.isSafeInteger(timestamp) || Math.abs(now - timestamp) > 300) return false
const signatures = parts.filter(([key, value]) => key === "v1" && /^[0-9a-f]{64}$/.test(value)).map(([, value]) => value)
return secrets.some((secret) => {
const expected = crypto.createHmac("sha256", secret).update(String(timestamp)).update(".").update(body).digest()
return signatures.some((signature) => crypto.timingSafeEqual(Buffer.from(signature, "hex"), expected))
})
}
Both take the raw body, the X-Tayl-Signature header and a list of secrets: the current one, plus the previous one while rotating. Both enforce a five-minute replay window.
Test a receiver with this fixed vector. The body is the exact compact UTF-8 bytes shown, without a trailing newline.
- Secret:
whsec_test_secret - Timestamp:
1773655200 - Body:
{"id":"019cf5b0-7c00-7000-8000-000000000001","type":"user.created","created_at":"2026-03-16T10:00:00Z","data":{"id":"019cf5b0-7c00-7000-8000-000000000002","external_id":"usr-1042","email":"alex.chen@example.com","name":"Alex Chen","first_name":"Alex","last_name":"Chen","state":"active","invited_at":"2026-03-10T09:00:00Z","accepted_at":"2026-03-10T09:15:00Z","created_at":"2026-03-10T09:00:00Z","updated_at":"2026-03-16T10:00:00Z"}} - Header:
t=1773655200,v1=aa2ab367c275e4cda97e2b3314733ba70472f6bc5e0273e64ee7dc1673c3ebac
Rotating the secret
Rotate with POST /api/v1/webhook-endpoints/{id}/rotate-secret, or from the endpoint in Tayl. The response shows the new secret once, and for the next 24 hours deliveries carry a v1 signature for both the new and the previous secret.
- Keep the current secret as the receiver's previous one, and add the new secret as current.
- Confirm deliveries verify against the new secret.
- Remove the previous secret once the 24 hours are up.
Accept a delivery when any v1 matches any secret you hold, and keep checking the timestamp throughout.
Operations
Webhook endpoints
Create and manage signed webhook subscriptions.
List webhook endpoints
GET https://tayl.pro/api/v1/webhook-endpoints · listWebhookEndpoints · Scope webhooks:manage
Lists active and deactivated webhook destinations without exposing current or previous signing secrets.
Parameters
page(query, integer, at least 1, default1): Page to fetch.per_page(query, integer, 1–100, default25): Records per page.status(query, one of"active","deactivated"): Return only records currently in this processing or lifecycle status.event(query, WebhookEventType): Return endpoints subscribed to this exact event type.sort(query, one of"created_at","updated_at", default"created_at"): Field used to order the result set.order(query, one of"asc","desc", default"desc"): Direction used to order the result set.
Responses
200(WebhookEndpointList): A page of webhook endpoints, newest first by default. Headers: Link.- Errors:
400,401,402,403,429.
Example response (200)
{
"webhook_endpoints": [
{
"id": "019cf5b0-7c00-7000-8000-000000000010",
"url": "https://integrations.example.com/tayl/webhooks",
"events": [
"user.created",
"task.completed"
],
"status": "active",
"created_by_user_id": "019cf5b0-7c00-7000-8000-000000000002",
"deactivated_at": null,
"consecutive_failures": 0,
"last_success_at": "2026-03-16T10:00:02Z",
"last_failure_at": null,
"last_failure_reason": null,
"created_at": "2026-03-01T09:00:00Z",
"updated_at": "2026-03-16T10:00:02Z"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total_pages": 1,
"total_count": 1
}
}
Create a webhook endpoint
POST https://tayl.pro/api/v1/webhook-endpoints · createWebhookEndpoint · Scope webhooks:manage
Creates an endpoint. The signing_secret is returned exactly once and cannot be retrieved later. Each event also needs its resource's read scope (for example users:read for user.* events).
Body (application/json): WebhookEndpointCreateInput.
Responses
201(WebhookEndpointWithSecret): The endpoint and its one-time signing secret. Headers: Cache-Control.- Errors:
400,401,402,403,422,429.
Example request
{
"url": "https://integrations.example.com/tayl/webhooks",
"events": [
"user.created",
"task.completed"
]
}
Get a webhook endpoint
GET https://tayl.pro/api/v1/webhook-endpoints/{id} · getWebhookEndpoint · Scope webhooks:manage
Returns endpoint configuration and delivery health without exposing signing secrets.
Parameters
id(path, uuid, required): The webhook endpoint UUID.
Responses
200(WebhookEndpoint): The webhook endpoint. Signing secrets are never included.- Errors:
400,401,402,403,404,429.
Example response (200)
{
"id": "019cf5b0-7c00-7000-8000-000000000010",
"url": "https://integrations.example.com/tayl/webhooks",
"events": [
"user.created",
"task.completed"
],
"status": "active",
"created_by_user_id": "019cf5b0-7c00-7000-8000-000000000002",
"deactivated_at": null,
"consecutive_failures": 0,
"last_success_at": "2026-03-16T10:00:02Z",
"last_failure_at": null,
"last_failure_reason": null,
"created_at": "2026-03-01T09:00:00Z",
"updated_at": "2026-03-16T10:00:02Z"
}
Update a webhook endpoint
PATCH https://tayl.pro/api/v1/webhook-endpoints/{id} · updateWebhookEndpoint · Scope webhooks:manage
Fields you leave out keep their values. Each event also needs its resource's read scope (for example users:read for user.* events). An update that keeps the existing events, such as a URL change, is checked against those events. Pending and retrying deliveries of a removed event are abandoned rather than sent.
Parameters
id(path, uuid, required): The webhook endpoint UUID.
Body (application/json): WebhookEndpointUpdateInput.
Responses
200(WebhookEndpoint): The updated endpoint.- Errors:
400,401,402,403,404,422,429.
Example request
{
"events": [
"user.created",
"user.updated",
"task.completed"
]
}
Deactivate a webhook endpoint
DELETE https://tayl.pro/api/v1/webhook-endpoints/{id} · deactivateWebhookEndpoint · Scope webhooks:manage
Stops new deliveries to the endpoint; calling this more than once is safe.
Parameters
id(path, uuid, required): The webhook endpoint UUID.
Responses
204: Endpoint deactivated.- Errors:
400,401,402,403,404,429.
Reactivate a webhook endpoint
POST https://tayl.pro/api/v1/webhook-endpoints/{id}/reactivate · reactivateWebhookEndpoint · Scope webhooks:manage
Resumes delivery and resets consecutive-failure health for a deactivated endpoint.
Parameters
id(path, uuid, required): The webhook endpoint UUID.
Responses
200(WebhookEndpoint): The reactivated endpoint with failure health reset.- Errors:
400,401,402,403,404,422,429.
Example response (200)
{
"id": "019cf5b0-7c00-7000-8000-000000000010",
"url": "https://integrations.example.com/tayl/webhooks",
"events": [
"user.created",
"task.completed"
],
"status": "active",
"created_by_user_id": "019cf5b0-7c00-7000-8000-000000000002",
"deactivated_at": null,
"consecutive_failures": 0,
"last_success_at": "2026-03-16T10:00:02Z",
"last_failure_at": null,
"last_failure_reason": null,
"created_at": "2026-03-01T09:00:00Z",
"updated_at": "2026-03-16T10:00:02Z"
}
Rotate a webhook endpoint signing secret
POST https://tayl.pro/api/v1/webhook-endpoints/{id}/rotate-secret · rotateWebhookEndpointSecret · Scope webhooks:manage
Returns the new signing_secret exactly once. The previous secret remains valid during the 24-hour dual-signature grace period.
Parameters
id(path, uuid, required): The webhook endpoint UUID.
Responses
200(WebhookEndpointWithSecret): The endpoint and its new one-time signing secret. Headers: Cache-Control.- Errors:
400,401,402,403,404,429.
Example response (200)
{
"id": "019cf5b0-7c00-7000-8000-000000000010",
"url": "https://integrations.example.com/tayl/webhooks",
"events": [
"user.created",
"task.completed"
],
"status": "active",
"created_by_user_id": "019cf5b0-7c00-7000-8000-000000000002",
"deactivated_at": null,
"consecutive_failures": 0,
"last_success_at": "2026-03-16T10:00:02Z",
"last_failure_at": null,
"last_failure_reason": null,
"created_at": "2026-03-01T09:00:00Z",
"updated_at": "2026-03-16T10:00:02Z",
"signing_secret": "whsec_lQ8fY2mN7cR4vP9xT6kD3sA1bE5gH0jU"
}
Webhook deliveries
Inspect and retry webhook deliveries.
List webhook deliveries
GET https://tayl.pro/api/v1/webhook-deliveries · listWebhookDeliveries · Scope webhooks:manage
Lists retained delivery records for diagnosing endpoint behavior and locating failed events. Only deliveries of events whose resource the key can read (for example users:read for user.*) are listed.
Parameters
page(query, integer, at least 1, default1): Page to fetch.per_page(query, integer, 1–100, default25): Records per page.endpoint_id(query, uuid): Return deliveries sent to this webhook endpoint UUID.event_type(query, WebhookEventType): Return deliveries carrying this exact event type.status(query, one of"pending","delivering","sent","failed","abandoned"): Return only records currently in this processing or lifecycle status.sort(query, one of"created_at","updated_at","last_attempted_at", default"created_at"): Field used to order the result set.order(query, one of"asc","desc", default"desc"): Direction used to order the result set.
Responses
200(WebhookDeliveryList): A page of deliveries, newest first by default. Headers: Link.- Errors:
400,401,402,403,429.
Example response (200)
{
"webhook_deliveries": [
{
"id": "019cf5b0-7c00-7000-8000-000000000012",
"webhook_endpoint_id": "019cf5b0-7c00-7000-8000-000000000010",
"event_type": "user.created",
"event_id": "019cf5b0-7c00-7000-8000-000000000011",
"payload": {
"id": "019cf5b0-7c00-7000-8000-000000000011",
"type": "user.created",
"created_at": "2026-03-16T10:00:00Z",
"data": {
"id": "019cf5b0-7c00-7000-8000-000000000002",
"external_id": "usr-1042",
"email": "alex.chen@example.com",
"name": "Alex Chen",
"first_name": "Alex",
"last_name": "Chen",
"state": "active",
"invited_at": "2026-03-10T09:00:00Z",
"accepted_at": "2026-03-10T09:15:00Z",
"created_at": "2026-03-10T09:00:00Z",
"updated_at": "2026-03-16T10:00:00Z"
}
},
"status": "sent",
"status_reason": null,
"attempts": 1,
"next_attempt_at": null,
"delivery_started_at": null,
"last_attempted_at": "2026-03-16T10:00:02Z",
"response_status": 204,
"response_body_excerpt": "",
"history": [
{
"at": "2026-03-16T10:00:02Z",
"manual": false,
"status": 204,
"error": null,
"duration_ms": 182
}
],
"created_at": "2026-03-16T10:00:00Z",
"updated_at": "2026-03-16T10:00:02Z"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total_pages": 1,
"total_count": 1
}
}
Get a webhook delivery
GET https://tayl.pro/api/v1/webhook-deliveries/{id} · getWebhookDelivery · Scope webhooks:manage
Returns one retained delivery with the immutable payload and up to 20 recent attempt diagnostics. A delivery of an event whose resource the key can't read (for example users:read for user.*) returns 404.
Parameters
id(path, uuid, required): The webhook delivery UUID.
Responses
200(WebhookDelivery): The delivery, including its immutable event envelope and bounded attempt history.- Errors:
400,401,402,403,404,429.
Example response (200)
{
"id": "019cf5b0-7c00-7000-8000-000000000012",
"webhook_endpoint_id": "019cf5b0-7c00-7000-8000-000000000010",
"event_type": "user.created",
"event_id": "019cf5b0-7c00-7000-8000-000000000011",
"payload": {
"id": "019cf5b0-7c00-7000-8000-000000000011",
"type": "user.created",
"created_at": "2026-03-16T10:00:00Z",
"data": {
"id": "019cf5b0-7c00-7000-8000-000000000002",
"external_id": "usr-1042",
"email": "alex.chen@example.com",
"name": "Alex Chen",
"first_name": "Alex",
"last_name": "Chen",
"state": "active",
"invited_at": "2026-03-10T09:00:00Z",
"accepted_at": "2026-03-10T09:15:00Z",
"created_at": "2026-03-10T09:00:00Z",
"updated_at": "2026-03-16T10:00:00Z"
}
},
"status": "sent",
"status_reason": null,
"attempts": 1,
"next_attempt_at": null,
"delivery_started_at": null,
"last_attempted_at": "2026-03-16T10:00:02Z",
"response_status": 204,
"response_body_excerpt": "",
"history": [
{
"at": "2026-03-16T10:00:02Z",
"manual": false,
"status": 204,
"error": null,
"duration_ms": 182
}
],
"created_at": "2026-03-16T10:00:00Z",
"updated_at": "2026-03-16T10:00:02Z"
}
Retry a webhook delivery
POST https://tayl.pro/api/v1/webhook-deliveries/{id}/retry · retryWebhookDelivery · Scope webhooks:manage
Atomically claims and enqueues a retained failed or abandoned delivery. The endpoint must still be active and subscribed to the delivery's event (event_unsubscribed otherwise). A delivery of an event whose resource the key can't read (for example users:read for user.*) returns 404.
Parameters
id(path, uuid, required): The webhook delivery UUID.
Responses
202(WebhookDelivery): The delivery was claimed and queued for a manual attempt.- Errors:
400,401,402,403,404,422,429.
Example response (202)
{
"id": "019cf5b0-7c00-7000-8000-000000000012",
"webhook_endpoint_id": "019cf5b0-7c00-7000-8000-000000000010",
"event_type": "user.created",
"event_id": "019cf5b0-7c00-7000-8000-000000000011",
"payload": {
"id": "019cf5b0-7c00-7000-8000-000000000011",
"type": "user.created",
"created_at": "2026-03-16T10:00:00Z",
"data": {
"id": "019cf5b0-7c00-7000-8000-000000000002",
"external_id": "usr-1042",
"email": "alex.chen@example.com",
"name": "Alex Chen",
"first_name": "Alex",
"last_name": "Chen",
"state": "active",
"invited_at": "2026-03-10T09:00:00Z",
"accepted_at": "2026-03-10T09:15:00Z",
"created_at": "2026-03-10T09:00:00Z",
"updated_at": "2026-03-16T10:00:00Z"
}
},
"status": "delivering",
"status_reason": "http_500",
"attempts": 1,
"next_attempt_at": null,
"delivery_started_at": "2026-03-16T10:05:00Z",
"last_attempted_at": "2026-03-16T10:00:02Z",
"response_status": 500,
"response_body_excerpt": "Internal Server Error",
"history": [
{
"at": "2026-03-16T10:00:02Z",
"manual": false,
"status": 500,
"error": null,
"duration_ms": 182
}
],
"created_at": "2026-03-16T10:00:00Z",
"updated_at": "2026-03-16T10:05:00Z"
}
Events
Each event is delivered and signed as described above.
| Event | Payload | Read scope |
|---|---|---|
user.created |
WebhookPayloadUserCreated | users:read |
user.updated |
WebhookPayloadUserUpdated | users:read |
user.archived |
WebhookPayloadUserArchived | users:read |
user.restored |
WebhookPayloadUserRestored | users:read |
group.created |
WebhookPayloadGroupCreated | groups:read |
group.updated |
WebhookPayloadGroupUpdated | groups:read |
group.archived |
WebhookPayloadGroupArchived | groups:read |
group.member_added |
WebhookPayloadGroupMemberAdded | groups:read |
group.member_removed |
WebhookPayloadGroupMemberRemoved | groups:read |
assignment.created |
WebhookPayloadAssignmentCreated | assignments:read |
assignment.updated |
WebhookPayloadAssignmentUpdated | assignments:read |
assignment.archived |
WebhookPayloadAssignmentArchived | assignments:read |
task.started |
WebhookPayloadTaskStarted | tasks:read |
task.completed |
WebhookPayloadTaskCompleted | tasks:read |
task.overdue |
WebhookPayloadTaskOverdue | tasks:read |
completion.created |
WebhookPayloadCompletionCreated | completions:read |
certificate.issued |
WebhookPayloadCertificateIssued | certificates:read |
signable.signed |
WebhookPayloadSignableSigned | completions:read |
Schemas
WebhookEventType
Event type available for webhook subscription and delivery filtering. One of "user.created", "user.updated", "user.archived", "user.restored", "group.created", "group.updated", "group.archived", "group.member_added", "group.member_removed", "assignment.created", "assignment.updated", "assignment.archived", "task.started", "task.completed", "task.overdue", "completion.created", "certificate.issued", "signable.signed".
WebhookEndpointList
One page of configured webhook destinations.
webhook_endpoints(array of WebhookEndpoint, required): Webhook endpoints on this page.meta(Meta, required): Metadata describing this page or bulk operation.
WebhookEndpoint
An HTTPS destination and the event types Tayl sends to it.
id(uuid, required): Stable UUID for this resource.url(uri, matching^https://, required): Public HTTPS URL that receives webhook POST requests.events(array of WebhookEventType, at least 1 item, unique, required): Event types delivered to this endpoint.status(one of"active","deactivated", required): Current processing or lifecycle status.created_by_user_id(uuid or null, required): UUID of the administrator who created the endpoint; null if no longer available.deactivated_at(date-time or null, required): When delivery was disabled; null while active.consecutive_failures(integer, at least 0, required): Consecutive countable failures since the last successful delivery.last_success_at(date-time or null, required): Time of the latest successful delivery; null before the first success.last_failure_at(date-time or null, required): Time of the latest countable failure; null before the first failure.last_failure_reason(string or null, required): Machine-readable reason for the latest failure; null when none is recorded.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
Meta
Pagination details on every list. Page links also come in the RFC 8288 Link header, as first, prev, next and last.
page(integer, required): Current page (1-based).per_page(integer, required): Records per page (default 25, max 100).total_pages(integer, required): Number of pages available for the current filters.total_count(integer, required): Total records matching the current filters.
WebhookEndpointCreateInput
HTTPS destination and subscriptions for a new webhook endpoint. Unknown fields are refused.
url(uri, at most 2048 characters, matching^https://, required): Public HTTPS URL that receives webhook POST requests.events(array of WebhookEventType, at least 1 item, unique, required): Event types delivered to this endpoint.
WebhookEndpointWithSecret
Webhook endpoint plus the one-time signing secret returned after creation or rotation. WebhookEndpoint, with the fields below.
signing_secret(string, matching^whsec_, required): Shown once. Store it securely.
WebhookEndpointUpdateInput
A new URL, new events or both for an existing endpoint. Unknown fields are refused. Send at least 1 of these fields.
url(uri, at most 2048 characters, matching^https://): Public HTTPS URL that receives webhook POST requests.events(array of WebhookEventType, at least 1 item, unique): Event types delivered to this endpoint.
WebhookDeliveryList
One page of retained webhook deliveries.
webhook_deliveries(array of WebhookDelivery, required): Webhook deliveries on this page.meta(Meta, required): Metadata describing this page or bulk operation.
WebhookDelivery
Retained delivery state, immutable event payload, and bounded attempt diagnostics.
id(uuid, required): Stable UUID for this resource.webhook_endpoint_id(uuid, required): UUID of the endpoint this delivery targeted.event_type(WebhookEventType, required): Event type carried by the immutable payload.event_id(uuid, required): UUID shared by this delivery and all deliveries of the same event.payload(WebhookEnvelope, required): Immutable JSON body sent to the endpoint.status(one of"pending","delivering","sent","failed","abandoned", required): Current processing or lifecycle status.status_reason(string or null, required): Machine-readable explanation for a failed or abandoned delivery.attempts(integer, at least 0, required): Number of HTTP attempts made for this delivery.next_attempt_at(date-time or null, required): Scheduled automatic retry time; null when no retry is pending.delivery_started_at(date-time or null, required): When the current worker claimed the delivery; null when not in flight.last_attempted_at(date-time or null, required): Time of the most recent HTTP attempt; null before delivery begins.response_status(integer or null, 100–599, required): Last endpoint HTTP status; null when no valid response was received.response_body_excerpt(string or null, required): At most 4 KiB. The exact response body is not retained or exposed.history(array of WebhookDeliveryHistoryEntry, at most 20 items, required): Up to 20 most recent delivery attempts, oldest first.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
WebhookEnvelope
Immutable event envelope delivered as the raw webhook request body. Unknown fields are refused.
id(uuid, required): Stable UUID for this resource.type(WebhookEventType, required): Resource or event type discriminator.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.data(object, required): Resource snapshot captured when the event was emitted.
WebhookDeliveryHistoryEntry
Bounded diagnostic record for one HTTP delivery attempt.
at(date-time, required): When this delivery attempt finished.manual(boolean, required): Whether an administrator requested this attempt.status(integer or null, 100–599, required): Current processing or lifecycle status.error(string or null, required): Transport failure reason; null when an HTTP response was received.duration_ms(integer, at least 0, required): Elapsed delivery time in milliseconds.
WebhookPayloadUserCreated
Signed webhook envelope emitted when user created. WebhookEnvelope, with the fields below.
type("user.created", required): Resource or event type discriminator.data(User, required): Resource snapshot captured when the event was emitted.
WebhookPayloadUserUpdated
Signed webhook envelope emitted when user updated. WebhookEnvelope, with the fields below.
type("user.updated", required): Resource or event type discriminator.data(User, required): Resource snapshot captured when the event was emitted.
WebhookPayloadUserArchived
Signed webhook envelope emitted when user archived. WebhookEnvelope, with the fields below.
type("user.archived", required): Resource or event type discriminator.data(User, required): Resource snapshot captured when the event was emitted.
WebhookPayloadUserRestored
Signed webhook envelope emitted when user restored. WebhookEnvelope, with the fields below.
type("user.restored", required): Resource or event type discriminator.data(User, required): Resource snapshot captured when the event was emitted.
WebhookPayloadGroupCreated
Signed webhook envelope emitted when group created. WebhookEnvelope, with the fields below.
type("group.created", required): Resource or event type discriminator.data(Group, required): Resource snapshot captured when the event was emitted.
WebhookPayloadGroupUpdated
Signed webhook envelope emitted when group updated. WebhookEnvelope, with the fields below.
type("group.updated", required): Resource or event type discriminator.data(Group, required): Resource snapshot captured when the event was emitted.
WebhookPayloadGroupArchived
Signed webhook envelope emitted when group archived. WebhookEnvelope, with the fields below.
type("group.archived", required): Resource or event type discriminator.data(Group, required): Resource snapshot captured when the event was emitted.
WebhookPayloadGroupMemberAdded
Signed webhook envelope emitted when group member added. WebhookEnvelope, with the fields below.
type("group.member_added", required): Resource or event type discriminator.data(WebhookMembershipData, required): Resource snapshot captured when the event was emitted.
WebhookPayloadGroupMemberRemoved
Signed webhook envelope emitted when group member removed. WebhookEnvelope, with the fields below.
type("group.member_removed", required): Resource or event type discriminator.data(WebhookMembershipData, required): Resource snapshot captured when the event was emitted.
WebhookPayloadAssignmentCreated
Signed webhook envelope emitted when assignment created. WebhookEnvelope, with the fields below.
type("assignment.created", required): Resource or event type discriminator.data(Assignment, required): Resource snapshot captured when the event was emitted.
WebhookPayloadAssignmentUpdated
Signed webhook envelope emitted when assignment updated. WebhookEnvelope, with the fields below.
type("assignment.updated", required): Resource or event type discriminator.data(Assignment, required): Resource snapshot captured when the event was emitted.
WebhookPayloadAssignmentArchived
Signed webhook envelope emitted when assignment archived. WebhookEnvelope, with the fields below.
type("assignment.archived", required): Resource or event type discriminator.data(Assignment, required): Resource snapshot captured when the event was emitted.
WebhookPayloadTaskStarted
Signed webhook envelope emitted when task started. WebhookEnvelope, with the fields below.
type("task.started", required): Resource or event type discriminator.data(Task, required): Resource snapshot captured when the event was emitted.
WebhookPayloadTaskCompleted
Signed webhook envelope emitted when task completed. WebhookEnvelope, with the fields below.
type("task.completed", required): Resource or event type discriminator.data(Task, required): Resource snapshot captured when the event was emitted.
WebhookPayloadTaskOverdue
Signed webhook envelope emitted when task overdue. WebhookEnvelope, with the fields below.
type("task.overdue", required): Resource or event type discriminator.data(Task, required): Resource snapshot captured when the event was emitted.
WebhookPayloadCompletionCreated
Signed webhook envelope emitted when completion created. WebhookEnvelope, with the fields below.
type("completion.created", required): Resource or event type discriminator.data(Completion, required): Resource snapshot captured when the event was emitted.
WebhookPayloadCertificateIssued
Signed webhook envelope emitted when certificate issued. WebhookEnvelope, with the fields below.
type("certificate.issued", required): Resource or event type discriminator.data(Certificate, required): Resource snapshot captured when the event was emitted.
WebhookPayloadSignableSigned
Signed webhook envelope emitted when signable signed. WebhookEnvelope, with the fields below.
type("signable.signed", required): Resource or event type discriminator.data(WebhookSignableSignedData, required): Resource snapshot captured when the event was emitted.
User
A member of the organisation (an OrganisationUser). state tracks the membership lifecycle; archived users are retained with their learning history.
id(uuid, required): Tayl UUID.external_id(NullableExternalId, required): Caller-owned identifier used to reconcile this record with the source system.email(email, required): The organisation contact email, normalised to lowercase.name(string, required): Display name: the linked account's name, the invited name, or the email.first_name(string or null, required): From the linked user account; null until the invitation is accepted.last_name(string or null, required): From the linked user account; null until the invitation is accepted.state(one of"pending","invited","onboarding","active","non_compliant","paused","suspended","archived", required): Current lifecycle state of the resource.invited_at(date-time or null, required): When Tayl most recently sent the invitation; null when no invitation was sent.accepted_at(date-time or null, required): When the person accepted their invitation; null until acceptance.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
Group
A group of people. Automatic groups (automatic: true) are maintained by Tayl and read-only through the API. Rule-based groups (a non-empty rule_user_group_ids, category_made: true) are made only by Tayl, as a group category's subgroups: each holds everyone in both of the groups its rule names, and is read-only here apart from its memberships. People added to one directly (source direct) are in those groups through it.
id(uuid, required): Tayl UUID.external_id(NullableExternalId, required): Caller-owned identifier used to reconcile this record with the source system.name(string, required): Human-readable name shown in Tayl.description(string or null, required): Optional explanatory text. Automatic groups describe the organisation's current criteria; changing those criteria advances updated_at and emits group.updated for the current group.category_id(uuid or null, required): Group category UUID (see /group-categories).automatic(boolean, required): Whether Tayl maintains it automatically, so it can't be changed by hand or through the API.rule_user_group_ids(array of uuid, required): For a rule-based group, the two groups its members are all in: the group it is a subgroup of, then the other. Empty for a manual or automatic group. Only Tayl makes rule-based groups, so a create or update ignores this field.category_made(boolean, required): Whether Tayl made this rule-based group as a group category's subgroup, such as Bristol · Bar Staff when Location makes subgroups by Job Role. Tayl names it and keeps it up to date, so it can't be changed or deleted through the API, though people can be added to it directly.members_count(integer, required): Active member count.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
WebhookMembershipData
Group and user snapshot captured for a membership change event. Unknown fields are refused.
group_id(uuid, required): UUID of the group.group_external_id(NullableExternalId, required): Caller-owned identifier of the group, when set.user_id(uuid, required): UUID of the learner or organisation user.user_external_id(NullableExternalId, required): Caller-owned identifier of the learner, when set.email(email, required): The organisation contact email, normalised to lowercase.name(string, required): Human-readable name shown in Tayl.source(one of"direct","inclusion","automatic","integration","rule", required): How the membership was created and whether callers can remove it.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.
Assignment
Content assigned to people and groups. The assignment's own settings are top-level fields; the settings learners get, wherever they come from, are under effective_settings.
id(uuid, required): Tayl UUID.external_id(string or null): Caller-owned identifier, unique within the organisation.state(one of"scheduled","published","archived","frozen", required): Current lifecycle state of the resource.assignable_type(one of"course","pathway","signable_document", required): Kind of content represented byassignable_id.assignable_id(uuid, required): The assigned content's UUID.assignable_version_id(uuid or null, required): The minimum content version learners receive.title(string or null, required): The assignment's display title:title_overridewhen set, otherwise the content's title.targets(array of AssignmentTarget, required): The people and groups the assignment is for.due_in_days(integer or null): Days from task creation until due. 0 means explicitly no due date; null inherits.due_on(date or null): Fixed due date. Can't be set withdue_in_days.issues_certificates(boolean or null): A certificate setting kept from older course assignments. Read-only; null follows the content library.requires_recompletion(boolean, required): Whether learners who already completed a course or document must complete it again. Completed pathways are not reopened. When true on a pathway assignment, carried-over or imported course evidence must be dated after the assignment date.require_sequential_progress(boolean, required): Whether learners must view a course's pages in order. When true, later pages, quizzes, signing chapters and SCORM chapters stay locked until every page before them is viewed, and completion needs every page viewed. On a pathway assignment it applies to the pathway's courses; documents ignore it.include_future_members(boolean or null): Whether users who later join a targeted group are assigned too.send_notification(boolean or null): Whether Tayl notifies learners about newly created tasks.title_override(string or null): Assignment-specific title; null uses the content title.effective_settings(object, required): The settings learners get. They come from the content library, the organisation group's locks or the course's own requirements; due dates may be the assignment's own.effective_settings.due_in_days(integer or null, required): Relative number of days until a new task is due; null means inherited.effective_settings.valid_for_months(integer or null, required): Months a completion stays valid, as the content library sets; null means it doesn't expire, as for pathways.effective_settings.available_to_recertify_within_days(integer or null, required): Days before expiry when recertification opens, as the content library sets; null means no window is set, as for pathways.effective_settings.issues_certificates(boolean, required): Whether qualifying course completions issue certificates.effective_settings.minimum_minutes_required(integer or null, at least 0, required): Minimum learner engagement time required before completing the course.effective_settings.sources(object, unknown fields refused, required): Ownership metadata for each effective training setting, or null where a setting doesn't apply: certificates and minimum engagement apply only to courses, and validity and the recertification window only to courses and documents.effective_settings.sources.due_in_days(AssignmentSettingSource, required): Ownership metadata for the effective relative deadline.effective_settings.sources.valid_for_months(AssignmentSettingSource or null, required): Ownership metadata for how long completions remain valid, or null when validity does not apply.effective_settings.sources.available_to_recertify_within_days(AssignmentSettingSource or null, required): Ownership metadata for the recertification window, or null when validity does not apply.effective_settings.sources.issues_certificates(AssignmentSettingSource or null, required): Ownership metadata for certificate issuance, or null when certificates do not apply.effective_settings.sources.minimum_minutes_required(AssignmentSettingSource or null, required): Ownership metadata for minimum engagement, or null when minimum engagement does not apply.published_at(date-time or null): When this version or assignment was published.scheduled_publish_at(date-time or null): Scheduled publication time; null when publication is not scheduled.archived_at(date-time or null): When the record was archived; null while current.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
Task
Training assigned to a learner. A task points at a version of its content: assignable_id is the course, pathway or document, and assignable_version_id its version. A course task's version can still change until the learner starts it; other tasks keep the version they were assigned.
id(uuid, required): Tayl UUID.state(one of"pending","in_progress","completed","cancelled","locked", required): Current lifecycle state of the resource.status(one of"not_started","in_progress","overdue","completed",null, required): Where the task stands for reporting, as the report summaries count it:overdueis unfinished work pastdue_onunless the deadline is paused. Null for a cancelled task, and for a locked one unless the organisation counts locked tasks (basis.locked_tasks_countedon a summary). It changes with the date, withoutupdated_atmoving.user_id(uuid, required): The learner's Tayl user UUID.user_external_id(string or null): The learner'sexternal_id, when set.assignable_type(one of"course","pathway","signable_document","resource", required): Kind of content represented byassignable_id.assignable_id(uuid, required): The parent content record's UUID.assignable_version_id(uuid, required): UUID of the content version. For a course task the learner hasn't started, it becomes the latest published version when they start, then stays fixed.title(string, required): Title shown to managers and learners.due_on(date or null): Fixed task due date; null means no fixed date.due_on_paused_at(date-time or null): When a manager paused the deadline; null while it runs. A task with a paused deadline isn't overdue.started_at(date-time or null): When the learner first started this task; null until started.completed_at(date-time or null): When the learner completed the work; null until completion.progress(object or null, required): Latest progress summary, or null before progress is recorded.progress.percent_complete(integer or null, required): Whole-number completion percentage, or null when the content cannot calculate one.progress.time_spent_seconds(integer, required): Cumulative active learning time in seconds.progress.last_interacted_at(date-time or null): Most recent learner interaction time; null before interaction.latest_completion(object or null, required): Most recent completion for this task, or null before completion.latest_completion.id(uuid, required): Completion UUID, for/completions/{id}and/certificates/{id}.latest_completion.completed_at(date-time or null): When the learner completed the work; null until completion.latest_completion.valid_until(date or null): Date through which the completion or certificate is valid; null when it never expires.latest_completion.certificate_reference(string or null): Printable certificate reference, or null when no certificate was issued.current_completion(object or null, required): Completion that currently satisfies this task, or null when the task is incomplete.current_completion.id(uuid, required): Completion UUID, for/completions/{id}and/certificates/{id}.current_completion.completed_at(date-time or null): When the learner completed the work; null until completion.current_completion.valid_until(date or null): Date through which the completion or certificate is valid; null when it never expires.current_completion.certificate_reference(string or null): Printable certificate reference, or null when no certificate was issued.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
Completion
A learner's completion of a piece of content. valid_until is null for completions that never expire; certificate_reference is non-null when a certificate was issued.
id(uuid, required): Tayl UUID, which is also the certificate's ID when one was issued.task_id(uuid, required): UUID of the learner task that produced this record.user_id(uuid, required): The learner's Tayl user UUID.user_external_id(string or null): The learner'sexternal_id, when set.assignable_type(one of"course","pathway","signable_document","resource", required): Kind of content represented byassignable_id.assignable_id(uuid, required): The parent content record's UUID.assignable_version_id(uuid, required): The exact content version that was completed.title(string, required): Title shown to managers and learners.learner_name(string or null): The learner's name as captured at completion time.completed_at(date-time or null, required): When the learner completed the work; null until completion.valid_until(date or null): Null when the completion never expires.time_spent_seconds(integer, required): Cumulative active learning time in seconds.certificate_reference(string or null): Set when a certificate was issued; download it with/certificates/{id}/download.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
Certificate
Metadata for an issued certificate. A certificate is a course completion with a PDF, not a record of its own, so its id is the completion's UUID.
id(uuid, required): The completion UUID.certificate_reference(string, required): Human-checkable reference printed on the certificate (CERT-YYYYMMDD-XXXX).issued_at(date-time or null, required): When the completion was recorded.valid_until(date or null): Null when the certification never expires.learner_name(string, required): The learner's name as printed on the certificate.user_id(uuid, required): UUID of the learner or organisation user.user_external_id(string or null): Caller-owned identifier of the learner, when set.task_id(uuid, required): UUID of the learner task that produced this record.course_id(uuid, required): UUID of the completed course.course_title(string, required): Course title printed on the certificate.
WebhookSignableSignedData
Signature snapshot captured when a learner signs a document or signable course chapter. Unknown fields are refused.
id(uuid, required): Stable UUID for this resource.task_id(uuid, required): UUID of the learner task that produced this record.user_id(uuid, required): UUID of the learner or organisation user.user_external_id(NullableExternalId, required): Caller-owned identifier of the learner, when set.assignable_type(one of"course","signable_document", required): Kind of content represented byassignable_id.assignable_id(uuid, required): UUID of the parent course, pathway, document, or resource.assignable_version_id(uuid, required): UUID of the exact content version delivered to the learner.signable_chapter_id(uuid or null, required): UUID of the signed chapter for an in-course signature; null for a standalone document.title(string or null, required): Title shown to managers and learners.signed_at(date-time, required): When the learner signed the document.time_spent_reading_seconds(integer, at least 0, required): Active reading time recorded before signature, in seconds.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.updated_at(date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.
NullableExternalId
Caller-owned identifier, unique within the organisation. Matched case-sensitively; surrounding whitespace is stripped. String or null, at most 255 characters.
AssignmentTarget
A person or group the assignment is for.
type(one of"user","group", required): Resource or event type discriminator.id(uuid, required): The user's or group's Tayl UUID.external_id(string or null): The person's or group'sexternal_id, when set.
AssignmentSettingSource
Ownership and write-protection metadata for one effective training setting. Unknown fields are refused.
source(one of"assignment","content_library","organisation_group","course_requirement", required): The authoritative owner of the effective value.required(boolean, required): Whether an explicit Course requirement fixes the value.locked(boolean, required): Whether the organisation is prevented from changing the value.