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.
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 theAuthorization header:
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 gets401 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 gets401 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.