Skip to main content
GET
Get a pull request

Authorizations

Authorization
string
header
required

API token with sk-de- prefix. Created in the Decimal dashboard under Settings → API Tokens.

Scopes

pull_requests:read

Path Parameters

id
integer
required

Pull request ID.

Response

The pull request.

id
integer
required

Decimal pull request ID.

source
string
required

Code host, such as github.

repository
string | null
required

owner/repo.

number
integer | null
required

Number on the code host.

url
string<uri> | null
required
title
string | null
required
body
string | null
required

Description in Markdown.

state
enum<string>
required
Available options:
open,
merged,
closed
head_ref
string | null
required

Source branch.

created_by_decimal
boolean
required

Opened by Decimal.

files
object[]
required

Changes Decimal proposed when it opened the pull request. Commits pushed to the branch later are not included.

ticket_id
integer | null
required

Decimal ticket the pull request was opened for.

created_at
string<date-time>
required
updated_at
string<date-time>
required