Every endpoint requires a bearer token. We removed API v1 and its pl_v1_* keys on November 20, 2026, so mint a v2 key.
Mint a key
Click Create API key.
Pick a preset:
Full access - every scope.
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.
v2 keys are prefixed 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 the Authorization header on every request:
curl -H "Authorization: Bearer pl_v2_..." \
https://productlane.com/api/v2/meThe workspace id is inferred from the key - you never pass it in the URL.
Scopes
Keys can be locked down to specific resources. The available scopes are:
threads:read threads:write
messages:write
comments:write
contacts:read contacts:write
companies:read companies:write
changelogs:read changelogs:write
docs:read docs:write
tags:read tags:write
snippets:read snippets:write
portal:read
projects:read projects:write
issues:read issues:write
adminadmin 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:
{
"error": {
"code": "scope_required",
"message": "This endpoint requires the `threads:write` scope.",
"details": {
"required": ["threads:write"],
"granted": ["threads:read"]
},
"request_id": "req_..."
}
}The 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:
curl -H "Authorization: Bearer $PRODUCTLANE_V2_KEY" \
https://productlane.com/api/v2/me{
"workspace_id": "wks_abc123",
"api_key_id": "key_def456",
"scopes": ["threads:read", "threads:write"]
}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.
There's no atomic "rotate" endpoint - a brief overlap is the safe way to do it.
