Skip to content
Docs

Documentation

Authentication

Authenticate with Raywake API keys, choose scopes and expiry, revoke access and keep credentials safe in your server-side integration.

Send your key as a bearer token on every request.

Header
Authorization: Bearer $RAYWAKE_API_KEY

Permissions

Each key carries only the permissions you chose when you created it. A request outside them returns 403.

Key permissions
NameTypeDescription
models:readpermission
List models, read schemas and pricing.
generatepermission
Create quotes and start paid generations.
jobs:readpermission
Read generation status, results and history.
wallet:readpermission
Read available, reserved and owed credits.

Keep keys server-side

When you create a key, choose 30 days, 90 days, 1 year or no expiry. You can revoke any key at any time. An expired or revoked key cannot authenticate requests.

Keys spend your credits. Never ship them in browser or mobile code; call the API from your server. A new key is shown once — if it leaks, revoke it on the API keys page and create another.

Next: Quotes and credits →