Skip to content

List pull requests

GET
/api/v1/pull-requests
curl --request GET \
--url https://api.aletheia-ops.com/api/v1/pull-requests \
--header 'Authorization: Bearer <token>'

OK

Media typeapplication/json

Pull-requests envelope

object
items
Array<object>

Pull-request projection

object
id
string
number
integer
title
string
author_login
string
state
string
source_branch
string
target_branch
string
head_sha
string
url
string
labels
Array<string>
iac_project_ids
Array<string>
opened_at
string format: date-time
merged_at
string format: date-time
closed_at
string format: date-time
total
integer
Examplegenerated
{
"items": [
{
"id": "example",
"number": 1,
"title": "example",
"author_login": "example",
"state": "example",
"source_branch": "example",
"target_branch": "example",
"head_sha": "example",
"url": "example",
"labels": [
"example"
],
"iac_project_ids": [
"example"
],
"opened_at": "2026-04-15T12:00:00Z",
"merged_at": "2026-04-15T12:00:00Z",
"closed_at": "2026-04-15T12:00:00Z"
}
],
"total": 1
}

No valid credential was presented, or it has expired.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
{
"code": "unauthorized",
"message": "authentication required"
}

Authenticated, but not permitted to perform this action.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
{
"code": "forbidden",
"message": "you do not have permission to perform this action"
}

An unexpected failure. Diagnostic detail is logged server-side and deliberately not returned. Quote the X-Request-Id response header when reporting one.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
Exampleinternal_error
{
"code": "internal_error",
"message": "internal server error"
}