PAT/WAT Token Expiry Notifications

Get an Email Before Your API Tokens Expire

An expired token usually shows up as a failed build, a broken script or an integration that quietly stops working. Bitrise now emails you before a personal access token or Workspace API token expires, so you can rotate it on your schedule.

:white_check_mark: Check your existing tokens

Reminders are on by default for new tokens. Tokens created before this release don’t send reminders, so review your tokens and replace any you rely on.

Token tables are now sortable. Under Security → API tokens, sort by Expiration to see which ones need rotating first.

:date: When the Reminders Arrive

Each reminder is sent once per token.

:envelope: Who Gets the Email

Personal access tokens: the reminder goes to you, the person who created the token. To turn this off, uncheck Notify me before this token expires when you create the token.

Workspace API tokens: the reminder goes to the workspace owners, not the person who created the token. To turn this off, uncheck Notify workspace owners before this token expires when you create the token.

:repeat_button: Rotating a Token

Expired tokens stop working immediately. When a reminder arrives - create a new token, update every script and integration that uses the old one, then revoke the old token so it isn’t left active. Give the new token only the workspace role and product access it needs.

For Workspace API tokens, you can regenerate the token instead, then update your scripts and integrations with the new value.

Regenerating works differently for each token type:

  • Personal access tokens keep their original expiry date when regenerated. To get a new expiry, create a new token.
  • Workspace API tokens get a new expiry date when regenerated.

Both keep their notification setting, which is fixed when the token is created.

:shield:Pick the Right Credential

  • Use Workspace API tokens for shared automation. A personal access token stops working if its owner leaves the workspace.
  • Avoid tokens that never expire. They get no reminders and stay valid until someone revokes them.
  • For CI, consider OIDC. Your CI provider exchanges its own token for a short-lived Bitrise credential, so there’s no secret to store or rotate.

Ready to check your tokens?

Read the docs → Review your tokens →

Have a question or feedback about this update? Join the discussion →