API ReferenceAgents
Create Agent Git Credential
Mint a short-lived credential for an agent's source repository.
Mint a short-lived credential for an agent's source repository.
The version-scoped variant is friendlier when you already know which version you want, since it also tells you the branch. This one exists for git credential helpers, which only ever learn the repository from the URL they were asked for.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Path Parameters
agent_id*Agent Id
Header Parameters
X-API-Key?string|null
Response Body
application/json
application/json
curl -X POST "https://api.levainlabs.com/api/v1/agents/string/git-credential"{
"username": "string",
"password": "string",
"expires_at": "string",
"remote": "string",
"branch": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}