API Reference

Endpoints

The full VectorAxis REST surface, grouped by purpose. Every endpoint lives under /v1, and the paths in the tables below are the full HTTP paths. The management endpoints power the dashboard and let you automate everything it does.

Paths below are the full HTTP paths and include the /v1 prefix, for direct HTTP clients.
OpenAI SDK (inference endpoints): set base_url to https://api.vectoraxis.ai/v1 (with /v1) — the SDK appends the endpoint, so /v1/chat/completions is just client.chat.completions.create(…).
Direct HTTP: use https://api.vectoraxis.ai as the base (without /v1) and request the full path shown, e.g. https://api.vectoraxis.ai/v1/chat/completions.
How each group authenticates. Inference paths take a virtual key (or direct x-provider + x-api-key). Discovery paths are open. Management paths take a Cognito session or a va_ platform key, with role checks per action (see Access Control).
Chat & inference virtual key
MethodPathDescription
POST/v1/chat/completionsOpenAI-compatible chat completion — the main inference endpoint.
POST/v1/prompts/{slug}/completionsRun a managed prompt template as a chat completion.
Discovery no auth
MethodPathDescription
GET/v1/providersThe routable provider ids (only those with a live adapter).
GET/v1/pricingPer-model pricing; accepts ?providers=OPENAI,ANTHROPIC.
Virtual keys management
MethodPathDescription
POST/v1/virtual-keysCreate a key.
GET/v1/virtual-keysList (filter by provider, status, page).
GET/v1/virtual-keys/{slug}Get one key.
PUT/v1/virtual-keys/{slug}Update limits, budgets, allowlists.
DELETE/v1/virtual-keys/{slug}Delete a key.
POST/v1/virtual-keys/{slug}/disableSuspend (→ DISABLED).
POST/v1/virtual-keys/{slug}/enableRestore (→ ACTIVE).
POST/v1/virtual-keys/{slug}/transferMove a key + balance to another workspace.
Prompts management
MethodPathDescription
POST / GET/v1/promptsCreate · list.
GET / PUT / DELETE/v1/prompts/{slug}Get · update · delete.
POST / GET/v1/prompts/{slug}/versionsAdd a version · list versions.
GET/v1/prompts/{slug}/versions/{ref}Fetch a version by number or label.
POST/v1/prompts/{slug}/versions/{n}/publishPublish a version.
POST/v1/prompts/{slug}/versions/{n}/rollbackRoll back to a version.
GET / PUT / DELETE/v1/prompts/{slug}/labels/{label}Manage a moving label.
POST/v1/prompts/{slug}/renderRender with variables (no model call).
POST / GET / DELETE/v1/prompts/{slug}/test-casesManage test cases.
POST/v1/prompts/{slug}/test-cases/runRun the test suite.
GET/v1/prompts/{slug}/analyticsCost/latency by version.
GET/v1/prompts/{slug}/audit-logChange history.
Routing configs & guardrails management
MethodPathDescription
POST / GET/v1/configsCreate · list routing configs.
GET / PUT / DELETE/v1/configs/{slug}Get · update · delete.
POST / GET/v1/guardrailsCreate · list guardrails.
GET / PUT / DELETE/v1/guardrails/{slug}Get · update · delete.
POST/v1/guardrails/{slug}/enableEnable.
POST/v1/guardrails/{slug}/disableDisable.
Observability management
MethodPathDescription
GET/v1/logsPaginated log search with filters.
GET/v1/logs/{id}Single log detail.
GET/v1/analytics/summaryAggregated summary for a scope.
GET/v1/analytics/timeseriesOne metric bucketed over time.
GET/v1/analytics/breakdownGroup-by breakdown.
POST/v1/logs/exportStart an async export job (org admin).
GET/v1/logs/export/{jobId}Poll export status.
GET/v1/logs/export/{jobId}/downloadDownload the finished file.
Documents & media virtual key
MethodPathDescription
POST / GET/v1/filesUpload · list files (vxf-* ids).
GET / DELETE/v1/files/{file_id}Get metadata · delete.
GET/v1/files/{file_id}/contentDownload file content.
POST/v1/audio/transcriptionsSpeech → text.
POST/v1/audio/translationsSpeech → English text.
POST/v1/audio/speechText → speech.
POST/v1/images/generationsGenerate images.
POST/v1/images/editsEdit images.
POST / GET/v1/batchesCreate · list batch jobs.
GET / POST/v1/batches/{id}Get · cancel (/cancel).
POST / GET / DELETE/v1/responsesResponses API (create · get /{id} · delete).
Configuring behaviour on these paths? Every feature is toggled with a request header — no proprietary body fields.