Introducing Confident Voice: Watch the Launch Video Now

Get Prompt Pull Request

(v2)

GET

Retrieves a pull request of the prompt, with its description, who opened and merged it, and the merge commit once it is merged.

GET/v2/prompts/{promptId}/pull-requests/{pullRequestId}
curl -X GET "https://api.confident-ai.com/v2/prompts/{promptId}/pull-requests/{pullRequestId}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "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,
    "description": "Shortens the greeting and drops the apology.",
    "mergedBy": {
      "id": "<USER-ID>",
      "email": "jane@acme.com",
      "name": "Jane Doe",
      "image": null
    },
    "mergeCommit": {
      "id": "<COMMIT-ID>",
      "hash": "bab04ce",
      "message": "Committed from API"
    },
    "updatedAt": "2026-05-28T13:35:16.268Z"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

  • pullRequestIdstringRequired

    The unique id of the pull request.

Response

Get Prompt Pull Request succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A proposal to merge one branch of a prompt into another, with where it stands and, once merged, the commit it produced.

    Show 12 propertiesHide 12 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.

    • descriptionstring | null

      What the pull request changes and why, or null when none was given.

    • mergedByobject | null

      A Confident AI user, as referenced by the records they created.

      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.

    • mergeCommitobject | null

      Show 3 propertiesHide 3 properties
      • idstring

        The id of a commit generated by Confident AI, not to be confused with the prompt id or the commit hash.

      • hashstring

        The hash of a commit generated by Confident AI.

      • messagestring

        The message associated with a commit, not to be confused with a prompt's messages.

    • updatedAtstring

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

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI