cURL tool
Generate cURL commands for commonly used APIs. This is a local-browser-only tool that runs in your browser.
Use the public API origin, without a trailing slash.
Used for steps 1, 2, and 4. It stays in this page, but appears in the generated command and clipboard.
Create a tenant
Uses your administrator key. Copy the returned tenant_id for the next step.
Create a tenant key
Requires the administrator key. The new key is returned once; save it securely.
Create a counter
Uses a tenant key with counter:create for this tenant.
The selected tenant key needs permission to create counters.
Get tenant
Uses the API Key above. Paste the tenant_id returned in step 1.
Get counter
Uses the tenant ID and API Key from step 3 with counter:read. Paste the counter_id returned in step 3.
The selected tenant key needs permission to read counters.
Counter metadata
Uses the tenant ID and API Key from step 3 and the counter ID from step 5. Read requires metadata:read; create, replace, and delete require metadata:write.
Read includes response headers. Copy the quoted ETag for a later edit.
Paste the full quoted ETag from the latest read. A stale ETag returns 412; read again before editing.
For retries, reuse the same UUID, JSON, and ETag headers. Use a new UUID for each new write.
Any JSON value, including arrays, scalars, and null. Up to 64 KiB and 64 nesting levels; JSONB limits apply. Replacement removes omitted properties; deletion removes the document and leaves the count unchanged.
Select metadata:read in step 2 for a key that can read metadata.