Zapier
Zapier connects to Oclavex with nothing Oclavex-specific: outbound is plain signed webhooks, inbound is the plain REST API. This page ties the two into a working Zap.
Trigger a Zap from Oclavex
Section titled “Trigger a Zap from Oclavex”This is the common direction — a licensing event kicks off a workflow (post to Slack when a trial is expiring, create a task when a customer nears their quota).
A Webhooks by Zapier → Catch Hook URL works from the portal’s New subscription button as it is: Oclavex sends your URL nothing but signed events, so the Catch Hook has no handshake to answer, and the subscription is Active as soon as you create it.
- In Zapier, start a Zap with the Webhooks by Zapier trigger, event Catch Hook. Copy the custom webhook URL Zapier gives you.
- In the portal, open Webhooks and choose New subscription. Paste the
Zapier URL as the Receiver URL and pick the
event types you care about — for example
Entitlement.ActivatedorMeteredUsage.OverageStatusChanged. - In the confirmation after Create, choose Send test event, or use
Test-fire… in the subscription’s row menu later (or
.../test-fire). Zapier captures the payload and you can map fields.
To create the subscription from code instead, see Manage subscriptions programmatically.
Each delivery is signed. If your Zap forwards the payload somewhere that needs to
trust it, verify the webhook-signature header as shown in
Receiving webhooks. Deliveries are at-least-once, so
deduplicate on the webhook-id header if the downstream action isn’t idempotent.
Manage subscriptions programmatically
Section titled “Manage subscriptions programmatically”If you are building a Zapier app or a partner integration rather than a one-off Zap, you can let the integration create and manage its own webhook subscriptions instead of doing it by hand in the portal.
- In Settings → API credentials, choose New integration credentials. You get
a client ID (
integration.…), a one-time secret, the token URL (https://<your-subdomain>/auth/connect/token) and the scopewebhooks.own-subscription.*. - Exchange them for a token with the OAuth
client_credentialsgrant (see Authentication). - Call the integrator endpoints under
/api/v1/webhooks/integrator/…to list, create, enable, disable and rotate subscriptions. The integration only ever sees its own subscriptions, and the tenant is fixed by the token — no tenant header to set or spoof. - A subscription you create is Active at once. Call
POST …/{id}/test-fireto send a sample event and check that the receiver gets it.
Let a Zap call back into Oclavex
Section titled “Let a Zap call back into Oclavex”To have a Zap do something in Oclavex — create an entitlement from a Stripe event, pause one on a support signal — a Webhooks by Zapier action makes the REST call. There are two ways to authorize it:
- Reacting to a delivery — if the subscription requested callback scopes, every
delivery carries a short-lived token in the
webhook-callback-tokenheader. Forward it as theAuthorization: Bearer …on your callback. It is already scoped to exactly what you allowed, expires in minutes, and needs no stored secret. Callback tokens reach your catalog, licenses, sessions, usage, quotas, metrics and feature ratings only — never account administration, sign-up, privacy or connector settings, and never a delete or a wildcard. - Standalone actions — for a Zap that isn’t reacting to an Oclavex delivery, authenticate with admin or operational client credentials (Authentication) and call the API directly.
The Stripe page is a full worked example of this callback direction — a billing event in, an entitlement change out.