Skip to main content
Every request carries an API token as a bearer token. A token belongs to one member of one workspace.

Make a token

A person makes a token in the ImpelLabs app, in Settings. The app asks for:
  • A name, up to 80 characters, for example “Billing script”.
  • An optional end date. Choose from 1 to 366 days, or leave it empty for no end.
  • Optional scopes. Scopes limit the tools of the MCP server. Leave them empty for every scope.
The app shows the token one time. It starts with imp_. Copy it then and keep it secret. ImpelLabs keeps only a hash of it and cannot show it again. A member can keep a limited number of live tokens. Revoke the ones you do not use.

Send the token

Put the token in the Authorization header:
Do not send an X-Workspace header with a token. The token already names its workspace.

What the token can reach

A token acts as its member. What the member may do in the app, the token may do through the API. What the member may not see, the token may not see. A token cannot reach the routes for sign-in, account, workspaces, API tokens and sign-in with OAuth. These routes need a signed-in session in the app. A token that calls one gets 401 and the message Sign in to the ImpelLabs app for this. An API token reaches the REST routes in the API reference and the MCP endpoint at /mcp. A token made for a web connector, such as an assistant that signed in with OAuth, reaches only the MCP endpoint. Its other requests get 401 with This token is for the MCP server only.

Revoke a token

A member revokes their own tokens in the app. An owner or an admin can revoke the tokens of other people in the workspace. A revoked token stops at once. Only a signed-in session in the app can make or revoke tokens. A token cannot.

When a token stops working

A request gets 401 and This token does not work. Make a new one in Settings. in these cases:
  • The token is wrong, revoked or past its end date.
  • The member was removed or made inactive.
  • The workspace was archived.
Make a new token. There is no way to extend one.

Sign in with OAuth

A web AI client does not need you to copy a token. It signs in with OAuth, and the member says yes on a consent screen. This applies to the MCP server only. See MCP authentication.