API tokens
An API token lets another system use the RushHour API without signing in with a person's password. Each token belongs to one company, acts as the person who created it with only the roles they picked, and can be revoked at any time without affecting anyone else.
Create a token
Tokens are created in the Company Portal, under Settings → API Tokens. The page is shown to users with the API tokens - manage API tokens and connected apps permission.
- Select Create token.
- Give the token a Name, such as Warehouse integration, and optionally a Description of what will use it.
- Choose its Roles. You can only pick from roles you hold yourself; choose the fewest the integration needs. Picking Company Admin gives the token full company admin access.
- Choose when it Expires: after 7, 30, 90 or 180 days, after 1 year, or No expiration. A token without an expiration keeps working until someone revokes it, so prefer an expiration and create a new token when it runs out.
- Select Create token.
The token is shown only once. Copy it straight away and store it in a secrets manager or your server's secure configuration — RushHour can't show it again. The dialog also shows a sample request you can use to try it, and how to use the token to connect an AI assistant — see MCP server for AI assistants.
Use the token
Send the token in the Authorization header of every request, exactly like a session token:
curl "https://api.rushhourapp.com/api/v1/App/WhoAmI" \
-H "Authorization: Bearer YOUR_API_TOKEN"
The response to App/WhoAmI shows who the token acts as and what it is allowed to do.
- It acts as the person who created it, limited to the roles chosen for the token, and only in the company where it was created. Every request is checked against those roles exactly as in the Company Portal.
- It can't manage accounts or secrets. A request made with an API token can't change users, passwords, roles, permissions or company membership, can't obtain another credential such as a session token, and can't change stored integration or payment keys. Those requests answer
403 Forbiddenwith the error codeauth.interactive_session_required; a person has to do them in the Company Portal. - It does not open live connections. Real-time push channels that the Company Portal uses are not available to API tokens.
- It can use AI features only if your company allows it. The AI assistant, voice transcription, AI imports and RushHour's other AI features accept a token's requests only while Allow API tokens to use AI features is on under Settings → AI Usage. It is off by default; until a company admin turns it on, where your plan allows it, those requests answer
403 Forbiddenwith the error codeaiusage.api_tokens_not_allowed. What a token spends on AI counts towards your company's AI spending limits.
Manage your tokens
The API Tokens page lists your company's tokens with their name, roles, the person they act as, when they were created, when they were last used and when they expire, and a status:
| Status | Meaning |
|---|---|
| Active | The token works. |
| Expired | The token's expiry date has passed. Create a new one. |
| Revoked | Someone revoked the token. It never works again. |
| Suspended | The person the token acts as can't currently use it — for example they were disabled, removed from the company, or left without any of the token's roles. It works again if that changes; revoke it if it's no longer needed. |
Revoke a token as soon as it is no longer needed, or if it may have leaked. It stops working within about a minute. Turn on Show revoked tokens to see revoked ones in the list.
A company can have up to 50 active tokens at a time.
Good practice
- One token per integration, named after it, so you can revoke one without touching the others.
- Give it the fewest roles it needs — see Users, roles and permissions.
- Keep it on your server. Never put a token in a web page, a mobile app, a shared spreadsheet or a chat message.
- Prefer an expiration, and plan to replace the token before it runs out.
You can also still authenticate by signing in as a dedicated Company Portal user — see Authentication.