For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList versions for an agent
      • GETGet the published version for an agent
      • GETGet a specific agent version
      • POSTPublish a specific agent version
Dashboard
LogoLogo
Runtype APIAgent Versions

Get a specific agent version

GET
/v1/agent-versions/:agentId/:versionId
GET
/v1/agent-versions/:agentId/:versionId
$curl https://api.runtype.com/v1/agent-versions/agentId/versionId \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "id": "av_9f8b7c6d5e4a3b2c1d0e",
3 "agentId": "agent_1234567890abcdef",
4 "versionNumber": 3,
5 "versionType": "stable",
6 "agentConfig": {
7 "maxTokens": 2048,
8 "temperature": 0.7,
9 "model": "gpt-4",
10 "enableLogging": true
11 },
12 "label": "Release Candidate 3",
13 "notes": "Improved response accuracy and reduced latency.",
14 "createdAt": "2024-06-10T09:15:30Z"
15}
Was this page helpful?
Previous

Publish a specific agent version

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

agentIdstringRequired
versionIdstringRequired

Response

Agent version detail
idstring
agentIdstring
versionNumberinteger
versionTypestring
agentConfigmap from strings to any or null
labelstring or null
notesstring or null
createdAtstring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error