Clio API AtlasHomeManage APIGrow APIAccounting APIPlatform APIPayments deep-dive
API reference

Platform API

Webhook subscriptions for Clio Platform apps.

11 endpoints · 1 resource groups · spec: docs.developers.clio.com

About this API

Servers and getting started

Server addresses

US region Production Server
https://api.clio.com/platform
Europe region Production Server
https://eu.api.clio.com/platform
Australia region Production Server
https://au.api.clio.com/platform
Canada region Production Server
https://ca.api.clio.com/platform
Read the full getting-started text from Clio

Public REST API for Clio's platform-level (API Hub) services.

These are global, product-independent endpoints — currently the multi-product webhooks platform. Authenticate with an OAuth 2.0 bearer token (Authorization: Bearer <jwt>) issued through the Clio API Hub. Pass the OpenAPI version with X-API-Version: YYYY-MM-DD to pin a specific contract, or unstable to opt in to the latest spec.

Platform-level operations require a valid token and no scope of their own. Resource scopes (e.g. grow_lead_inbox_read) gate which event types a subscription may include, and are not declared below — they belong to the products that own those events.

Successful responses use { "data": ... } envelopes (with { "meta": { "paging": ... } } on paginated collections; meta is omitted when there is only one page). Errors use { "error": "<code>" }, sometimes with an additional details list of strings carrying context for that code.

Common parameters

Parameters most endpoints accept

Listed once here, not repeated on every endpoint.

Name
Type
Details
X-API-Version
header string

Pins the request to a specific OpenAPI contract. Pass a date in YYYY-MM-DD
format to select that version, or unstable to opt in to the latest spec.
Omit to use the default (latest stable) contract. An unrecognised value falls
back to the default rather than being rejected.

id
path integer · int64

Unique identifier of the webhook subscription

Shared API rules

Rules that apply to every call

These are not endpoint details. They cover how every request to this API behaves.

Endpoints

Webhook Subscriptions11 endpoints

Operations for managing webhook subscriptions on the authenticated entity, and for reading the deliveries recorded against them

GET/webhook_subscriptionsList webhook subscriptions

Returns a cursor-paginated list of the calling application's webhook subscriptions for the authorized entity. signing_secret is never included. meta is omitted entirely when there is neither a next nor a previous page.

Parameters

Name
Type
Details
page_token
query string

Opaque token for cursor-based pagination. Follow the links in meta.paging rather than constructing one; a malformed or tampered token is a 400 invalid_argument_page_token.

Also accepts the common parameters: X-API-Version

Returns

List of WebhookSubscription (status 200; field list at the bottom of this page)

Responses

200 Ok400 Bad Request. `invalid_argument_page_token` when `page_token` is malformed or has been tampered with.401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.
POST/webhook_subscriptionsCreate a webhook subscription

Creates a webhook subscription for the authorized entity. The subscription starts as pending and must be activated before events are delivered. Every requested event type must be one the token already holds the resource scope for. The response is one of only two places signing_secret is returned.

Also accepts the common parameters: X-API-Version

Request body

Name
Type
Details
url
string · uri

Required. The HTTPS endpoint events are delivered to. Must not resolve to a loopback, private, or link-local address.

event_types
array of string

Required, and must be non-empty. The events to subscribe to, each formatted as <product>.<resource_type>.<event_type>.

schema_version
string

The event payload schema version to pin to, as a YYYY-MM-DD date. Defaults to the latest published payload version. If sent, it must be a published payload version, or the request is rejected.

Returns

WebhookSubscriptionWithSecret (status 201; field list at the bottom of this page)

Responses

201 Created401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.403 Forbidden. `insufficient_scope` with `details` holding one message per requested event type the token cannot subscribe to, naming the resource scopes that would grant it, e.g. `grow.inbox_lead.accepted requires one of: grow_lead_inbox_read, grow_lead_inbox_all_read`.422 Unprocessable Entity. `unknown_event_types` with `details` listing the unrecognised event types, or `validation_failed` with `details` listing the validation messages (for example an insecure `url`, an empty `event_types`, or a `schema_version` that is not a published payload version).
GET/webhook_subscriptions/{id}Get a webhook subscription by ID

