DocsAPI reference
Authentication
Every request to /v1 carries an API key that belongs to an account. The key spends that account's credits and nothing else.
Keys#
Keys are created on the dashboard, under Keys, or from the docs home once you are signed in. A key starts with kred_sk_ and is 42 characters long. It is shown exactly once, when it is created: Velaron.AI stores only a SHA-256 hash of it, so nobody, including us, can read it back later.
- An account can hold up to 5 active keys. One per tool is a good habit, so a leak in one place never takes the others down.
- Revoking a key takes effect on the very next request.
- A key sees only what it needs to spend: its account's balance, holds and usage. Never the account's other keys or its purchases.
Sending the key#
Send it as a bearer token. Every /v1 endpoint also accepts it in x-api-key, which is what Anthropic SDKs send, so both of these work everywhere:
Authorization: Bearer sk_…
# or, as Anthropic clients do
x-api-key: sk_…https://velaron.ai/v1Managing keys from your own code#
Keys are managed with the browser session, not with another key. These two routes are what the dashboard calls; they need the signed-in session cookie.
POST/api/keyssession cookie
- name
A label for the key, trimmed to 40 characters. Defaults to
My keywhen empty.
Answers 201 with { "id", "key", "prefix", "name" }. The key field is the only time the full key is returned. A sixth key answers 409 with You can have at most 5 active keys. Revoke one first.
DELETE/api/keys/{id}session cookie
Answers { "ok": true }, or 404 when the id is unknown, belongs to another account or is already revoked. The list of active keys comes back with GET /api/account.
Wrong or missing key#
{
"error": {
"message": "Invalid or revoked API key. Create one on your Velaron.AI dashboard.",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}