# API endpoint to check a project's GitHub connection

Source: https://sengi.run/changelog/2026-11-17-api-endpoint-to-check-a-projects-github-connection

By Sengi · Published Nov 17, 2026

## What changed?

The API has a new endpoint that shows whether a repository is connected to Sengi and why its jobs would be refused, so a coding agent can check without asking a person. The Sengi agent prompt now uses it.

## Details

The endpoint is GET /project/:id/github/status. For each GitHub installation it reports its state, when it was last verified and the repository selection. For each repository it reports access, approval and disabled state, and a refusal reason when jobs for that repository would be refused. Unfinished connection attempts are listed too. The token needs the Project:github permission.

When you give a coding agent a Sengi token and project id, the agent prompt makes one status request and explains the answer: connected, waiting for a re-check, waiting for an organization owner to approve on GitHub, repository turned off, or runners stopped for the project. Without a token nothing changes and the agent asks you to confirm the connection.

## Related pages

- [Sengi docs](https://sengi.run/docs)
- [Troubleshooting](https://sengi.run/docs/troubleshooting)
- [Switch with your coding agent](https://sengi.run/agent)

## More changes

- Next: [Banner when GitHub Actions or Webhooks is having trouble](https://sengi.run/changelog/2026-11-17-banner-when-github-actions-or-webhooks-is-having-trouble) (Nov 17, 2026)
- Previous: [Account owners get an email when an account is suspended](https://sengi.run/changelog/2026-11-17-account-owners-get-an-email-when-an-account-is-suspended) (Nov 17, 2026)
- [All changes in the Sengi changelog](https://sengi.run/changelog)
