Connect an agent to GitHub through its own App
PreviewStart 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).
/v1/agents/{agent_id}/github/connectSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Where a new App is created and where the browser lands afterwards.
object
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.
UI path to return to when the flow ends.
Example generated
{ "owner_org": "example", "return_to": "example"}Responses
200Success
Success
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
The App exists; open url in a browser to install it or change which
repositories it can reach.
object
Example
{ "kind": "create_app"}404Agent not found
Agent not found