Levain LabsLevain Labs
API ReferenceAgents

Get Version Source

Where to clone this version's recipe source from.

Where to clone this version's recipe source from.

Authenticate with a workspace API key as the password (any username). Each version lives on its own branch; only drafts accept pushes. remote is null when this deployment serves no git endpoint — use the version file endpoints instead.

GET
/api/v1/agents/{agent_id}/versions/{version}/source

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

agent_id*Agent Id
version*Version

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/agents/string/versions/0/source"
{
  "remote": "string",
  "branch": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}