Returns a single webhook subscription belonging to the calling application and the authorized entity. signing_secret is never included. A subscription owned by another application or entity returns 404, not 403.

Also accepts the common parameters: X-API-Version, id

Returns

WebhookSubscription (status 200; field list at the bottom of this page)

Responses

200 Ok401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.
PATCH/webhook_subscriptions/{id}Update a webhook subscription

Updates a webhook subscription. event_types replaces the full set rather than appending to it; supplying an empty array disables an active subscription. Changing url returns the subscription to pending from any state, so it must be re-activated. status is not writable: a request body carrying it is rejected with a 422 validation_failed, since state moves through activate, enable and disable. signing_secret is preserved and is not returned.

Also accepts the common parameters: X-API-Version, id

Request body

Name
Type
Details
url
string · uri

The HTTPS endpoint events are delivered to. Must not resolve to a loopback, private, or link-local address.

event_types
array of string

The complete set of events to subscribe to, each formatted as <product>.<resource_type>.<event_type>. Replaces the existing set. An empty array disables an active subscription.

schema_version
string

The event payload schema version to pin to, as a YYYY-MM-DD date. Must be a published payload version, or the request is rejected with a 422 validation_failed.

Returns

WebhookSubscription (status 200; field list at the bottom of this page)

Responses

200 Ok401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.403 Forbidden. `insufficient_scope` with `details` holding one message per newly requested event type the token cannot subscribe to, naming the resource scopes that would grant it.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.422 Unprocessable Entity. `validation_failed` with `details` — `"unknown or malformed event_types"`, `"status is not writable; use the activate, enable, or disable endpoint"`, or the model's validation messages, such as `"Schema version must be a published payload version: 2026-01-01"`.
DELETE/webhook_subscriptions/{id}Delete a webhook subscription

Permanently deletes the webhook subscription and stops all delivery to it. This action cannot be undone. To stop delivery reversibly, use POST /webhook_subscriptions/{id}/disable.

Also accepts the common parameters: X-API-Version, id

Responses

204 The webhook subscription was deleted. No content is returned.401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.
POST/webhook_subscriptions/{id}/activateActivate a webhook subscription

Activates a pending or suspended subscription. Clio issues a challenge request to the subscription's URL, signed with its signing_secret; the endpoint must echo the challenge back correctly. On success the subscription moves to active. An already-active subscription is returned unchanged without a challenge. A subscription with no event_types is rejected, and a disabled one is rejected pointing at POST /webhook_subscriptions/{id}/enable. Neither issues a challenge. signing_secret is not returned.

Also accepts the common parameters: X-API-Version, id

Returns

WebhookSubscription (status 200; field list at the bottom of this page)

Responses

200 Ok401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.409 Conflict. The subscription was changed by another request while this one was in progress. Re-read it and retry.422 Unprocessable Entity. `challenge_failed` when the endpoint did not echo the challenge correctly. `invalid_transition` when the subscription is `disabled`, or when its `url` changed while the challenge was in flight, since the challenge proved an endpoint the subscription no longer points at. `validation_failed` when it has no `event_types`. The subscription's status is left unchanged.
POST/webhook_subscriptions/{id}/disableDisable a webhook subscription

Stops delivery to an active subscription, reversibly, and moves it to disabled. Recover with POST /webhook_subscriptions/{id}/enable, which needs no challenge. An already-disabled subscription is returned unchanged. A pending or suspended subscription is rejected with a 422: neither is delivering, so there is nothing to disable.

Also accepts the common parameters: X-API-Version, id

Returns

WebhookSubscription (status 200; field list at the bottom of this page)

Responses

