List requests
const url = 'https://api.pealboard.com/v1/portals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/requests?cursor=MDAwMS0y&limit=50&status=open&visibility=private&held=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.pealboard.com/v1/portals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/requests?cursor=MDAwMS0y&limit=50&status=open&visibility=private&held=true' \ --header 'Authorization: Bearer <token>'Filterable by status word, company, request type, visibility, and whether the request is waiting in the hold queue. status filters on the derived word, so it is applied after the rules run rather than as a column comparison.
Access. Requires the member role or above (member, admin, owner). Answering requests is the work a portal exists for, and it is ordinary member work. API-key scope: requests:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”From GET /v1/portals.
From GET /v1/portals.
Query Parameters
Section titled “Query Parameters”The nextCursor from the previous page, unchanged. Omit it to start at the beginning.
Example
MDAwMS0yThe nextCursor from the previous page, unchanged. Omit it to start at the beginning.
How many rows to return. At most 100.
How many rows to return. At most 100.
The stable identifier a client filters on. The word is in status.label.
The stable identifier a client filters on. The word is in status.label.
A UUID this API issued.
A UUID this API issued.
A UUID this API issued.
A UUID this API issued.
Private: the requester and the workspace. company: everyone in the requester’s company. public: everyone in the portal. A manager sees every request in their company whatever this says.
Private: the requester and the workspace. company: everyone in the requester’s company. public: everyone in the portal. A manager sees every request in their company whatever this says.
true returns only the hold queue: nothing here has reached GitHub.
true returns only the hold queue: nothing here has reached GitHub.
Responses
Section titled “Responses”A page of requests.
object
object
A UUID this API issued.
ACME-42.
Derived from the issue at read time, never stored.
object
The stable identifier a client filters on. The word is in status.label.
The customer-facing word. Seven, fixed, and never GitHub’s own vocabulary.
Private: the requester and the workspace. company: everyone in the requester’s company. public: everyone in the portal. A manager sees every request in their company whatever this says.
Null while the request is in the hold queue: it has not reached GitHub.
object
A UUID this API issued.
object
A UUID this API issued.
object
A UUID this API issued.
object
A UUID this API issued.
The request in its portal.
Pass this back as cursor for the next page. Null on the last page.
Example
{ "data": [ { "reference": "ACME-42", "status": { "id": "open", "label": "Open" }, "visibility": "private", "issue": { "state": "open" } } ]}No valid credentials.
object
object
A stable identifier for the kind of failure. Safe to branch on.
What went wrong, written for a person.
Structured particulars, when there are any.
object
What to do about it, when there is something to do.
Quote this when asking about a specific failure.
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": { "additionalProperty": "example" }, "remedy": "example", "requestId": "example" }}Authenticated, but not permitted.
object
object
A stable identifier for the kind of failure. Safe to branch on.
What went wrong, written for a person.
Structured particulars, when there are any.
object
What to do about it, when there is something to do.
Quote this when asking about a specific failure.
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": { "additionalProperty": "example" }, "remedy": "example", "requestId": "example" }}No such resource, or it is not visible to you.
object
object
A stable identifier for the kind of failure. Safe to branch on.
What went wrong, written for a person.
Structured particulars, when there are any.
object
What to do about it, when there is something to do.
Quote this when asking about a specific failure.
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": { "additionalProperty": "example" }, "remedy": "example", "requestId": "example" }}The request conflicts with the current state.
object
object
A stable identifier for the kind of failure. Safe to branch on.
What went wrong, written for a person.
Structured particulars, when there are any.
object
What to do about it, when there is something to do.
Quote this when asking about a specific failure.
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": { "additionalProperty": "example" }, "remedy": "example", "requestId": "example" }}The request did not match the expected shape.
object
object
A stable identifier for the kind of failure. Safe to branch on.
What went wrong, written for a person.
Structured particulars, when there are any.
object
What to do about it, when there is something to do.
Quote this when asking about a specific failure.
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": { "additionalProperty": "example" }, "remedy": "example", "requestId": "example" }}Rate limited. Retry after the interval in the header.
object
object
A stable identifier for the kind of failure. Safe to branch on.
What went wrong, written for a person.
Structured particulars, when there are any.
object
What to do about it, when there is something to do.
Quote this when asking about a specific failure.
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": { "additionalProperty": "example" }, "remedy": "example", "requestId": "example" }}GitHub or another dependency refused or did not answer. Nothing in the workspace changed.
object
object
A stable identifier for the kind of failure. Safe to branch on.
What went wrong, written for a person.
Structured particulars, when there are any.
object
What to do about it, when there is something to do.
Quote this when asking about a specific failure.
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": { "additionalProperty": "example" }, "remedy": "example", "requestId": "example" }}