Esta página ainda não foi traduzida. Você está lendo a versão em inglês.
List versions TypeScript REST API
SDK platic.agents.versions.list ()
Find who changed the agent or choose a version to restore or publish . Versions appear newest first. Each change saved to the draft creates a version that cannot be modified.
Example TypeScript REST API
curl " https://api.platic.ai/v1/agents/ $AGENT_ID /versions?limit=20 " \
-H " Authorization : Bearer $PLATIC_API_KEY "
await platic.agents.versions. list ( "agent_123" );
Path parameters Parameter Type Description Required agentIdstring Agent id ✓
Query parameters Parameter Type Description Required limitinteger Versions per page, from 1 to 100. Defaults to 20 - pageTokenstring The nextPageToken from the previous page -
Response {
"status" : "success" ,
"data" : [
{
"versionId" : "v5" ,
"number" : 5 ,
"basedOnVersionId" : "v4" ,
"restoredFromVersionId" : null ,
"copiedFrom" : null ,
"createdAt" : "2026-10-28T12:05:00.000Z" ,
"createdBy" : { "kind" : "user" , "email" : "ana@acme.com" },
"source" : "mcp" ,
"via" : null ,
"note" : "Shorter answers"
}
],
"nextPageToken" : "eyJuIjo0fQ"
}
Response fields Field Description dataThe versions on this page, without their configuration data[].versionIdVersion id, for example v5 data[].numberVersion number data[].basedOnVersionIdVersion it was saved on top of. null if there isn't one data[].restoredFromVersionIdIf the version is a restore , the version it copied. Otherwise null data[].copiedFromIf the version comes from copying an agent , the source agentId and versionId. Otherwise null data[].createdAtCreation date in ISO 8601 format data[].createdByWho made it. See the table below data[].sourceHow it was created: 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[].noteVersion note. Empty if none was sent nextPageTokenToken for the next page. null when there are no more
Shapes of createdBy:
kindFields Who useremailA person, from the app or from an app connected with OAuth. email is null when it isn't known api_keykeyIdAn API key agentagentIdA Platica agent
To see which sections a version changed, compare it with the previous one in Compare versions .
Errors Status details.codeWhen 400INVALID_REQUESTlimit isn't an integer from 1 to 100404AGENT_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. The list does not include each version’s configuration. To read it, use Get a version ; to see what changed between two, Compare versions .