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

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

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent id✓

Query parameters

ParameterTypeDescriptionRequired
limitintegerPublications per page, from 1 to 100. Defaults to 20-
pageTokenstringThe 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

FieldDescription
dataThe publications on this page
data[].publicationIdPublication id
data[].actioncreate (the agent was published on creation), publish or rollback
data[].versionIdVersion that ended up published
data[].previousVersionIdVersion that was published before. null when the agent is created
data[].createdAtDate in ISO 8601 format
data[].createdByWho published it, using the createdBy formats listed in List versions
data[].sourceWhere it was made from: app (the Platica app), api, mcp (an MCP client) or assistant (Platica's assistant)
data[].viaIf a Platica agent made it, that agent's agentId and the conversationId of the conversation. Otherwise null
data[].notePublication note. Empty if none was sent
nextPageTokenToken for the next page. null when there are no more

Errors

Statusdetails.codeWhen
400INVALID_REQUESTlimit isn't an integer from 1 to 100
404AGENT_NOT_FOUNDThe 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.