---
docId: doc_54131d0d47074c8bbc43caa13c2c136e
title: List publications
description: "Lists agent creation, publications and rollbacks, newest first."
api:
  group: agentes/publicacion
  auth: bearer
  operations:
    - operationId: listPublications
      method: GET
      path: '/v1/agents/{agentId}/publications'
      postmanName: Publication history
---

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

# List publications

Check who published each version and when, or choose a version to [roll back](/api-reference/agents/publications/rollback) to. The history shows agent creation, publications and rollbacks, newest first.

## Example

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

```bash
curl "https://api.platic.ai/v1/agents/$AGENT_ID/publications?limit=20" \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

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

```ts
await platic.agents.publications.list("agent_123");
```

</Ways.Way>
</Ways>

## Path parameters

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

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `limit` | integer | Publications per page, from 1 to 100. Defaults to `20` | - |
| `pageToken` | string | The `nextPageToken` from the previous page | - |

## Response

```json
{
  "status": "success",
  "data": [
    {
      "publicationId": "p4",
      "action": "rollback",
      "versionId": "v3",
      "previousVersionId": "v5",
      "createdAt": "2026-10-28T12:40:00.000Z",
      "createdBy": { "kind": "api_key", "keyId": "k3yId" },
      "source": "api",
      "via": null,
      "note": "Go back to the previous version"
    },
    {
      "publicationId": "p3",
      "action": "publish",
      "versionId": "v5",
      "previousVersionId": "v3",
      "createdAt": "2026-10-28T12:30:00.000Z",
      "createdBy": { "kind": "api_key", "keyId": "k3yId" },
      "source": "api",
      "via": null,
      "note": "Shorter answers"
    },
    {
      "publicationId": "p2",
      "action": "publish",
      "versionId": "v3",
      "previousVersionId": "v1",
      "createdAt": "2026-10-28T12:20:00.000Z",
      "createdBy": { "kind": "api_key", "keyId": "k3yId" },
      "source": "api",
      "via": null,
      "note": "Launch"
    },
    {
      "publicationId": "p1",
      "action": "create",
      "versionId": "v1",
      "previousVersionId": null,
      "createdAt": "2026-10-28T12:00:00.000Z",
      "createdBy": { "kind": "api_key", "keyId": "k3yId" },
      "source": "api",
      "via": null,
      "note": "First version"
    }
  ],
  "nextPageToken": null
}
```

## Response fields

| Field | Description |
|-------|-------------|
| `data` | The publications on this page |
| `data[].publicationId` | Publication id |
| `data[].action` | `create` (the agent was published on creation), `publish` or `rollback` |
| `data[].versionId` | Version that ended up published |
| `data[].previousVersionId` | Version that was published before. `null` when the agent is created |
| `data[].createdAt` | Date in ISO 8601 format |
| `data[].createdBy` | Who published it, using the `createdBy` formats listed in [List versions](/api-reference/agents/versions/list#response-fields) |
| `data[].source` | Where it was made from: `app` (the Platica app), `api`, `mcp` (an MCP client) or `assistant` (Platica's assistant) |
| `data[].via` | If a Platica agent made it, that agent's `agentId` and the `conversationId` of the conversation. Otherwise `null` |
| `data[].note` | Publication note. Empty if none was sent |
| `nextPageToken` | Token for the next page. `null` when there are no more |

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | `limit` isn't an integer from 1 to 100 |
| `404` | `AGENT_NOT_FOUND` | The agent doesn't exist in the workspace or was deleted |

## Notes

- To read the next page, repeat the request with `pageToken` set to the `nextPageToken` you received.
- To know only which version is in production right now, use [Get the publication](/api-reference/agents/publications/get).
