Get pull

Fetch a pull request by per-repo pull number.

Endpoints

GET /api/v1/teams/{team_slug}/repos/{repo_slug}/pulls/{number}
GET /api/v1/users/{username}/repos/{repo_slug}/pulls/{number}
Authenticated

Usage

curl --header "Authorization: Bearer $GHIT_API_TOKEN" \
  "$GHIT_API_URL/v1/teams/platform/repos/website/pulls/42"

Success

200 OK with the pull record.

{
  "uuid": "...",
  "number": 42,
  "target_ref": "main",
  "source_ref": "feature-x",
  "title": "Feature x",
  "body": "Please review.",
  "status": "open",
  "created_at": "2026-03-09T12:00:00Z",
  "updated_at": "2026-03-09T12:00:00Z"
}

Errors

  • 403 Forbidden when repo access is denied (repo_access).
  • 404 Not Found when repo or pull number is not found.

Common auth errors are documented on the API overview page.