API keys and webhooks
What other systems may do in a workspace and what it tells them: API keys with scopes and an expiry, webhook endpoints and their deliveries.
Overview
When to use
- A project's API keys page.
- A project's webhooks page, with each endpoint's recent deliveries.
- Every delivery across endpoints, filtered and opened to its request and response: webhook-deliveries.
Use something else
- A person's own settings: Identity and account › Settings.
Blocks
API keys
Create, list and revoke API keys: a new secret shown once with a copy button, revoking confirmed first.
BetaControlledRenders only from its props and callbacks, with no sample data or app shell inside: pass your data and handlers.
Install
npx shadcn add @syncrobotic/settings-api-keys Built from
1280px390px
Webhooks
Webhook endpoints with their events and state: adding one with its signing secret shown once, test events, recent deliveries, rotating and deleting.
BetaControlledRenders only from its props and callbacks, with no sample data or app shell inside: pass your data and handlers.
Install
npx shadcn add @syncrobotic/settings-webhooks Built from
1280px390px
Webhook deliveries
Every delivery of a project's webhooks, a page at a time: filtered by status, event and endpoint, each opened to its request and response, and sent again.
BetaControlledRenders only from its props and callbacks, with no sample data or app shell inside: pass your data and handlers.
Install
npx shadcn add @syncrobotic/webhook-deliveries Install its demo, in the app shell
npx shadcn add @syncrobotic/webhook-deliveries-demo Built from
1280px390px
Usage rules
- A secret (an API key, a signing secret) is shown once, with a copy button, and says it will not be shown again. It comes from the create or rotate callback and is dropped on Done: never put it in a query cache, a store or the URL.
- A key holds only scopes its creator holds: a ScopePicker lists the rest, disabled, with the reason (
allowedScopes). - Every key has an expiry unless someone chooses Never; the expiry is sent as an ISO time, never a local wall-clock string.
- Creating, revoking and rotating are sensitive: run each callback through your step-up (
useStepUp().run); a cancelled check leaves the form as it was. - Only a failing endpoint or an expired key is coloured; active is grey.
- The deliveries page filters on the server: status, event and endpoint go out with the query, back to page 1, and the counts come from the server. A failed delivery is red, one waiting to retry blue, a delivered one grey. Send again makes a new delivery; the old one stays as it was.