Projects and tasks
Studio calls the unit you optimize a project. The Management API and trace attributes use the name task for the same resource:- API paths start with
/tasks/{alias}, wherealiasis the proxy model name shown in Studio. - Dataset queries filter by
task_version, which is the project version. - Error messages refer to tasks, for example
Task 'missing' not found in entity 'your-team'.
project and project_mode when you create a project.
Model references
Management request fields use the following format:Asynchronous operations
202 Accepted means that the desired state or background work was stored, not that it’s already serving or complete. Poll the returned resource:
- Provider and routing deployment status must become
appliedat the current revision. - Datasets become
readyorfailed. - Relabel runs become
completed,failed, orstale. - Fine-tunes become
deployedorfailed. - Evaluations expose live case counts and might complete with failed cases.
Errors
Management API errors use the following format:400 Bad Request for malformed JSON or query values, or 422 Unprocessable Entity for a body that doesn’t satisfy its schema. Conflicts such as referenced-provider deletion return 409 Conflict.
Pagination
Dataset entries use page-based pagination:limit can be from 1 to 200. The response includes page, limit, total, and entries.
Entry filters and evaluation sorting are JSON-encoded query parameters. When you construct requests, URL-encode the serialized JSON.
Create and replace behavior
Management write operations differ in whether a repeated request is safe. To retry safely, know which calls replace state and which create new resources:PUT /providers/{name}creates or rotates a provider.PUT /tasks/{alias}creates a project and returns a conflict if the project already exists.- Routing
PUTreplaces all targets for that version. - Dataset, fine-tune, and evaluation
POSTrequests create new resources and might consume compute.
API: Safe request handling
API: Safe request handling
Use the Management OpenAPI specification as the source of truth for methods, paths, schemas, and status codes. When an agent calls the API, it should do the following:
- Resolve every placeholder from user-provided or previously returned values.
- Show the user any request that starts paid compute or replaces routing.
- Treat
202 Acceptedas the beginning of work and poll the documented resource. - Preserve returned resource IDs instead of rediscovering resources by name.
- Stop on an unexpected status rather than automatically retrying a create operation.