Authorization header of every request. Each key carries one or more scopes that limit exactly which actions it can perform.
Authentication scheme
Every endpoint under/api/open/v1/... requires a bearer token in the Authorization header:
The Workspace API Keys endpoints (
/api/open-api/keys) use cookie/session authentication from the Plangrep app itself. They are not accessible with a bearer API key.Key scopes
When you create an API key, select the minimum set of scopes your integration requires.| Scope | Access granted |
|---|---|
jobs:read | Read job state and results |
jobs:write | Create jobs, upload files, complete uploads, resume and cancel jobs |
artifacts:read | Fetch authenticated artifact URLs |
Always create keys with the minimum scopes your integration needs. Narrowly scoped keys limit the blast radius if a key is ever leaked or compromised.
Creating an API key
Go to plangrep.com and sign in to your account.
Enter a descriptive label so you can identify the key later. Select the scopes your integration needs. Optionally set an expiration date to auto-expire the key after a fixed period.
Key lifecycle
- Revocation — Revoke individual keys from the API settings page, or revoke all keys at once. Revoked keys are rejected immediately on the next request.
- Audit fields — Every key records
lastUsedAtandlastUsedIpso you can audit usage and detect unexpected access. - Expiration — Set
expiresAtduring creation to auto-expire keys on a schedule. Expired keys behave identically to revoked keys.
Error responses
Requests with a missing, invalid, or revoked bearer token receive a401 Unauthorized response:
code field to distinguish error types programmatically — the message field is human-readable and subject to change.