> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish Eval Agent

> Publish the agent's current draft as a new active version.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Path Parameters

**eval\_agent\_id** `string` *required*

The unique identifier of the eval agent to publish.

> [!NOTE]
>
> Publishing validates the draft before snapshotting it. A graded agent must have between 2 and 5 levels, and every key in `target_level_keys` must match a defined level. A pass/fail agent must have 0 levels and no target level keys set.

### Response

**data.eval\_agent\_id** `string`

ID of the eval agent that was published.

**data.current\_version\_id** `string`

ID of the new editable draft created after publishing.

**data.active\_version\_id** `string`

ID of the newly published (archived) version.

**data.published\_version** `object`

Summary of the version that was published.

**data.published\_version.id** `string`

Unique identifier of the published version.

**data.published\_version.eval\_agent\_id** `string`

ID of the parent eval agent.

**data.published\_version.version\_number** `integer`

Sequential version number of the published version.

**data.published\_version.name** `string`

Name of the published version.

**data.published\_version.state** `string`

Always `"archived"` for a published version.

**data.published\_version.created\_by** `string | null`

Identifier of the user who created this version, or `null`.

**data.published\_version.created\_at** `string`

ISO 8601 timestamp for when this version was created.

**data.published\_version.latest\_run** `object | null`

Summary of the most recent run against this version, or `null` if no runs exist.

```json Response theme={null}
{
  "errors": null,
  "data": {
    "eval_agent_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "current_version_id": "e5f6a7b8-c9d0-1234-efab-567890123456",
    "active_version_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "published_version": {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "eval_agent_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "version_number": 3,
      "name": "Empathy Check v3",
      "state": "archived",
      "created_by": "9a8b7c6d-5e4f-3210-9876-543210fedcba",
      "created_at": "2026-05-15T08:00:00.000Z",
      "latest_run": null
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.