API
Authentication and scopes
Create an API key, send it as a bearer token and choose what it can do.
Create a key
Owners and Admins create keys in Settings → API keys:
- Name the key after what will use it, such as Weekly export.
- Choose Read or Read and write. A read and write key holds every scope below.
- Choose all projects or only some.
- Choose when it expires: 1, 7, 30 (the default) or 90 days, a custom date, or never.
- Copy the key. It is shown once; CiteLadder stores only a fingerprint of it.
A workspace can hold ten live keys. Revoke a key there at any time; requests with it are refused at once. Delete removes a key from the list for good and revokes it first if it is still live.
Authenticate
Send the key as a bearer token. Cookies are ignored.
curl https://api.citeladder.com/v1/projects \
-H "Authorization: Bearer cl_live_…"Scopes
| Scope | Lets the key |
|---|---|
read |
Read projects, prompts, audits, answers, visibility and the other public reports |
prompts:write |
Create, edit, import, activate, archive and delete prompts and topics; generate |
competitors:write |
Add, edit and remove competitors; accept or reject competitor suggestions |
audits:run |
Launch and cancel audits |
schedules:write |
Create, change, pause and delete audit schedules |
actions:write |
Change an action’s status and record an implementation |
Each endpoint page names the scope it needs.
A key acts for the person who created it. If that person’s role changes, the key changes with it: a key created by an Admin who becomes a Viewer can only read. If the person leaves the workspace, their keys are revoked.