Skip to content
TDACorpIDENTITYSign in

Access tokens

Create, rename and revoke personal access tokens, which let a script act for you with limited, expiring access.

On this page

A personal access token is a long secret you create for yourself so that a script or a tool can act for you without signing in as you. It is not an application: no app asks for it and nobody else can use your token's access except whoever holds the secret. The Access tokens tab of Apps and access is where you create, list, rename and revoke them.

A token carries only the access you choose, works only until the date you choose (or never, if you choose that), and stops working the moment you revoke it. Its secret is shown once, when you create it.

How to call the API with a token is on Using an access token.

Before you start#

Creating, listing, renaming and revoking tokens needs a second factor you used in the last 30 minutes. If you have not confirmed one recently, the page says Confirm it is you to see this page and offers a button; confirm with a passkey or an authenticator code. On a session you opened with a passkey, Other ways to confirm also offers your Account password. An account with only a password cannot manage tokens until it adds a second factor: see Security and passkeys.

An account that an organization manages (a managed identity) cannot create personal access tokens: the page says Your organization manages this account, so this is not available here. Ask your organization’s administrator. and the organization's directory connection is its only way in.

A token acts inside one of your organizations. You need at least one that is active. If you have none, the New token page says No organization to act in and asks you to accept an invitation to one first. See Organizations.

The token list#

The page describes tokens as letting a script read and update your own profile through the account API, and notes that each token expires on the date you choose, or never if you choose that. The list is titled Your access tokens, with these columns:

ColumnWhat it shows
NameThe name you gave it, with a status badge: Active, Revoked, Expired or Inactive.
PrefixThe first characters of the token, so you can recognise it. Never the secret.
ScopesWhat the token may do, one chip each.
ExpiresWhen it stops working, or Never expires.
Last usedWhen it was last used, or Never.
OrganizationThe organization it acts in.
Allowed IPsThe addresses allowed to use it, or Any address.

Inactive means the token is otherwise valid but you are no longer an active member of the organization it belongs to. A token never allows more than you could do yourself at that moment, so it is refused while you do not have that access.

The Access tokens list: two active tokens, each with its prefix, its scopes, when it expires, when it was last used, its organization and its allowed addresses, and the Revoke all tokens and New token buttons.
  1. New token.
  2. A token's name, with its status badge, here Active.
  3. Revoke all tokens, which appears while you have at least one active token.
Access tokens: what you have created, what each may do, and when it stops working. Sample data./account/tokens

Create a token#

  1. Open Apps and access, then the Access tokens tab, and select New token.
  2. Under Details, enter a Name of up to 100 characters. Say what the token is for.
  3. Under Expires, choose 30 days, 60 days, 90 days, Never or Custom. The form starts at 30 days. Custom asks for a Number of days, a whole number from 1 to 365. Never shows the warning This token never expires: the token then stays valid until you revoke it, so choose an expiry unless a script truly cannot be rotated.
  4. If you belong to more than one organization, choose the Organization the token acts in. With only one, it is used without asking. From five organizations the field becomes a searchable list.
  5. Under Access, pick an Access level (Read only, Full access or Custom) and tick the Scopes the token needs. The form starts at Read only. Choose the least it needs.
  6. Optionally enter Allowed IP addresses, one per line.
  7. Select Create token.
The New token page: a Details section with the token name, when it expires and the organization it acts in, an Access section with an Access level control (Read only, Full access, Custom) above the scopes grouped by area and an allowed-addresses box, and a Create token button.
  1. Name.
  2. Organization, the one the token acts in.
  3. The Access level, with the Scopes below it.
  4. Create token.
New token: a name, an expiry, and only the access the script needs. Sample data./account/tokens/new

Scopes#

The scopes are grouped by area: Profile, Sessions, Devices, Organizations, Security settings and Access tokens. Each area has Read and Change (for example identity.self.profile.read and identity.self.profile.write). Sessions, Devices and Access tokens also have single actions: Sign out a session, Remove a device, Create an access token and Revoke an access token. Read only ticks every Read scope and Full access ticks every scope, actions included. Ticking anything else switches the level to Custom.

Today only your own profile is reachable with a token (see Using an access token), so the other scopes are choices you can make ahead of the API accepting them.

You must tick at least one. A token can only carry access that you yourself hold in that organization, so the platform refuses a scope you do not have.

Allowed IP addresses#

Leave the box empty and the token works from any address. Otherwise, enter up to 16 entries, one per line. Each entry is a single address or a CIDR block such as 203.0.113.0/24. IPv4 and IPv6 are accepted. A single bad entry rejects the whole list, so a typo cannot quietly widen the restriction. A token used from an address outside the list is refused.

The secret is shown once#

After you create the token the page is titled Token created and shows Copy your token now. It says this is the only time the secret is shown, that it is not stored and cannot be shown again. The secret is in a field labelled Token secret, with buttons to show it, hide it and copy it. Select I have copied it when you are done and you return to the list.

If you leave the page without copying the secret, it is gone. Revoke that token and create another.

Treat the secret like a password. Anyone who has it can use the access you gave it, within its scopes, expiry and address list. Keep it in a secret store, not in source code or a chat.

Creating a token sends a security alert email to your verified addresses, and adds an event to your notifications.

The Token created page: a notice to copy the token now because it is shown only once, the secret hidden in a Token secret field with Show and Copy buttons, and an I have copied it button.
  1. Token secret, hidden until you select Show.
  2. Show and Copy.
  3. I have copied it, which returns you to the list.
Token created: the secret is shown once, and stays hidden until you choose to show it. Sample data./account/tokens/new

Rename a token#

Rename opens a dialog with Token name. Enter a new name of up to 100 characters and select Save name. The name is a label for you only. Revoked tokens have no actions.

Revoke a token#

  1. Select Revoke on the token's row.
  2. In the dialog Revoke this token?, confirm with Revoke.

The dialog says anything using the token stops working straight away. A revoked token stays in the list marked Revoked and cannot be revived.

Revoke all tokens#

Revoke all tokens, at the top right, appears while you have at least one active token. Its dialog is titled Revoke every token? and says every active token stops working straight away. Confirm with Revoke all tokens. Closing your account also revokes every token, and so does the No, secure my account choice on a sign-in alert.

What can go wrong#

What you seeWhat it means
You have reached the limit for access tokensThere is a limit on how many active tokens you can hold. Revoke one to create another.
Access tokens are not available for this accountThe organization you chose, or an organization above it, does not allow personal access tokens.
That access is not allowed for this accountYou asked for a scope you do not hold in that organization.
No organization to act inYou have no active organization membership. Accept an invitation first.
Choose at least one scope, Enter a name, Enter a whole number of days from 1 to 365The form needs those fixed before it can be submitted.
A token stopped workingIt expired, was revoked, you left its organization (it shows Inactive), or it is being used from an address outside its list.

Verified against commit 4fd66ff