Record an agent's Git repository
PUT
Records the repository's https address, the branch and, for a private repository, the connection that holds the credential (from your Connections). The address may not carry a user name or token; they go in the connection, never in this record. Nothing is cloned or pushed by this call.
Requires an API key with the workspace:write scope.
apiKeyheader
AuthorizationBearer <token>A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.
id*stringThe agent id.
application/json- body
repoUrl*stringThe repository's https address, for example https://github.com/acme/agent.
Length
length <= 500branch?stringThe branch. Default main.
Length
1 <= length <= 255Default
"main"connectionId?|The connection that holds the Git credential, or null for a public repository.
Format
uuidDefault
nullThe repository recorded
application/json- response
git*|nullcurl -X PUT "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/git" \ -H "Authorization: Bearer $VOICELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "repoUrl": "https://example.com/acme/agent", "branch": "main", "connectionId": null }'Example Response
{ "git": { "repoUrl": "https://github.com/acme/agent", "branch": "main", "connectionId": null, "connectionMissing": false, "updatedAt": "2026-10-20T15:04:05.000Z", "updatedBy": "user_2abc" }}