Manage tokens and explore endpoints from the API page in my.cubepath.com.
Create a token
Open Organization → Tokens and click Create Token:
- Token Name: a label to identify the token (e.g.
Production Server). - Permissions: leave Full access on, or turn it off and pick individual scopes.
- Allowed IPs (optional): comma-separated IPs or CIDR ranges that may use the token. Leave empty to allow any IP.
WarningThe token is shown only once right after creation. Copy it immediately, you won't be able to see it again. If you lose it, delete the token and create a new one.
Authenticate
Send your token with every request using either header:
curl https://api.cubepath.com/projects/ \
-H "Authorization: Bearer YOUR_API_TOKEN"
You can use X-API-Key: YOUR_API_TOKEN instead of the Authorization header.
NoteWrite requests (
POST,PUT,DELETE) also require the headerX-Requested-With: XMLHttpRequest. Send JSON bodies withContent-Type: application/json.
Base URL
All endpoints live under:
https://api.cubepath.com
Revoke a token
Go back to Organization → Tokens and Delete any token to revoke its access immediately.