Create API tokens
Personal access tokens (PATs) authenticate API requests without a browser session, for scripts, integrations, CI jobs, and AI agent connections. A token acts as you, in one organization, limited to the scopes you grant it.
Create a token
Section titled “Create a token”-
Open Settings and go to the Developer tab.
-
Start a new token and give it a descriptive name (“Reporting script”, “Build pipeline”), so future-you knows what it is for.
-
Pick the organization the token belongs to. A token is bound to one organization and carries the role you hold there.
-
Select scopes. Grant the least the integration needs: read-only project and task scopes for a reporting script, write scopes only for tools that change data.
-
Optionally restrict the token to specific projects. A project-scoped token cannot read or touch anything outside the projects you select, even if your own access is broader.
-
Optionally set an expiry date, then create the token.
The token value is shown once. Copy it immediately; afterward only a short prefix is displayed for identification.
Revoke a token
Section titled “Revoke a token”Revoke any token from the same Developer tab. Revocation is immediate: the next request with that token is rejected. Each token also shows when it was last used, which makes it easy to spot dead ones worth cleaning up.
Agent connections use the same tokens
Section titled “Agent connections use the same tokens”When you connect an external AI agent (Claude, Cursor, and other MCP clients), Onplana mints the same kind of token under the hood, with an agent purpose, a 90-day default expiry, and its own management surface under Settings → Agents. Project scoping works there too, so you can hand an agent exactly one project. See Connect an external agent.
Good to know
Section titled “Good to know”- A token can never do more than you can. Scopes narrow your access, they never widen it.
- Tokens cannot create other tokens, and security surfaces (sessions, 2FA, token management itself) always require a real sign-in.
- Token creation requires a verified email address.
A token leaked. What do I do? Revoke it immediately from Settings → Developer, then review what it touched: the token row shows last use, and on Enterprise plans the audit log records its activity.
Do tokens stop working when I sign out or change my password? No. Tokens are independent of browser sessions; only revocation or expiry ends them. See Manage sessions and devices for the session side.
Can an admin revoke my tokens? Your general tokens are yours alone. Agent connections are the exception: organization admins can revoke a member’s agent connection from the oversight view, since agents act inside shared projects.
Was this helpful?
Thanks for your feedback!