Skip to main content

Tokens and permissions

Each AI agent token belongs to your account and has a permission level. An agent using the token can only do what the token allows, and never more than your own role in the workspace allows.

Before you start​

Three permission levels​

PermissionWhat the agent can do
Read onlyView workspaces, channels and posts, analytics, competitors, trends and Brain pages.
Read and draftAlso create drafts, schedule, add to the queue, edit and delete posts, import media from a link and write Brain pages. This is the default.
Read, draft and publishAlso publish immediately.
warning

With Read, draft and publish, the agent can publish to your real channels immediately, without your review. Only choose it when you trust how the agent works.

On top of the token's permission, every tool call is checked again just like on the web:

  • You're still a member of the workspace and your role allows the action. Client reviewers can only read.
  • The workspace owner's plan includes AI agent connections.
  • Editors limited to certain channels can only use those channels.
  • In workspaces that require approval, a post an Editor publishes right away goes to approval instead.
  • Plan limits.

Choose an expiry​

When you create a token, pick an Expiry of 30, 90 (default) or 365 days, or Never expires. When a token expires the agent is rejected; create a new token to carry on.

tip

Use a short expiry for shared machines or experiments. Name tokens after the machine or agent, such as "Cursor on laptop", so you revoke the right one.

Review your tokens​

On the AI connections page, Created tokens lists your tokens with the Token, Permission, Last used and Expiry columns. You only see the token's name, never its value again.

Each person can have up to 10 active tokens.

Revoke a token​

  1. Under Created tokens, click Revoke next to the token.
  2. Confirm in the Revoke token? dialog. Agents using the token are rejected immediately. This can't be undone.

Tokens are also revoked automatically when:

  • You change, set or reset your password.
  • Your account is suspended.
  • You request account deletion or withdraw consent. See Privacy.

Keep tokens safe​

  • Don't paste a token into files that go into Git. With Codex, read the token from an environment variable as shown on the connect page.
  • Don't share tokens. Each person should use their own.
  • If you think a token has leaked, revoke it right away and create a new one.

Next steps​