Skip to main content
GET
List pull requests for a connected repository

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.

Minimum string length: 1

Path Parameters

connectionId
string<uuid>
required

Integration connection id.

repositoryOwner
string
required

Repository owner in GitHub canonical spelling; must exactly match the identity readable with the installation token.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_.-]+$
repositoryName
string
required

Repository name without its owner, in GitHub canonical spelling; must exactly match the identity readable with the installation token.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_.-]+$

Query Parameters

state
enum<string>

Pull request state. Omit to include all states.

Available options:
open,
closed
limit
integer
default:100

Maximum pull requests per page, default 100.

Required range: 1 <= x <= 100
cursor
string

Opaque nextCursor from the previous page; repeat its limit and state. Provider listings are live and can skip or repeat items; deduplicate by number. A page that shrinks below a saved nonzero offset returns 409 snapshot_stale; restart without cursor.

Response

OK

items
object[]
required

Pull requests reachable on this page, up to 100 per page.

nextCursor
null | string
required

Cursor for the next page, or null.

total
null | integer
required

Always null because the provider does not report a matching pull request count.

Required range: 0 <= x <= 9007199254740991