Authorization header:
Creating keys
1
Open key settings
Go to app.rav.chat → Settings → API Keys.
2
Create and copy the secret
The full secret is shown exactly once at creation. Store it immediately — afterwards only the prefix and last four characters are displayed.
Project binding
By default every new key is project-scoped: bound to one RavChat project, able to see and touch only that project’s sessions and files. If you don’t pick a project at creation, RavChat creates a dedicated API project for the key on first use. You may explicitly create an owner-wide key that can reach all projects you own. A key can never reach another user’s resources under any configuration.Requests that reference a resource outside the key’s binding receive 404 — the same response as for a resource that doesn’t exist. Existence is never disclosed across scope boundaries.
Scopes
Each key carries a scope list, checked on every endpoint.
Default scopes on new keys:
models:read, chat:write, sessions:write, files:read, files:write, projects:read.
An operation on a visible resource without the required scope returns 403. A resource outside the key’s project binding returns 404.