Skip to main content

Authentication

The Galadriel API uses API tokens for authentication. Include your token in the Authorization header:

Getting an API Token

  1. Sign up at https://app.galadriel.com
  2. Navigate to Settings → API Tokens
  3. Click “Create Token”
  4. 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:
  1. Create a new token
  2. Update your application to use the new token
  3. Delete the old token

API Token Format

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