Submit a request
const url = 'https://api.pealboard.com/portal/requests';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"requestTypeId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","title":"example","values":{},"attachmentIds":[],"visibility":"private","turnstileToken":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pealboard.com/portal/requests \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "requestTypeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "values": {}, "attachmentIds": [], "visibility": "private", "turnstileToken": "example" }'Creates an issue in the repository the request type names, with the form’s answers as headed sections and an attribution line naming the requester and their company — never their email address. On an open portal a customer’s first request waits in a hold queue and reaches GitHub only when a member releases it. Send Idempotency-Key and a retry of the same submission returns the same request rather than creating a second one.
Access. Requires a signed-in customer of this portal. Submitting a request is what a portal is for, and every signed-in customer may do it.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
A UUID this API issued.
The issue’s title, and the line the customer sees in their list.
Only private and public may be chosen by a customer, and only up to the portal’s default. A company-visible request is a member’s decision.
Required on an open portal, where anybody may sign in.
Responses
Section titled “Responses”The request.
object
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.
The display name. Never an email address.
Something has happened on this request since this customer last opened it.
Example
{ "status": { "id": "open", "label": "Open" }, "visibility": "private"}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" }}