---
title: "Manage API tokens in the console | Proofline Help"
description: "Create a token with the access its integration needs, then revoke it when that integration should stop making requests."
url: https://proofline.sh/help/api-tokens/
---

[Help center](/help/)

# Manage API tokens in the console

Create a token with the access its integration needs, then revoke it when that integration should stop making requests.

[![One organization token on the Tokens page, with Service accounts and Policy beside it under API tokens.](/help-images/api-tokens-light.png)](/help-images/api-tokens-light.png)

The Tokens page lists the organization's tokens; Policy sets their limits. Fictional demo workspace.

## Create a token

1.  Open **Settings → API tokens → Tokens**, or **Personal tokens** from your account menu.
2.  Select **Create token**.
3.  Give the token a recognizable name.
4.  Choose its permissions and repository restrictions.
5.  Choose an expiry and create the token.
6.  Copy the token when it is shown and store it securely.

Check the selected scope before creation. A token does not provide access beyond the authority under which it was created.

Organization tokens require an organization owner with operational access. If an organization token starts reviews, select the repositories it may review. Only personal tokens offer permission to start cloud agent sessions.

Connect Session Recorder through its [browser approval](/help/session-recorder-proofline/). Manually created tokens cannot grant recorder permissions.

Choose a lifetime within the organization's policy: personal tokens allow up to 90 days and organization tokens up to 365 days, but the policy can shorten those limits or refuse permissions. Store the secret when it appears, because it is shown only once. Then select **I saved the token**.

## Revoke a token

Find the token and use its revoke action. Read the confirmation and confirm the token you intend to revoke.

Revocation stops new requests from using that token. Update the consuming integration if it needs a replacement.

**Personal tokens** also lists CLI and MCP sign-ins. An owner can inspect those alongside organization tokens in the organization's token inventory.

## Replace a token before it expires

Proofline checks the organization's tokens once a day. When a personal token, organization token, CLI sign-in or service account key will expire within 7 days, it records a 7-day notice; within one day, a 1-day notice. Each notice also posts to the organization's [Slack delivery channel](/help/connect-slack/), naming the token's kind, its prefix as the token list shows it and its expiry time in UTC, with a link to **Tokens**. The message never includes the token's name or full secret.

MCP sign-ins and revoked tokens get no notice, and neither do keys of a disabled service account. A token revoked before its notice is sent gets no message.

In the token inventory under **Settings → API tokens → Tokens**, an owner sees each recorded notice under its token, such as **7-day notice recorded** with the time. A notice is recorded even when no Slack channel is connected.

To keep an integration working, create a token to replace it, update the integration, then revoke the old token.

## Create a service account for automation

A service account belongs to the organization. Its keys keep working when the person who created it leaves. An organization owner with operational access and recently verified GitHub organization ownership can manage service accounts. If **Recent owner sign-in required** appears, sign in again and reload the page.

1.  Open **Settings → API tokens → Service accounts**.
2.  Select **Create service account**.
3.  Enter a **Name**, an optional **Description**, and a **Role**.
4.  Select **Create service account** to save it.
5.  Under the account, choose a **Grant repository** and its **Access**: **Read**, or **Read and request reviews**.
6.  Select **Grant**.
7.  Select **Issue key**.
8.  Enter a **Key name**, choose **Permissions**, and set **Expires in**. You can further limit the key to selected granted repositories.
9.  Select **Issue key** to create it.
10.  Copy the secret, store it securely, and select **I saved the key**.

If no role is available, create one in [Roles](/help/roles/) first. Service accounts cannot use a role that manages cloud trust or roles. You must have the corresponding GitHub repository access to grant it to the account.

An account with no repository grants reads no repositories. A key's permissions and repository restrictions can narrow its access; they cannot expand the account's grants. The organization's token policy can shorten its lifetime or refuse permissions.

Use **Revoke** beside a repository to remove its grant. To revoke one key, open **Tokens**. To stop all of an account's keys, select **Disable**, then confirm **Disable service account**. Disabling is permanent and keeps the account's history; restoring automation requires a new account.

## Set the organization policy

Organization owners can open **Settings → API tokens → Policy** to set the maximum lifetime, allowed permissions, and client networks.

Allowed permissions also apply to browser-approved Session Recorder connections.

Review the form's constraints, then select **Save policy**. Network restrictions require a verified client address from the installation's edge.

A maximum lifetime below 14 days refuses new CLI sign-in approvals, which require a 14-day key.

When **Run setup from a coding agent** is not allowed, coding agents cannot run setup for the organization. See [Set up Proofline from a coding agent](/help/agent-setup/).

## Use a token programmatically

See the [developer documentation](/docs/) for authentication, API calls, SDKs, and command-line examples.

Keep tokens out of screenshots, support messages, and repository files. Share the token's name and error details when asking for help.

## Token administration tasks

-   [Create a personal access token for one integration](/help/create-a-personal-access-token-for-one-integration/)
-   [Restrict an organization token to review repositories](/help/restrict-an-organization-token-to-review-repositories/)
-   [Revoke a personal token or CLI sign-in](/help/revoke-a-personal-token-or-cli-sign-in/)
-   [Respond to an expiring token notice](/help/respond-to-an-expiring-token-notice/)

## Service account tasks

-   [Create an organization-owned automation identity](/help/create-an-organization-owned-automation-identity/)
-   [Grant repository access to a service account](/help/grant-repository-access-to-a-service-account/)
-   [Issue a repository-limited service account key](/help/issue-a-repository-limited-service-account-key/)
-   [Remove a repository from a service account](/help/remove-a-repository-from-a-service-account/)
-   [Disable a service account and all its keys](/help/disable-a-service-account-and-all-its-keys/)

## Organization token policy tasks

-   [Restrict token requests to approved client networks](/help/restrict-token-requests-to-approved-client-networks/)
-   [Set maximum token lifetime without blocking CLI sign-in](/help/set-maximum-token-lifetime-without-blocking-cli-sign-in/)
-   [Limit which permissions tokens can request](/help/limit-which-permissions-tokens-can-request/)
-   [Resolve an API token policy editing conflict](/help/resolve-an-api-token-policy-editing-conflict/)

## Token policy troubleshooting

-   [Resolve unavailable client network restrictions in token policy](/help/resolve-unavailable-client-network-restrictions-in-token-policy/)

## Related guides

-   [Manage roles and grants](/help/roles/)
-   [Set up a coding agent](/help/coding-agents/)
