Skip to content
Docs
GitHub

Connect an agent to GitHub through its own App

Preview

Start connecting an agent to GitHub through its own GitHub App. Returns install with a URL to open in a browser when the App exists, or create_app when GitHub must first create it, which needs the web UI (Agent > Integrations > Connect GitHub).

Public APIEverruns Cloud and self-hosted Platform

POST/v1/agents/{agent_id}/github/connect

See authentication for credentials and permissions.

agent_id
required
string

Prefixed public identifier

Media typeapplication/json

Where a new App is created and where the browser lands afterwards.

object
owner_org

GitHub organization that should own a new App. Omit for the personal account of whoever confirms it on GitHub. A private App can only be installed on the account that owns it.

string | null
return_to

UI path to return to when the flow ends.

string | null

Example generated

{
"owner_org": "example",
"return_to": "example"
}

Responses

200Success

Success

Media typeapplication/json
One of:

GitHub must create the App first. A browser posts manifest as the manifest form field to action (a top-level navigation, so GitHub’s confirmation page is shown). Outside a browser, follow next_step.

object
action
required
string
kind
required
string
Allowed values: create_app
manifest
required
string
next_step
required
string

Example

{
"kind": "create_app"
}
404Agent not found

Agent not found