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

await platic.agents.versions.get("agent_123", "v3");

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent id✓
versionIdstringVersion 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:

FieldDescription
configThe complete configuration of that version. instructions is a string

Errors

Statusdetails.codeWhen
404AGENT_NOT_FOUNDThe agent doesn't exist in the workspace or was deleted
404VERSION_NOT_FOUNDThat 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.