Skip to main content
API keys authenticate requests to AgentVista ingestion and management endpoints. Every key starts with av_ and carries one or more scopes that control what it can access.
When you create a key, AgentVista returns the full key value exactly once. Copy it immediately — it is never shown again. Only a short prefix (e.g. av_a1b2c3d4) is stored and returned in subsequent list responses.

Scopes


List API keys

GET /me/api-keys/ Returns a paginated list of API keys for the authenticated user. The raw key value is never included in list responses.

Query parameters

number
default:"1"
Page number (1-indexed).
number
default:"20"
Number of keys per page.

Response

object[]
Array of API key objects.

Create an API key

POST /me/api-keys/ Creates a new API key and returns the full raw key value. Store it immediately.

Request body

string
A human-readable label to identify this key (e.g. production-ingest). Optional but recommended.
string[]
required
List of scopes to grant. Must contain at least one valid scope. Use ["write"] for ingestion.
string
Organization slug to scope this key to. If omitted, the key is a personal key tied to your user account.

Response — 201

string
UUID of the new key.
string
Label you provided.
string[]
Scopes granted to this key.
string
Short prefix for identification in list views.
boolean
Always true on creation.
string | null
Organization slug or null.
string
ISO 8601 creation timestamp.
string
The full raw API key. Copy this now — it is never returned again.
Example response

Verify a key

GET /me/api-keys/ping/ Verifies that an API key is valid and has read scope. Useful for checking a key works before deploying.

Response — 200

string
Always "ok" when the key is valid and has read scope.

Revoke an API key

DELETE /me/api-keys/{key_id}/ Immediately revokes the key. Any subsequent requests using the revoked key receive 401.

Path parameters

string
required
UUID of the key to revoke.

Response — 204

No body. The key has been revoked.