Authentication
The Galadriel API uses API tokens for authentication. Include your token in the Authorization header:
Getting an API Token
- Sign up at https://app.galadriel.com
- Navigate to Settings → API Tokens
- Click “Create Token”
- Copy and securely store your token
Keep your API token secure. Do not share it or commit it to version control.
Example Request
Token Permissions
Tokens can have different permission scopes:
Rotating Tokens
For security, rotate your tokens regularly:
- Create a new token
- Update your application to use the new token
- Delete the old token
Tokens are prefixed with gal_ followed by a random string:
Unauthorized Responses
If authentication fails, you’ll receive a 401 response:
Common causes:
- Missing
Authorization header
- Invalid token format
- Expired or revoked token
- Insufficient permissions for the requested operation