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 $PEARING_API_TOKEN" \
"$PEARING_API_URL/v1/teams/platform/repos/website/pulls/42"
Success
200 OK with the pull record, including creator, merger, and closer actor fields where applicable. Merged pull detail also includes current_source_oid and source_branch_advanced_after_merge so clients can tell when later commits were pushed to the same source branch after merge.
{
"uuid": "...",
"number": 42,
"target_ref": "main",
"source_repo": "alice/website-fork",
"source_ref": "feature-x",
"title": "Feature x",
"body": "Please review.",
"status": "merged",
"current_source_oid": "abc123...",
"source_branch_advanced_after_merge": true,
"created_at": "2026-03-09T12:00:00Z",
"updated_at": "2026-03-09T12:00:00Z"
}
Errors
403 Forbiddenwhen repo access is denied (repo_access).404 Not Foundwhen repo or pull number is not found.
Common auth errors are documented on the API overview page.