リファレンスHTTP APIGit Hub work

Read why GitHub work of the session was refused lately

GET
/v1/sessions/{id}/github/refusals

The session's latest refusals by the GitHub gate, newest first, at most 10: each refused clone, push, pull request, Actions call, review or merge leaves a failed receipt (mint_github_token, dispatch_workflow, rerun_workflow, review_pull_request or merge_pull_request), and this lists its receipt_id, operation, purpose and reason_code (a GITHUB_REFUSED reason such as github_disabled or repository_not_allowed). GitHub's own refusals of a call it received are not listed: they are the work's own receipt. Reading changes nothing.

Scope: sessions:read (API key or cookie session).

Authorization

headerAuthorizationBearer <token>

For servers and scripts: an API key sent as an HTTP bearer token, Bearer <key>. It holds exactly the scopes it was issued with; a key issued before scopes existed holds none. It never needs the CSRF header, and it cannot manage agents, members, teams or API keys. Issue one in the web console under Settings → API keys; each operation names the scope it needs.

Scope: sessions:read

Path Parameters

id*string

The session's id.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The refusals, newest first.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://example.com/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/github/refusals'
Example Response
{  "items": [    {      "receipt_id": "c4a1e9d2-7b3f-4e8a-a6c5-1d2e3f4a5b6c",      "operation": "mint_github_token",      "purpose": "push",      "reason_code": "github_disabled",      "created_at": "2026-10-30T09:12:44.000Z"    }  ]}