Skip to content
Docs
GitHub

Get an agent's GitHub App status

Preview

Show an agent’s own GitHub App: whether it exists, whether it is installed, on which account, and which permissions it lacks.

Public APIEverruns Cloud and self-hosted Platform

GET/v1/agents/{agent_id}/github

See authentication for credentials and permissions.

agent_id
required
string

Prefixed public identifier

Responses

200Success

Success

Media typeapplication/json

GitHub as seen from an agent’s page.

object
account

GitHub account the App is installed on.

string | null
app_created
required

The App exists. Without connected it was never installed, or its installation was removed.

boolean
app_settings_url

The App’s settings page on GitHub, where its logo is uploaded (GitHub has no API for that). None when the owner’s account kind is not known, since user and organization Apps live at different paths.

string | null
app_slug
string | null
app_url
string | null
bot_login

The login GitHub shows for the agent, e.g. pr-summarizer[bot], or the shared App’s (everruns[bot]) when the agent chose it and the deployment names its slug; None otherwise.

string | null
connected
required

An installation is bound, so tools and triggers work: the agent’s own App’s, or a shared Everruns App installation the agent chose.

boolean
everruns_app_installations
required

Shared Everruns App installations an org admin linked, which this agent can choose instead of an App of its own (D3). Empty when none is linked or the deployment has no shared App.

Array<object>

A shared Everruns App installation the org links, as an agent can choose it.

object
account
required

GitHub account the installation is on.

string
account_type

GitHub’s account type: User or Organization, when known.

string | null
connection_id
required

The org link’s connection id; pass it to choose this installation.

string format: uuid
repository_selection

all or selected, when known.

string | null
identity_id

The agent’s identity, once it has one; disconnect goes through it.

string | null
kind

Which GitHub identity the agent acts as: agent_app (its own App) or everruns_app (the shared Everruns App). None before either exists.

string | null
missing_permissions
required

Permissions new Apps request that this installation lacks (name:level), e.g. actions:read for CI triggers on an App created before them. Empty when not connected.

Array<string>
repository_selection

all or selected.

string | null
suggested_owners
required

GitHub accounts this organization already reached, as candidates for owner_org when creating the App: installation accounts of its GitHub connections and owners of its other agents’ Apps. Organizations first, then users, then accounts of unknown kind; by login within each.

Array<object>

A GitHub account a new App could be created in.

object
kind
required

What kind of GitHub account a login is.

string
Allowed values: organization user unknown
login
required
string
view_url

The agent’s GitHub page in the console, so a caller can link to it. Absolute in responses; built as a relative path here because the console’s address is known only where links are decorated.

string | null

Example

{
"bot_login": "pr-summarizer[bot]",
"kind": "agent_app",
"repository_selection": "selected",
"suggested_owners": [
{
"kind": "organization"
}
],
"view_url": "https://app.everruns.com/agents/agent_01933b5a000070008000000000000001/github"
}
404Agent not found

Agent not found