Create a fine-tuning job
POST
/v1/fine-tuning/jobsVerification always runs after the candidate agent version is generated.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
None.
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| agentId | string | Yes | Agent ID. |
| environmentId | string | No | Computer ID. |
| computerId | string | No | — |
| evaluationSetIds | string[] | Yes | — |
| instructions | string | No | — |
| name | string | No | Human-readable name. |
| metadata | object | No | Free-form metadata object. |
| queueWhenCapacityUnavailable | boolean | No | Persist the optimization request in Batches when runtime capacity is unavailable. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
202Fine-tuning job created or durably deferred to Batchesapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| job | object | Yes | — |
| job.schemaVersion | integer | No | — |
| job.kind | agent_optimization | No | — |
| job.id | string | Yes | Unique identifier. |
| job.name | string | No | Human-readable name. |
| job.agentId | string | Yes | Agent ID. |
| job.targetAgentId | string | No | — |
| job.environmentId | string | No | Computer ID. |
| job.computerId | string | No | — |
| job.evaluationSetIds | string[] | Yes | — |
| job.instructions | string | No | — |
| job.status | planned | queued | running | verifying | completed | failed | cancelled | Yes | Current lifecycle status. |
| job.phase | string | No | — |
| job.threadId | string | No | Thread ID. |
| job.createdAgentVersionId | string | No | — |
| job.beforeScore | number | No | — |
| job.afterScore | number | No | — |
| job.improvementScore | number | No | — |
| job.costUsd | number | No | — |
| job.costCt | number | No | — |
| job.costTokens | number | No | — |
| job.evaluationRuns | object[] | No | — |
| job.metadata | object | No | Free-form metadata object. |
| job.createdAt | string | No | ISO 8601 timestamp. |
| job.updatedAt | string | No | ISO 8601 timestamp. |
| job.completedAt | string | No | ISO 8601 timestamp. |