List agents

SDK platic.agents.list()

Find a workspace agent and use its id to read or edit it. The list shows newest agents first and indicates which have unpublished changes.

Example

await platic.agents.list();

Query parameters

ParameterTypeDescriptionRequired
limitintegerAgents per page, from 1 to 100. Defaults to 20-
pageTokenstringThe nextPageToken from the previous page-
workspacestringOnly if the credential has access to several workspaces-

Response

{
  "status": "success",
  "data": [
    {
      "id": "Xq8mTe2LwP4kZ1aB9cDf",
      "name": "Sales",
      "imageUrl": "/images/agents/avatars/p12.jpg",
      "status": "active",
      "owners": ["ana@acme.com"],
      "draft": { "versionId": "v4", "number": 4 },
      "publication": { "versionId": "v3", "number": 3 },
      "hasUnpublishedChanges": true,
      "createdAt": "2026-10-28T12:00:00.000Z"
    }
  ],
  "nextPageToken": null
}

Response fields

FieldDescription
dataAgents on this page, each with the fields from Get an agent
nextPageTokenToken for the next page. null when there are no more

Notes

  • To read the next page, repeat the request with pageToken set to the nextPageToken you received. See Pagination.
  • A page can contain fewer than limit agents and still have a next page. Keep reading while nextPageToken is not null. The SDK’s platic.agents.iterate() handles this automatically.
  • Deleted agents don't appear.