200 Ok401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.409 Conflict. The subscription was changed by another request while this one was in progress. Re-read it and retry.422 Unprocessable Entity. `invalid_transition` when the subscription is `pending` or `suspended`, neither of which is delivering.
POST/webhook_subscriptions/{id}/enableEnable a webhook subscription

Resumes delivery for a disabled subscription, moving it to active with no challenge, because disabled is only reachable from a subscription that already answered one. An already-active subscription is returned unchanged. A pending or suspended subscription is rejected with a 422 pointing at POST /webhook_subscriptions/{id}/activate. A subscription with no event_types is rejected, so restore an event type first.

Also accepts the common parameters: X-API-Version, id

Returns

WebhookSubscription (status 200; field list at the bottom of this page)

Responses

200 Ok401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.409 Conflict. The subscription was changed by another request while this one was in progress. Re-read it and retry.422 Unprocessable Entity. `invalid_transition` when the subscription is `pending` or `suspended`, which activate handles. `validation_failed` when it has no `event_types`.
POST/webhook_subscriptions/{id}/regenerate_secretRegenerate a webhook subscription's signing secret

Replaces the subscription's signing secret with a new one and returns it. The previous secret stops working immediately, and the subscription's status is unchanged. This is one of only two places signing_secret is returned — it is never readable afterwards, so store it on receipt.

Also accepts the common parameters: X-API-Version, id

Returns

WebhookSubscriptionWithSecret (status 200; field list at the bottom of this page)

Responses

200 Ok401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.
GET/webhook_subscriptions/{webhook_subscription_id}/deliveriesList a webhook subscription's deliveries

Returns a cursor-paginated list of this subscription's deliveries — what Clio recorded for it, and how delivery of each one went. Only delivery metadata is returned — never payload data, which is why this operation needs no resource scope. Results are ordered by event_id rather than occurred_at, and are retained for 7 days after Clio records them. meta is omitted entirely when there is neither a next nor a previous page. A subscription owned by another application or authorized entity returns 404, not 403.

Parameters

Name
Type
Details
webhook_subscription_id required
path integer · int64

Unique identifier of the webhook subscription whose deliveries are listed

page_token
query string

Opaque token for cursor-based pagination. Follow the links in meta.paging rather than constructing one; a malformed or tampered token is a 400 invalid_argument_page_token.

event_type
query string

Return only deliveries whose event is of this type, formatted as <product>.<resource_type>.<event_type>. Any other shape is a 400 invalid_argument_event_type; a well-formed type that matches nothing is an empty list rather than an error.

after
query string

Return only deliveries whose event_id is greater than this one. That always means newer than the anchor, whichever order is requested, and the anchor itself is never returned. To resume after an outage, walk with order=asc and anchor on the newest event_id you have processed; under the default order=desc this bounds how far back the page reaches rather than acting as a resume point. Must be a ULID; anything else is a 400 invalid_argument_after.

occurred_after
query string

Inclusive lower bound on occurred_at. Must be a full ISO-8601 timestamp — a bare date, or anything that cannot be parsed, is a 400 invalid_argument_occurred_after rather than being widened to midnight.

occurred_before
query string

Inclusive upper bound on occurred_at. Must be a full ISO-8601 timestamp — a bare date, or anything that cannot be parsed, is a 400 invalid_argument_occurred_before rather than being widened to midnight.

limit
query string

Maximum number of deliveries to return per page. Values above 100 are capped at 100 rather than rejected. A value that is not a positive integer is a 400 invalid_argument_limit. Defaults to 100.

status
query string

Return only deliveries in this state: pending, succeeded or failed. Any other value is a 400 invalid_argument_status.

order
query string

The direction to walk event_id in. Only asc and desc are accepted; anything else is a 400 invalid_argument_order. Defaults to desc, newest first.

Also accepts the common parameters: X-API-Version

Returns

List of WebhookDelivery (status 200; field list at the bottom of this page)

Responses

