POST /api/issues
Creates a GitHub issue in the repository configured by environment variables.
{
"title": "Issue title",
"body": "Issue description",
"reporter": "Application Name",
"version": "1.0.0"
}title: required, string, maximum 120 characters.body: required, string, maximum 10000 characters.reporter: required, string, maximum 50 characters.version: optional, string, maximum 50 characters.
Text input is trimmed and unsafe control characters are removed.
curl -X POST https://example.vercel.app/api/issues \
-H "Content-Type: application/json" \
-d '{
"title": "Crash when opening launcher",
"body": "The launcher closes after clicking Start.",
"reporter": "ORB Launcher",
"version": "1.0.0"
}'{
"success": true
}{
"success": false,
"error": "title is required"
}sequenceDiagram
participant Client
participant Route as /api/issues
participant Service as GitHubIssueService
participant Validator
participant Octokit
participant GitHub
Client->>Route: POST JSON
Route->>Route: Parse JSON
Route->>Service: createIssue(payload)
Service->>Validator: validateCreateIssueRequest(payload)
Validator-->>Service: typed issue data
Service->>Service: format GitHub issue
Service->>Octokit: issues.create()
Octokit->>GitHub: Create issue
GitHub-->>Octokit: Created issue
Service-->>Route: { success: true }
Route-->>Client: JSON response
GitHub issue title:
[Issue Reporter] {title}
GitHub issue body:
## Report Information
Reporter: {reporter}
Version: {version}
---
{body}
---
Submitted through ORB API.