Git AI
SDK / APIPull Requests

List pull requests for a repository

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

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

domain*string
org*string
repo*string

Query Parameters

limit*integer
offset*integer
number?integer
state?string
aiAided?boolean
userId?array<string>
contributorId?array<string>
openedByUserId?array<string>
primaryAgent?string
primaryModel?string
authorshipCompleteness?string
minAiLines?integer
maxAiLines?integer
minHumanLines?integer
maxHumanLines?integer
openedFrom?string
openedTo?string
mergedFrom?string
mergedTo?string
closedFrom?string
closedTo?string
updatedFrom?string
updatedTo?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/repos/string/string/string/pull-requests?limit=100&offset=0"
{  "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    }  ],  "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"  }}