200 Ok400 Bad Request. `invalid_argument_<parameter>`, naming the query parameter that was rejected; each parameter's own description states what it accepts and the code it raises. Parameters are validated only once the subscription resolves, so an unknown subscription is a 404 even when the request also carries a bad filter.401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.
GET/webhook_subscriptions/{webhook_subscription_id}/deliveries/{id}Get one of a webhook subscription's deliveries

Returns a single delivery, including every attempt Clio made to deliver it. Only delivery metadata is returned, never payload data.

Parameters

Name
Type
Details
webhook_subscription_id required
path integer · int64

Unique identifier of the webhook subscription whose deliveries are listed

Also accepts the common parameters: X-API-Version, id

Returns

WebhookDelivery (status 200; field list at the bottom of this page)

Responses

200 Ok401 Unauthorized. `unauthorized` when the bearer token is missing, malformed, expired, or issued by another issuer.404 Not Found. `not_found` when no such subscription is visible to the caller. A subscription belonging to another application or authorized entity returns 404 rather than 403.
Response fields

Record types returned

Every record these endpoints send back, with its fields. Open one to see them.

WebhookDelivery
Name
Type
Details
id
string

Unique identifier for this delivery, as a 24-character hexadecimal string. One per subscriber per event and stable across retries, so it is the value to deduplicate on if you receive the same delivery twice.

event_id
string

The identifier of the event this delivery is for, as a ULID. Shared by every subscriber's delivery of that event and carried on the delivered payload, so it is what correlates an entry here with a webhook you received.

event_type
string

The type of the event this delivery is for, formatted as <product>.<resource_type>.<event_type>.

schema_version
string

The payload version this delivery was sent in. Always the subscription's schema_version when this delivery was recorded.

occurred_at
string · date-time

The time the underlying change occurred, to millisecond precision (ISO-8601 timestamp). This is what occurred_after and occurred_before bound.

status
string

State of this delivery. pending means it has not been delivered yet and is still being attempted. succeeded means your endpoint acknowledged it. failed means no further attempts will be made. unknown is a state this version of the API does not name.

pendingsucceededfailedunknown
next_retry_at
string · date-time

When Clio will next try this delivery, or null when no further attempt is scheduled, either because it has finished or because it is waiting to be picked up for the first time.

attempts
array of WebhookDeliveryAttempt

Every attempt Clio has made to deliver this event, oldest first. Empty until the first attempt has been made.

attempted_at
string · date-time

When Clio made the request, to millisecond precision (ISO-8601 timestamp).

http_status
integer

The status your endpoint returned, or null if it did not respond, for example a timeout or a connection failure.

outcome
string

success means your endpoint acknowledged the request. transient_failure means Clio will try again. permanent_failure means it will not.

successtransient_failurepermanent_failure
WebhookSubscription
Name
Type
Details
id
integer · int64

Unique identifier for the webhook subscription

url
string · uri

The HTTPS endpoint events are delivered to. Must use the https scheme and must not resolve to a loopback, private, or link-local address; a URL that fails those checks is rejected with a validation_failed 422. Changing the URL returns the subscription to pending from any state, so it must be re-activated.

status
string

Lifecycle state of the subscription. New subscriptions start as pending, and changing url returns one to pending from any state, since nothing has proved you control the new endpoint. active is delivering normally. suspended means Clio stopped it: sustained delivery failure, an endpoint that rejected delivery with a 410 Gone or a redirect, or an operator. disabled means you stopped it, through POST /webhook_subscriptions/{id}/disable, or by leaving an active subscription with no event types, either by clearing event_types or by removing the application scope its last one needed. The way back to active depends on which: pending and suspended go through POST /webhook_subscriptions/{id}/activate and its challenge, while disabled uses POST /webhook_subscriptions/{id}/enable, which needs no challenge because the endpoint was never in question.

pendingactivesuspendeddisabled
status_reason
string

