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
curl "https://api.platic.ai/v1/agents?limit=20" \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.agents.list(); Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
limit | integer | Agents per page, from 1 to 100. Defaults to 20 | - |
pageToken | string | The nextPageToken from the previous page | - |
workspace | string | Only 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
| Field | Description |
|---|---|
data | Agents on this page, each with the fields from Get an agent |
nextPageToken | Token for the next page. null when there are no more |
Notes
- To read the next page, repeat the request with
pageTokenset to thenextPageTokenyou received. See Pagination. - A page can contain fewer than
limitagents and still have a next page. Keep reading whilenextPageTokenis notnull. The SDK’splatic.agents.iterate()handles this automatically. - Deleted agents don't appear.