Get a version
SDK platic.agents.versions.get()
Read a version’s complete configuration, whether it is published or not. Send the versionId you want to inspect; to edit it later, restore it to the draft.
Example
curl https://api.platic.ai/v1/agents/$AGENT_ID/versions/v3 \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.agents.versions.get("agent_123", "v3"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
agentId | string | Agent id | ✓ |
versionId | string | Version id, for example v5 | ✓ |
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",
"config": {
"instructions": "You are the sales assistant for Acme Store. Answer in under 80 words."
}
}
} The example shows only one section; config includes all 15 in full.
Response fields
The fields of each version in List versions, plus:
| Field | Description |
|---|---|
config | The complete configuration of that version. instructions is a string |
Errors
| Status | details.code | When |
|---|---|---|
404 | AGENT_NOT_FOUND | The agent doesn't exist in the workspace or was deleted |
404 | VERSION_NOT_FOUND | That version doesn't exist on that agent |
{
"code": 404,
"error": "Not Found - The resource doesn't exist",
"details": {
"code": "VERSION_NOT_FOUND",
"message": "Version v9 of agent Xq8mTe2LwP4kZ1aB9cDf not found"
}
} Notes
- To know which version is the draft and which is published, use Get an agent.
- A version isn't edited. To start from it, restore it into the draft.