Skip to content
Docs
GitHub

Get Agent source status

Preview

Show the Agent’s continuous GitHub source binding and sync status.

Public APIEverruns Cloud and self-hosted Platform

GET/v1/agents/{agent_id}/source

See authentication for credentials and permissions.

agent_id
required
string

Prefixed public identifier

Responses

200Success

Success

Media typeapplication/json
One of:

Continuous GitHub source binding, applied revision and reconciliation status.

object
applied_commit

Last successfully applied commit; retained when a later revision fails.

string | null
branch
required

Branch monitored for source updates.

string
error

Safe diagnostic for the latest failed check, without upstream credentials.

string | null
generation
required

Binding generation used to detect a concurrent reconnect or disconnect.

string format: uuid
github_account
required

GitHub account the source reads through: personal, organization, or agent for a binding made before sync stopped using the Agent’s identity.

string
last_checked_at

UTC time when the source was last checked.

string | null format: date-time
last_synced_at

UTC time when a source revision was last applied successfully.

string | null format: date-time
local_dirty
required

Local edits are waiting for GitHub synchronization.

boolean
managed_channels
required

Package channel names whose configuration is managed by the source.

Array<string>
mode
required

Direction of synchronization: pull or two_way.

string
path
required

Repository-relative package folder or manifest; empty means the root.

string
repository
required

Selected GitHub repository in owner/name form.

string
status
required

Current reconciliation state, including conflict when both sides changed.

string

Example

{
"applied_commit": "0123456789abcdef0123456789abcdef01234567",
"branch": "main",
"error": "Source package validation failed: missing capability",
"generation": "018f30c8-c970-7cb5-a8c9-9348aa71ba8c",
"github_account": "organization",
"last_checked_at": "2026-10-23T12:00:00Z",
"last_synced_at": "2026-10-23T12:00:00Z",
"local_dirty": false,
"managed_channels": [
"chat"
],
"mode": "two_way",
"path": "agents/support",
"repository": "acme/agents",
"status": "synced"
}