Skip to main content

REST endpoint index

This index covers customer-facing REST resources. All routes are authenticated unless marked public. Project mutations are owner-only; shared/public model access is resolved on the OpenAI-compatible alias route.

Versioning​

Every customer REST route starts with /api/v1/. Within v1, changes are additive only: new endpoints, new optional request fields, new response fields, so ignore response fields you do not know. A breaking change ships as /api/v2. A retired unversioned path (one without /v1/) answers 410 api_version_required with the path to use in detail.successor and a Link: <successor>; rel="successor-version" header. The OpenAI-compatible routes keep their own path, /api/projects/{owner_slug}/{project_slug}/openai/v1/..., and follow the OpenAI API shape.

Endpoints​

In the table, ... stands for /api/v1/projects/{owner_slug}/{project_slug}.

ResourceEndpoints
AccountGET /api/v1/me, PATCH /api/v1/me/profile, POST /api/v1/me/password, POST /api/v1/me/email/verification, POST /api/v1/me/email, GET /api/v1/me/preferences, PUT /api/v1/me/preferences/product-analytics, PUT /api/v1/me/preferences/advertising; see Authentication
API keysGET /api/v1/keys, POST /api/v1/keys, PATCH /api/v1/keys/{id}/activate, PATCH /api/v1/keys/{id}/deactivate, DELETE /api/v1/keys/{id}
CatalogGET /api/v1/base-models, GET /api/v1/projects/capabilities
ProjectsGET /api/v1/projects, POST /api/v1/projects, GET /api/v1/projects/{owner_slug}/{project_slug}, PUT /api/v1/projects/{owner_slug}/{project_slug}, POST .../archive, POST .../unarchive, GET .../tags
DatasetsGET .../datasets (both project types), POST .../datasets, PUT .../datasets/{dataset_id}, POST .../datasets/{dataset_id}/archive, POST .../datasets/{dataset_id}/unarchive
Training pairsGET .../datasets/{dataset_id}/examples, POST .../datasets/{dataset_id}/examples, PUT .../datasets/{dataset_id}/examples/{example_id}, DELETE .../datasets/{dataset_id}/examples/{example_id}
Dataset tagsGET .../datasets/{dataset_id}/tags, POST .../datasets/{dataset_id}/tags, POST .../datasets/{dataset_id}/examples/tags
ChatsGET .../chats, POST .../chats, POST .../chats/bulk, GET .../chats/{id}, PUT .../chats/{id}, DELETE .../chats/{id}, GET .../chats/categories
ImportsGET .../datasets/limits (default dataset), GET .../datasets/{dataset_id}/limits, POST .../datasets/{dataset_id}/imports, PUT .../imports/{import_id}/content, POST .../imports/{import_id}/profile, POST .../imports/{import_id}/preview, POST .../imports/{import_id}/confirm, GET .../imports, GET .../imports/{import_id}, POST .../imports/{import_id}/cancel
Search feedbackPOST .../datasets/{dataset_id}/retrieval-events, POST .../datasets/{dataset_id}/retrieval-events/batch, GET .../datasets/{dataset_id}/retrieval-events, GET .../datasets/{dataset_id}/retrieval-events/{event_id}, PATCH .../datasets/{dataset_id}/retrieval-events/{event_id} (skip or restore), POST .../datasets/{dataset_id}/retrieval-events/{event_id}/promote, GET .../datasets/{dataset_id}/retrieval-settings (read-only); see Search feedback
TrainingGET .../training-jobs, POST .../training-jobs, GET .../training-jobs/{job_id}, POST .../training-jobs/{job_id}/cancel, POST .../training-jobs/{job_id}/pause, POST .../training-jobs/{job_id}/resume, POST .../training-jobs/{job_id}/finish, POST .../training-jobs/{job_id}/retry, GET .../training-jobs/{job_id}/retry-estimate, GET .../training-jobs/estimate-messages
Embedding trainingGET .../training-jobs/profiles, POST .../training-jobs/preview, POST .../training-jobs/estimate
Training recordsGET .../training-jobs/{job_id}/dataset, GET .../training-jobs/{job_id}/dataset/{chat_id}, GET .../training-jobs/{job_id}/attempts, GET .../training-jobs/{job_id}/attempts/{attempt_id}/logs, GET .../training-jobs/{job_id}/download-metadata, GET .../training-jobs/{job_id}/download
Hosted modelsGET .../models, POST .../models, PUT .../models/{model_slug}, PATCH .../models/{model_slug}, POST .../models/{model_slug}/enable, POST .../models/{model_slug}/disable, GET .../models/{model_slug}/target-compatibility, GET .../models/{model_slug}/download-metadata, GET .../models/{model_slug}/download, GET .../models/{model_slug}/shares, POST .../models/{model_slug}/shares, DELETE .../models/{model_slug}/shares/{share_id}
Playground sessionsGET /api/v1/playground/sessions, POST /api/v1/playground/sessions, GET /api/v1/playground/sessions/{session_id}, PUT /api/v1/playground/sessions/{session_id}, DELETE /api/v1/playground/sessions/{session_id}; see Playground and Search
Embedding playgroundPOST .../playground/embeddings/vector, POST .../playground/embeddings/similarity, and without a project POST /api/v1/playground/embeddings/vector, POST /api/v1/playground/embeddings/similarity
SearchGET .../search/corpora, GET .../search/versions, GET .../search/indexes, POST .../search/indexes, POST .../search/indexes/{index_id}/query, POST .../search/indexes/{index_id}/cancel, DELETE .../search/indexes/{index_id}
InferenceProject-scoped under /api/projects/{owner_slug}/{project_slug}/openai: GET /v1/models, POST /v1/chat/completions, POST /v1/completions, and POST /v1/embeddings
Base-model inferenceThe same four routes under /api/openai, for base models only, with no project; see Base models without a project
PricingPublic GET /api/v1/pricing/platform, GET /api/v1/pricing/models, POST /api/v1/pricing/estimate
Balance and billingGET /api/v1/credits, GET /api/v1/credits/usage, POST /api/v1/credits/checkout, POST /api/v1/credits/checkout/status
Account-wideGET /api/v1/models, GET /api/v1/dashboard, GET /api/v1/activity

Full reference​

The API reference documents every route: its parameters, request body, every response body and the error body, with request examples. The same contract is downloadable as an OpenAPI 3.1 document, in English and Portuguese, for code generators and agents. Agents can also start at the Markdown operation index, which links one standalone file per endpoint and includes its schemas. These guides remain the source for lifecycle, billing, pagination and retry semantics that a schema alone cannot express. Only customer routes are published; operator and internal routes are not part of the API.

Pagination​

List endpoints are cursor-paginated and answer {data, next_cursor, total_count}. limit sets the page size (25 by default and at most 100 on most lists; the API reference gives each list's own bounds). To read the next page, send the next_cursor you received as cursor, with the same filters; a null next_cursor means there are no more pages.

A cursor belongs to the list and filters that produced it. For Search corpora, versions and indexes, cursors belong to the project. Example cursors belong to the dataset and text search. Global model registry cursors belong to the account and registry filters; activity cursors belong to the account and archive filter. Restart from the first page after changing a filter. Reusing a cursor in another scope answers 400; see Invalid cursors for the code each list uses.