Get file patch
get
https://api.intelig.ai/api/v1/intelig/commits/files/{fileChangeId}/patch
Auth: Authorization: ApiKey <key> (an API key sent as
Bearer is rejected) or Authorization: Bearer <jwt>
for a dashboard session. operationId: getFilePatch
Fetch the diff patch for a specific file change on-demand from GitHub. Returns the raw patch content. If the patch cannot be fetched, returns an empty string rather than an error.
Example request
curl -X GET "https://api.intelig.ai/api/v1/intelig/commits/files/1/patch" \
-H "Authorization: ApiKey $INTELIG_API_KEY" Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
fileChangeId | integer (int64) | yes | File Change ID |
Response 200
application/json · ApiResponseMapStringString
| Field | Type | Description |
|---|---|---|
success | boolean | — |
message | string | — |
data | object | — |
Status codes
200— File patch returned (may be empty if unavailable)401— Unauthorized - invalid or missing JWT token429— —
Every response is wrapped in { success, message, data }. A 4xx means the request
is wrong — do not retry it unchanged. A 429 carries Retry-After in seconds.