Introducing Confident Voice: Watch the Launch Video Now

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.

GET/v2/prompts/{promptId}/pull-requests
curl -X GET "https://api.confident-ai.com/v2/prompts/{promptId}/pull-requests" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "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_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

Query parameters

  • pageintegerdefault: 1

    The page of pull requests to return. Defaults to 1.

  • pageSizeintegerdefault: 25

    The number of pull requests per page, at most 100. Defaults to 25.

  • statusenum

    Only return pull requests in this status.

  • sourceBranchIdstring

    Only return pull requests opened from this branch id.

  • searchTermstring

    Only return pull requests whose title contains this text, ignoring case.

Response

List Prompt Pull Requests succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    One page of a prompt's pull requests, with the total across all pages.

    Show 4 propertiesHide 4 properties
    • pullRequestslist of objects

      The prompt's pull requests for the current page, newest first.

      Show 8 propertiesHide 8 properties
      • idstring

        The unique id of the pull request.

      • titlestring

        The title of the pull request.

      • statusenum

        Where a pull request stands: OPEN while it awaits a decision, MERGED once its changes landed on the target branch, or CLOSED when it was dropped without merging.

        Show 3 enum valuesHide 3 enum values
        • OPEN
        • MERGED
        • CLOSED
      • sourceBranchIdstring

        The id of the branch whose changes are proposed.

      • targetBranchIdstring

        The id of the branch the changes would be merged into.

      • createdByobject

        The user who opened the pull request.

        Show 4 propertiesHide 4 properties
        • idstring

          This is the id of the user.

        • emailstring

          This is the email address of the user.

        • namestring | null

          This is the display name of the user, or null when they have not set one.

        • imagestring | null

          This is the URL of the user's avatar, or null when they have none.

      • createdAtstring

        When the pull request was opened, as an ISO 8601 timestamp.

      • mergedAtstring | null

        When the pull request was merged, as an ISO 8601 timestamp, or null while it has not been merged.

    • totalPullRequestsinteger

      The total number of pull requests matching the filters, across every page.

    • pageinteger

      The page this response covers.

    • pageSizeinteger

      The number of pull requests per page.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI