Create, restrict, and revoke API tokens
Create a token, choose REST API abilities through the API, and revoke credentials you no longer use.
Create an API token when your application needs to read or change RightMessage projects without a browser session.
Before you start
Sign in with the account whose projects the application should access. Token creation requires API access on the selected project. The token belongs to your user account, not just the project currently open.
You also need secure server-side storage for the token. Tokens created in the app have full access by default.
For an AI assistant that supports hosted OAuth, use Connect RightMessage to your AI assistant instead. You won't need to copy a token.
Create a token in the app
- Open the user menu and choose Your profile.
- Open API Tokens.
- Under Create API Token, enter a Token Name, such as
WorkForge reporting. - Click Create.
- Use Copy token to save the new value in your application's secret storage.
RightMessage shows the complete token once. After that, the list shows its Name, Created date, and Last Used date. Never means no use has been recorded.
The dashboard has no ability selector. Tokens created here have *, which means full access. To choose narrower REST permissions, create a token through the API. Keep tokens out of browser JavaScript, public repositories, screenshots, and shared AI conversations.
Create a token with narrower REST abilities
The token creation API accepts an abilities array. Use this when an application needs fewer project operations than the dashboard's default token permits.
- Choose the abilities your application needs.
- Create the token with
POST https://api.rightmessage.com/v1/tokens. - Store the returned
data.plainTextTokensecurely. - Configure the application to send that value in its
Authorization: Bearerheader.
| Ability | Project REST operations |
|---|---|
read | Read endpoints. Does not permit project mutations or publishing. |
write | Read endpoints and write endpoints, including starting exports. Does not include publishing. |
publish | Publish the project's draft configuration. Add read if the application also needs to inspect the project. |
* | All abilities. This is the default when abilities is omitted. |
This illustrative request creates a reporting token. RIGHTMESSAGE_TOKEN is an existing credential stored in your environment.
The response is HTTP 201. The data object contains id, name, abilities, and the one-time plainTextToken. See Tokens and OAuth connections API reference for the complete contract.
There is no token-edit endpoint or dashboard ability editor. To change a token's abilities, create a replacement and revoke the old token. Selecting an active project in MCP is also not a credential restriction.
Revoke a token
Deleting a token immediately stops applications that use it from authenticating.
- Open Your profile.
- Open API Tokens.
- Find the token by its Name.
- Click Delete on that row.
- Review the Delete API Token dialog.
- Click Delete Token.
The token disappears from the list. Use Cancel if you're not ready to interrupt the application.
If a token is exposed, revoke it rather than renaming the application. Create a replacement only for the applications that still need access.
Make authenticated requests
Use the REST API authentication and request conventions for request headers, project IDs, and error handling. OAuth connections are revoked separately under AI Connections.