Overview
- Base URL:
https://app.alvahq.com/api/v1 - Format: JSON request and response bodies
- Authentication: Bearer token (API keys)
- Rate limit: 100 requests per minute per API key
- Specification: OpenAPI 3.1
Authentication
Every request needs an API key, sent as a Bearer token. Admins create keys in Settings → Developer.API key format
Keys follow the formatalva_sk_ followed by 32 hexadecimal characters.
The full key is shown once, when you create it. Store it securely — it can’t be retrieved later.
What a key can do
A key never grants more than the person who created it can do in Alva. On every request, Alva checks the creator’s current permissions on the account as well as the key’s scopes:- If the creator has since become read-only on the account, write requests return
403. - If the creator no longer has access to the account, the key stops working.
- When creating a key, you can only choose scopes you’re allowed to perform yourself; the others are shown but disabled.
Scopes
Paths
Lists and creates use the plural path (for example/api/v1/companies). Operations on one existing record use the singular path with the record’s id (for example /api/v1/company/:id).
A create sent to the singular path without an id (for example POST /api/v1/company) also works. A GET, PATCH, or DELETE on a singular path without an id returns 404.
The endpoint pages on this tab are generated from the live specification at https://app.alvahq.com/api/v1/openapi. That is the same document as the API Console in Alva. When the API changes in production, these pages change with the next docs deploy. They include account members, company tags, and assigning a company to a BDR agent.
Pagination and sorting
List endpoints take:page— page number (default1)limit— items per page (default25, maximum100)sort— field and direction, for examplesort=createdAt:desc
Errors
Errors share one format:422 with a details entry for each field that failed.
Rate limiting
Every response includes rate limit headers:
If you go over the limit, you receive
429 Too Many Requests with a Retry-After header.
Managing API keys
Go to Settings → Developer (admin only) to:- Create keys with a name, the scopes you need, and an optional expiry date
- See active keys with their prefix, scopes, and when they were last used
- Revoke keys you no longer need
API Console
The interactive API Console at app.alvahq.com/developers/api-reference documents every endpoint and lets you send test requests. You can also open it from API Console in Settings → Developer.- Anyone can read the documentation. To send a test request without signing in, paste a full API key.
- Signed in, you pick one of your existing keys instead of pasting it. Test requests run with that key’s scopes and your permissions, and the key itself is never shown in the console.