List publications
SDK platic.agents.publications.list()
Check who published each version and when, or choose a version to roll back to. The history shows agent creation, publications and rollbacks, newest first.
Example
curl "https://api.platic.ai/v1/agents/$AGENT_ID/publications?limit=20" \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.agents.publications.list("agent_123"); 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
{
"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 |
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
pageTokenset to thenextPageTokenyou received. - To know only which version is in production right now, use Get the publication.