Get the publication TypeScript REST API
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 TypeScript REST API
curl https://api.platic.ai/v1/agents/ $AGENT_ID /publication \
-H " Authorization : Bearer $PLATIC_API_KEY "
await platic.agents.publication. get ( "agent_123" );
Path parameters Parameter Type Description Required agentIdstring Agent 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 Field Description 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 Status details.codeWhen 404AGENT_NOT_FOUNDThe agent doesn't exist in the workspace or was deleted
Notes