Skip to content
Back to Knowledge Base

How to Create and Manage API Tokens

An API Token is a secret string that represents your identity when making requests to the CoCoCo API. It works like a password for programmatic access — instead of logging in with your email and password, you include the token in the request header and CoCoCo knows who you are and what you’re allowed to do.

API Tokens are personal — they are tied to your user account and carry your permissions.

Common uses:

  • Accessing the CoCoCo GraphQL API from an external script or application
  • Connecting an AI assistant like Claude Desktop or Cursor via the CoCoCo MCP server
  • Authenticating CI/CD pipelines that interact with the platform

Click your profile avatar in the top right corner, then select API Tokens from the dropdown. Or navigate directly to https://<your-domain>/#/api-tokens.

  1. Enter a Token name — something that makes it clear what this token is used for, e.g. Claude Desktop, CI Pipeline
  2. Optionally set an Expiration date — if left empty, the token stays valid until you revoke it manually
  3. Click Create token
  4. Copy the token immediately — it will not be shown again after you leave or refresh the page

Include the token in the Authorization header of every API request:

Authorization: Bearer YOUR_TOKEN

If a token is compromised or no longer needed:

  1. Go to API Tokens
  2. Find the token in the list
  3. Click Revoke
  4. Confirm

The token stops working immediately.

  • One token per use case — create a separate token for each tool or integration
  • Use descriptive namesClaude Desktop - Armin is more useful than Token 1
  • Set expiry dates for temporary integrations
  • Revoke immediately when no longer needed
  • Never share tokens — API Tokens carry your personal permissions

The API Tokens page also shows your platform’s MCP connection details — everything an AI assistant needs to connect to CoCoCo:

FieldValue
Endpoint URLhttps://<your-domain>/mcp
TransportStreamable HTTP (JSON mode)
AuthenticationAuthorization: Bearer <your-token>