Skip to content
Sengi

API endpoint to check a project's GitHub connection

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.

More changes

Keep your workflow. Cut your runner rate.

Sengi Basic starts at $0.001 a minute for 2 vCPU. Choose 4 or 8 vCPU for $0.002 or $0.004 a minute. Premium stays optional at $0.003, $0.006 and $0.012.

Start without a card ↗︎

See Basic pricing · Switch with your coding agent