Get the publication

SDK platic.agents.publication.get()

Check which version is answering your contacts and who published it. Use publication.versionId to read its configuration. Each incoming message uses the version published when it arrives.

Example

await platic.agents.publication.get("agent_123");

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent id✓

Response

{
  "status": "success",
  "data": {
    "agentId": "Xq8mTe2LwP4kZ1aB9cDf",
    "publication": { "versionId": "v3", "number": 3 },
    "last": {
      "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"
    }
  }
}

Response fields

FieldDescription
agentIdAgent id
publication.versionIdPublished version, for example v3
publication.numberNumber of that version
lastThe last publication, with the fields of each entry in the publication history

Errors

Statusdetails.codeWhen
404AGENT_NOT_FOUNDThe agent doesn't exist in the workspace or was deleted

Notes