API ReferenceAgents
Build Version
Launch the build recipe against an agent version.
The customer's prompt is passed to the build recipe as plan_text — the builder
node uses it as the task description. Returns a run_id the caller can poll or
send follow-up messages to.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Path Parameters
agent_id*string
version*integer
Header Parameters
X-API-Key?|
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.levainlabs.com/api/v1/agents/string/versions/0/build" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string" }'{
"run_id": "string",
"agent_id": "string",
"version": 0,
"status": "string",
"created_at": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}