Git AI
SDK / APIPull Requests

Get pull request details

GET
/repos/{domain}/{org}/{repo}/pull-requests/{number}

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

domain*string
org*string
repo*string
number*integer

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/repos/string/string/string/pull-requests/1"
{  "object": "response",  "data": {    "object": "pull_request",    "number": -9007199254740991,    "title": "string",    "state": "open",    "repository": {      "object": "repository",      "url": "string",      "domain": "string",      "org": "string",      "name": "string"    },    "opener": {      "object": "contributor",      "userId": "string",      "email": "string",      "displayName": "string",      "topAgent": "string",      "topModel": "string",      "lastActiveAt": "2019-08-24T14:15:22Z"    },    "openedAt": "2019-08-24T14:15:22Z",    "mergedAt": "2019-08-24T14:15:22Z",    "closedAt": "2019-08-24T14:15:22Z",    "aiAided": true,    "percentAi": 0,    "aiLines": 0,    "humanLines": 0,    "unknownLines": 0,    "gitLinesAdded": 0,    "gitLinesDeleted": 0,    "primaryAgent": "string",    "primaryModel": "string",    "authorshipCompleteness": "full",    "commitCount": 0,    "sessionCount": 0,    "cost": {      "totals": {        "inputTokens": 0,        "outputTokens": 0,        "cachedReadTokens": 0,        "cachedWriteTokens": 0,        "reasoningTokens": 0,        "totalTokens": 0,        "estimatedCostUsd": 0      },      "sessionCount": 0,      "sessionsWithCost": 0,      "completeness": 0    }  },  "meta": {    "requestId": "string",    "pagination": {      "limit": 1,      "offset": 0,      "total": 0,      "hasMore": true,      "nextOffset": 0    }  }}
{  "object": "error",  "error": {    "code": "invalid_request",    "message": "string",    "details": null  },  "meta": {    "requestId": "string"  }}
{  "object": "error",  "error": {    "code": "invalid_request",    "message": "string",    "details": null  },  "meta": {    "requestId": "string"  }}
{  "object": "error",  "error": {    "code": "invalid_request",    "message": "string",    "details": null  },  "meta": {    "requestId": "string"  }}