Why Clio suspended the subscription, while it is suspended; null in every other state. consecutive_dead_deliveries means too many deliveries in a row failed every retry attempt, and endpoint_rejected means the endpoint answered a delivery with 410 Gone or a redirect. Both point at the endpoint, so fix it and activate again. suspended_by_clio means Clio stopped the subscription: nothing is wrong with the endpoint, and reactivating will not resolve it, so contact support. unspecified is a cause this version of the API does not name. Suspending an already suspended subscription keeps the first reason. More values may be added.

consecutive_dead_deliveriesendpoint_rejectedsuspended_by_cliounspecified
status_changed_at
string · date-time

When the subscription entered its current status (ISO-8601 timestamp).

schema_version
string

The event payload schema version this subscription is pinned to, as a YYYY-MM-DD date. Defaults to the latest published payload version.

authorized_entity_id
string

The UUID of the entity the subscription belongs to.

event_types
array of string

The events this subscription receives, each formatted as <product>.<resource_type>.<event_type>. The token must already hold the resource scope each event type requires. May be empty. Clearing the set, or having the last event type's resource scope revoked, leaves the subscription with no event types and disables it if it is active. One that is already pending or suspended keeps that state. Restoring an event type does not resume delivery on its own: ask for it with enable or activate.

created_at
string · date-time

The time the subscription was created (ISO-8601 timestamp)

updated_at
string · date-time

The time the subscription was last updated (ISO-8601 timestamp)

WebhookSubscriptionWithSecret
Name
Type
Details
id
integer · int64

Unique identifier for the webhook subscription

url
string · uri

The HTTPS endpoint events are delivered to. Must use the https scheme and must not resolve to a loopback, private, or link-local address; a URL that fails those checks is rejected with a validation_failed 422. Changing the URL returns the subscription to pending from any state, so it must be re-activated.

status
string

Lifecycle state of the subscription. New subscriptions start as pending, and changing url returns one to pending from any state, since nothing has proved you control the new endpoint. active is delivering normally. suspended means Clio stopped it: sustained delivery failure, an endpoint that rejected delivery with a 410 Gone or a redirect, or an operator. disabled means you stopped it, through POST /webhook_subscriptions/{id}/disable, or by leaving an active subscription with no event types, either by clearing event_types or by removing the application scope its last one needed. The way back to active depends on which: pending and suspended go through POST /webhook_subscriptions/{id}/activate and its challenge, while disabled uses POST /webhook_subscriptions/{id}/enable, which needs no challenge because the endpoint was never in question.

pendingactivesuspendeddisabled
status_reason
string

Why Clio suspended the subscription, while it is suspended; null in every other state. consecutive_dead_deliveries means too many deliveries in a row failed every retry attempt, and endpoint_rejected means the endpoint answered a delivery with 410 Gone or a redirect. Both point at the endpoint, so fix it and activate again. suspended_by_clio means Clio stopped the subscription: nothing is wrong with the endpoint, and reactivating will not resolve it, so contact support. unspecified is a cause this version of the API does not name. Suspending an already suspended subscription keeps the first reason. More values may be added.

consecutive_dead_deliveriesendpoint_rejectedsuspended_by_cliounspecified
status_changed_at
string · date-time

When the subscription entered its current status (ISO-8601 timestamp).

schema_version
string

The event payload schema version this subscription is pinned to, as a YYYY-MM-DD date. Defaults to the latest published payload version.

authorized_entity_id
string

The UUID of the entity the subscription belongs to.

event_types
array of string

The events this subscription receives, each formatted as <product>.<resource_type>.<event_type>. The token must already hold the resource scope each event type requires. May be empty. Clearing the set, or having the last event type's resource scope revoked, leaves the subscription with no event types and disables it if it is active. One that is already pending or suspended keeps that state. Restoring an event type does not resume delivery on its own: ask for it with enable or activate.

created_at
string · date-time

The time the subscription was created (ISO-8601 timestamp)

updated_at
string · date-time

The time the subscription was last updated (ISO-8601 timestamp)

signing_secret
string

The secret used to sign delivery payloads and challenge responses. Returned only when the subscription is created and when the secret is regenerated — it is never readable afterwards, so store it on receipt.