---
docId: doc_93c2a1a49fcb441bbcedd2dbfb8dad96
title: Get the suites on publish
description: "Retrieves the suites that run automatically when an agent is published."
api:
  group: agentes/evals/al-publicar
  auth: bearer
  operations:
    - operationId: getEvalOnPublish
      method: GET
      path: '/v1/agents/{agentId}/evals/on-publish'
      postmanName: Get the suites on publish
---

<script>
  import { Ways } from '$lib/components';
</script>

# Get the suites on publish

Check which [suites](/api-reference/evals) run after the agent is published. To change the `suiteIds` list, use [Choose the suites on publish](/api-reference/evals/on-publish/set). These tests run afterwards and do not block publishing.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl "https://api.platic.ai/v1/agents/$AGENT_ID/evals/on-publish" \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.agents.evals.onPublish.get("agent_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `agentId` | string | Agent ID | ✓ |

## Response

```json
{
  "status": "success",
  "data": {
    "suiteIds": ["s8Kd2LmQ"],
    "updatedAt": "2026-10-31T18:05:52.000Z"
  }
}
```

## Response fields

| Field | Description |
|-------|-------------|
| `suiteIds` | The suites that run on publish. Empty if none is connected. |
| `updatedAt` | Date of the last change, ISO 8601. |

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `404` | `AGENT_NOT_FOUND` | The agent does not exist or belongs to another workspace. |

## Notes

- If it was never changed: `suiteIds: []` and `updatedAt: null`.
- This list belongs to the agent, but it is not part of its versions: it changes immediately, without publishing. To change it, use [Choose the suites on publish](/api-reference/evals/on-publish/set).
- Read access to the agent is enough.
