Authentication: API keys and OAuth apps
Make, scope, rotate and revoke API keys, limit where a key may call from, and connect apps with OAuth 2.1, each person approving them for themselves.
Last updated 8 min read
On this page · 10 sections
Every request carries a bearer token in its Authorization header. The REST API (/v1) takes only an API key Current made. An app that connects through OAuth reaches Current through the MCP server (/mcp), and its access token works only there.
Authorization: Bearer $CURRENT_API_KEY
API keys
Current makes every key. There is no field that takes a key you made yourself, and a request that sends one is refused (reason secret_not_accepted). A live key starts cur_live_ and ends with a short checksum, so a key with a typo is refused before it reaches your data.
- Current shows a key once, when it is made. It keeps only the key's first few characters and a one-way fingerprint, so nobody can show it to you again.
- A key lasts 30, 60 or 90 days, chosen when it is made; 90 is the default.
- A workspace key or a personal key can be made with Never in place of a number of days. It then has no expiry date and works until someone revokes it or one of the rules under Rotate and revoke stops it. Keep a key like that in a secrets manager, and revoke it when the tool that uses it is retired.
- A key nobody has used for 30 days is switched off automatically, a key made with Never included. When a workspace key is switched off this way, your tenant admins get a notification.
- Keys made before typed keys started with cur_ alone. They keep working until they expire.
Who a key acts as
| Kind | Who makes it | Acts as |
|---|---|---|
| Personal key | Anyone on your staff, for themselves | That person: it sees and changes only what they can. A move to another staff role narrows it to what the new role allows; it stops if they leave your staff. |
| Workspace key | A tenant admin | Your workspace's API identity, which belongs to nobody. It never reads money, cost rates or passwords, and reads time entries only. |
| AI tool connection | Anyone on your staff, by signing in from Claude or ChatGPT | That person, like a personal key. |
Areas and scopes
Every key and connection reaches up to five areas. Four are None, Read, or Read and write; Devices and security gaps is None or Read. They are stored as scopes, and an endpoint outside a key's scopes answers exactly like one that does not exist.
| Area | Read | Read and write |
|---|---|---|
| Tickets | tickets:read (and customers:read) | tickets:write |
| CRM | crm:read (and customers:read) | crm:write |
| Projects and tasks | projects:read | projects:write |
| Time entries | time:read | time:write |
| Devices and security gaps | devices:read | None: the area is read only |
customers:read finds companies and reads a company's contact details, never money; Tickets Read or CRM Read gives it. Read and write includes Read.
Devices and security gaps
Devices and security gaps is a fifth area. It lets a key or a connected app read the devices Current knows about and the security gaps the service desk has found. It is read only: it is set to None or Read, there is no Read and write, and nothing can be changed through it.
| What it reads | What comes back |
|---|---|
| Devices | Name, host name, type, maker and model, status, lifecycle stage, operating system and version, the company it belongs to, when its warranty ends and when it was last seen. |
| One device | The same, plus its serial number, each tool that reports it and when that tool last saw it, the device's last stored state from those tools (online, patch status and patches waiting, antivirus, restart needed, last restart) and how many security gaps are open on it. |
| Security gaps | The gap and its kind, what it is about (a device, a person, a company or a control), its severity, whether it is one for the desk to fix or a service to recommend, whether the agreement covers it, whether it is open, ignored or resolved, its ticket if one was opened, and when it was first and last seen. |
| A gap's facts | The measured facts behind it, such as which tools see the device and which do not, patches failed and waiting, days since it last checked in, or the sign-in methods on an account. |
| An ignored gap | The category it was ignored under and the date the ignore ends. |
- It never returns a key or a password of any kind.
- It never returns the data a tool sent Current in its raw form, or a tool's own id for a device.
- It never returns the note written when a gap was ignored, or who wrote it.
- It never returns anything Current's AI wrote about a gap: its explanation, its suggested steps or the evidence text among its facts.
- It never returns who last signed in to a device, and it never returns money.
- In a gap about a person, a label that holds an email address shows only that address, masked (for example j*@example.test). A label of one word shows only its first letter or digit, then *. A label of two or more words is shown as it is. Device names and host names are shown as they are named, so a device named after a person shows that name. Check the labels before you send them to another tool.
- A device's state is the last one Current stored. A call never asks one of your tools for a fresh reading.
The area appears on the API & MCP page once it is available for your workspace, which needs both the service desk and Assets switched on. It starts at None: a tenant admin sets it to Read on the Access tab before any key or app can hold it. Personal keys, workspace keys and connected apps can hold it. It follows the service desk's own roles, so a tenant admin, service manager, project manager, dispatcher, engineer or vCIO can read it, and a finance or sales role cannot. An older API agent key never reaches it.
What a call may do
What a call may do is the lowest of three things, checked on every call: the key's own areas, what your workspace allows (the ceiling a tenant admin sets on the Access tab; a workspace that set nothing allows nothing), and what the person's role allows. Lowering the ceiling takes effect on the next call, without touching any key. A tenant admin can also switch one person off: their keys and connections are refused until they are switched back on.
Allowed addresses
A key with any write area (Read and write on Tickets, CRM, Projects and tasks or Time entries) must have an IP allowlist: the addresses or ranges it may call from, each a /16 or narrower (a /48 or narrower for IPv6). A call from any other address is refused with the same 401 as a wrong key, so a stolen key is no use from anywhere else. A read-only key may have one too.
An allowlist may not contain 2a06:98c0:3600::103. Cloudflare gives that address to every Cloudflare Worker, so allowing it would let any Worker on the internet use the key.
Rotate and revoke
- Rotate makes a new key and shows it once. The old key keeps working for 24 hours, so you can swap the new one into your tool first. Then the old one stops.
- Revoke stops a key at once. Use it the moment a key may have been seen by someone else.
- A key with an expiry date stops on that date by itself. Rotate it before then. A key made with Never has no expiry date, and rotating it makes a new key that has none either.
- A personal key stops when its person leaves your staff: they leave the workspace, are disabled, or become a Partner Viewer. A move to another staff role does not stop it: it narrows to what the new role allows. A workspace key belongs to your workspace, but it stops when the tenant admin who made it stops being a tenant admin, is disabled or leaves the workspace. Your other tenant admins get a notification, and the Keys tab lists the key under Recently revoked. Making that person a tenant admin again does not bring it back: another tenant admin makes a new one. During a support visit, Current support can make or rotate a workspace key for you, as a tenant admin can. The key reads Created by Current support, every tenant admin gets a notification, and it keeps working after the visit until it is revoked, expires, or that support person no longer has support access.
- The Keys tab of Settings › Integrations › API & MCP lists your own keys. For a tenant admin it lists every live key in the workspace (personal keys with their owner, workspace keys, and any older agent keys) and any of them can be revoked there. Nobody can see a key again, not even a tenant admin. In a support session the list is not shown, but revoking a key or removing an app still works.
OAuth apps
Some tools connect on your behalf instead of using a key, such as an AI assistant that reads your tickets while you talk to it. They connect with OAuth 2.1, the authorization code flow with PKCE (S256 only; plain is refused). The app never sees a password and never gets a key. Its token works only at the MCP server's address, /mcp.
- 1The app sends you to CurrentCurrent's page names the app, who publishes it, which workspace it will read, and what it asks for in each area. Claude and ChatGPT are already approved by Current. Any other app Current has not reviewed can be approved only in the workspace that registered it.
- 2You approve it for yourselfAnyone on your staff can approve an app for themselves, never from inside a support session. The grid starts at what the app asked for, capped at what you may give, and you can lower it. The app then acts as you, in this workspace only.
- 3The app gets its tokensAn access token lasts 1 hour. A refresh token lasts 30 days and changes on every use. If the same app presents a used one again within 30 seconds (a retry), it is refused and nothing else happens; after that, it stops the whole family of tokens and tells your tenant admins.
- Apps read only for now. An app connected through OAuth gets no tool that changes, sends or deletes anything until Current switches app changes on.
- Each person has their own connection to an app. Approving it again replaces your own connection's areas and stops every token it held before; it never touches anyone else's.
- A connection stops when its person leaves your staff (they leave the workspace, are disabled, or become a Partner Viewer), and is refused while a tenant admin has switched that person off for the API. A move to another staff role narrows it to what the new role allows.
- Claude and ChatGPT are approved by Current. Any other app, including an AI assistant that registers itself, is refused until Current has reviewed it. An app your own workspace registers can be approved in your workspace before then; a workspace can register at most 50 apps of its own.
- Each token is bound to the MCP server it was issued for (the resource). It is never accepted by the REST API.
- A client finds every endpoint on its own from the authorization server metadata at /.well-known/oauth-authorization-server on the API's address. There is no OpenID Connect discovery document: Current is not an OpenID provider and issues no ID token.
- The answer that sends the person back to the app carries iss, Current's issuer, beside code and state. Check that it matches the issuer in the metadata.
- Check that state matches the one you sent, and refuse the answer otherwise.
See and remove connected apps
The Apps tab of Settings › Integrations › API & MCP lists your own connections, what each may reach and when it last called. For a tenant admin it lists every connection in the workspace, with the person who made it. Remove access stops one at once. Their calls appear in the call log beside the keys' calls.
Can I use my own API key with Current?
No. Current makes every key, shows it once, and keeps only its first few characters and a one-way fingerprint. No field takes a key you made yourself. See Authentication: API keys and OAuth apps.
How long does a Current API key last?
30, 60 or 90 days, chosen when it is made; 90 is the default. A workspace key or a personal key can be made with Never, which gives it no expiry date. Rotate a key that has an expiry date before that date: the old key keeps working for 24 hours after a rotation. Any key unused for 30 days is switched off automatically, a key made with Never included.
Can a Current API key be set to never expire?
Yes, for a workspace key or a personal key. On Create key, set Expires after to Never. The key has no expiry date, and the key list shows Expires: Never. It still stops when someone revokes it, when the person it acts as leaves your staff, when the tenant admin who made a workspace key stops being a tenant admin, and after 30 days without use. The key that Connect your AI tool makes lasts 90 days.
Why must a key that changes tickets have an IP allowlist?
So a key that leaks is no use from anywhere else. A call from an address outside the list gets the same 401 as a wrong key. Each entry is a /16 or narrower, a /48 or narrower for IPv6.
What happens to an API key when the person who made it leaves?
It depends on the kind of key. A personal key acts as its person and stops when they leave your staff: they leave the workspace, are disabled, or become a Partner Viewer. A move to another staff role narrows it to what the new role allows. A workspace key stops when the tenant admin who made it stops being one, is disabled or leaves the workspace; your other tenant admins get a notification, and the Keys tab lists it under Recently revoked. An AI tool connection stops when its person leaves your staff.
Can a Current API key read devices and security gaps?
Yes, once the area is available for your workspace, which needs the service desk and Assets. Set Devices and security gaps to Read when you make the key, after a tenant admin has set it to Read on the Access tab of the API & MCP page. The area is read only, and it never returns keys or passwords. A sign-in address in a person's gap label is masked, but display names, device names and host names are shown as they are. See Authentication.
How do I stop an app from reading our data?
Open the Apps tab of the API & MCP page in Settings and choose Remove access. It stops at once. An app's connection also stops by itself when the person who connected it leaves your staff.
