Skip to main content
Every request to Circularo API v2 authenticates with an API key passed in the Authorization header. In this guide you verify your key works, create a second key for another system, and revoke it again — the full key lifecycle in five calls.

Before you begin

  • Your first API key. Create it in the Circularo web app under My Account → Manage API keys. The API can manage additional keys, but the first one always comes from the web app.
All paths in this guide are relative to your environment’s base URL — the examples use:
An API key carries the same permissions as the user who created it. It is a secret credential: keep it in a secret manager or environment variable, never in source control or client-side code.

Step 1: Make your first authenticated call

GET /me returns the account your key belongs to — the quickest way to check that your key and connectivity work:
Request
The same call as a shell one-liner, for trying a key out before you write any code:
Response
If the key is missing or wrong, you get 401 instead. Everything the key does — documents it sees, actions it may take — happens as this account, with this account’s permissions.

Step 2: Create a second API key

Use one key per system that talks to Circularo, so each can be revoked independently. Create a new key with a description that tells you later what it is for:
Request
Response
Store the apiKey secret now — it is returned only in this one response and cannot be retrieved again. The id is the key’s non-secret handle for management calls.

Step 3: List your keys

The list shows every active key by its id and description — never its secret, so a lost key cannot be recovered here, only replaced:
Request
Response
lastUsedAt tells you when a key last authenticated a request — useful for spotting keys that are no longer used and can be revoked.

Step 4: Revoke a key

Deleting a key revokes it immediately:
Request
Response
Revocation is permanent — if the system needs access again, create a new key. Replacing a key that is still in use combines the two calls above, in this order: create the replacement, switch the system over to it, and revoke the old key only once the new one is live. Both keys authenticate in the meantime, so the swap costs no downtime. Rotate on the schedule your security policy sets, and immediately whenever a key may have leaked. Deleting the compromised key ends its access at once, whatever holds it.

Step 5: Verify the revoked key is rejected

Any request with the revoked key now fails with 401:
Request
Response
This is the error envelope every failed request returns: a machine-readable type, a human-readable message, and a requestId you can quote when contacting support. Handle errors covers working with errors in detail.

Complete example

Rotating the key of one system — issue the replacement, prove it works, retire the old one — as a Node.js script. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.

Next steps