https://<project-ref>.supabase.co/functions/v1/gateway-proxy
Required scope: gateway
URL structure
| Segment | Values |
|---|---|
{tool} | github, linear |
{path} | The tool API path, e.g. /repos/owner/repo/pulls |
Request headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer agk_... |
X-Agent-Id | Recommended | Agent identifier, recorded in audit logs and approval requests |
Content-Type | Yes (for writes) | application/json |
Forward a GitHub action
Success response (allow)
When the action is allowed, the response body is the tool API response directly. Sentrail adds three headers:Blocked response
Approval required response
Polling status
Poll for the decision using the correlation ID:Status codes
| Code | Meaning |
|---|---|
200 | Action forwarded (body is tool API response) |
202 | Action deferred for approval |
400 | Bad request — unsupported tool, missing path, body too large |
401 | Invalid or expired API key, or missing gateway scope |
403 | Action blocked by policy |
405 | Method not allowed |
500 | Internal error — gateway proxy failure or deferred execution failure |