Every v2 endpoint requires a bearer token. v1 keys (Documentation Index
Fetch the complete documentation index at: https://productlane.mintlify.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
pl_v1_*) do not work - they’re managed by a separate system and the secrets aren’t recoverable. Mint a fresh v2 key.
Mint a key
- Open Settings → Integrations → API.
- Click Create API key.
- Pick a preset:
- Full access - every scope. Equivalent to a v1 key.
- Custom - check only the scopes you need.
- Copy the secret. It’s shown once and never again. If you lose it, revoke and mint a new one.
pl_v2_. The dashboard shows the first four characters after the prefix as a preview so you can distinguish keys without revealing the secret.
Use the key
Set theAuthorization header on every request:
Scopes
Keys can be locked down to specific resources. The available scopes are:admin is required for member management and webhook management.
If a request hits an endpoint your key doesn’t have the scope for, we return 403 scope_required:
details payload tells you exactly which scope to add. Edit the key in the dashboard and either widen the existing key’s scopes or mint a new, narrower one.
Verify a key
GET /me confirms the key is valid and tells you which workspace and scopes it carries:
Common auth errors
| HTTP | Code | Meaning |
|---|---|---|
| 401 | unauthenticated | Missing or malformed Authorization header. |
| 401 | unauthenticated | Key revoked or unknown. |
| 403 | scope_required | Key is valid but doesn’t carry the scope this endpoint needs. |
| 403 | forbidden | Authenticated but blocked for another reason (e.g. plan gating). |
| 410 | unsupported_key_version | You passed a v1 key (pl_v1_*) to a v2 endpoint. Mint a v2 key. |
Rotate a key
- Mint a new key with the same scopes.
- Deploy it.
- Once traffic has moved over, revoke the old key in the dashboard.