List Prompt Pull Requests
(v2)GET
Lists the pull requests of the prompt one page at a time, newest first, optionally filtered by status, source branch or title. Each pull request is returned in brief; retrieve it by id for its description and merge details. Branches are referenced by id, which the prompt's branches list supplies.
curl -X GET "https://api.confident-ai.com/v2/prompts/{promptId}/pull-requests" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"pullRequests": [
{
"id": "<PULL-REQUEST-ID>",
"title": "Tighten the support tone",
"status": "OPEN",
"sourceBranchId": "<SOURCE-BRANCH-ID>",
"targetBranchId": "<TARGET-BRANCH-ID>",
"createdBy": {
"id": "<USER-ID>",
"email": "jane@acme.com",
"name": "Jane Doe",
"image": null
},
"createdAt": "2026-05-28T13:05:24.777Z",
"mergedAt": null
}
],
"totalPullRequests": 4,
"page": 1,
"pageSize": 25
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
promptIdstringRequiredThe unique id of the prompt.
Query parameters
pageintegerdefault: 1The page of pull requests to return. Defaults to 1.
pageSizeintegerdefault: 25The number of pull requests per page, at most 100. Defaults to 25.
statusenumOnly return pull requests in this status.
sourceBranchIdstringOnly return pull requests opened from this branch id.
searchTermstringOnly return pull requests whose title contains this text, ignoring case.
Response
List Prompt Pull Requests succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of a prompt's pull requests, with the total across all pages.
Show 4 propertiesHide 4 properties
pullRequestslist of objectsThe prompt's pull requests for the current page, newest first.
Show 8 propertiesHide 8 properties
idstringThe unique id of the pull request.
titlestringThe title of the pull request.
statusenumWhere a pull request stands:
OPENwhile it awaits a decision,MERGEDonce its changes landed on the target branch, orCLOSEDwhen it was dropped without merging.Show 3 enum valuesHide 3 enum values
OPENMERGEDCLOSED
sourceBranchIdstringThe id of the branch whose changes are proposed.
targetBranchIdstringThe id of the branch the changes would be merged into.
createdByobjectThe user who opened the pull request.
Show 4 propertiesHide 4 properties
idstringThis is the id of the user.
emailstringThis is the email address of the user.
namestring | nullThis is the display name of the user, or
nullwhen they have not set one.imagestring | nullThis is the URL of the user's avatar, or
nullwhen they have none.
createdAtstringWhen the pull request was opened, as an ISO 8601 timestamp.
mergedAtstring | nullWhen the pull request was merged, as an ISO 8601 timestamp, or
nullwhile it has not been merged.
totalPullRequestsintegerThe total number of pull requests matching the filters, across every page.
pageintegerThe page this response covers.
pageSizeintegerThe number of pull requests per page.
deprecatedbooleanIndicates if this endpoint is deprecated.