Authentication
The Ycode API uses Bearer token authentication. Every request must include a valid API token in the Authorization header.
Creating an API token
- Navigate to your project settings in Ycode
- Click on the API Tokens tab
- Click Add API token to generate a new token
- Assign a name to the token for easy identification
Using the token
Include the token in the Authorization header of every API request:
curl https://app.ycode.com/api/v1/collections \
-H "Authorization: Bearer YOUR_API_TOKEN"Managing tokens
To edit, pause, or remove a token, go to the API Tokens page in your project settings and click the three-dot menu next to the relevant token.
Available actions:
- Edit — rename the token
- Pause — temporarily disable the token without deleting it
- Remove — permanently revoke the token
Keep your tokens secure
Do not share API tokens with unauthorized third parties. Treat them like passwords — if a token is compromised, remove it immediately and generate a new one.
Last updated on