Agents
Link to GitHub
POST /v1/agents/{agent_id}/link- Permission
write:configs- Tokens
- API key, CLI user token
Open a pull request containing the definition. Git takes ownership when that pull request merges and syncs.
Path parameters
agent_idstringrequired
{
"path": str,
"repository": str
}
{
"path": str,
"pull_request_url": str
}
Request
pathstring
File path within the repo. Omit for the default .ellipsis/agents/<slug>.yaml; if set it must be a location the sync scans (a .yaml/.yml file under .ellipsis/ at any depth; in the repository named .ellipsis the repo root is that directory).
repositorystringrequired
Repository name within the caller's account; the owner is always the account, so pass a bare name (e.g. "my-service"), not "owner/my-service".
Response
agentAgentrequired
The agent, still managed through the API until the pull request merges.
pathstringrequired
The file path the definition will be written to.
pull_request_urlstringrequired
The pull request that adds the file. The agent becomes managed by that file once it merges.