Overview
The Issues API allows you to manage repository issues including creating, listing, updating, closing, and deleting issues. Issues can have assignees, labels, milestones, and deadlines.Issue Object
The Issue object represents an issue in a repository with the following structure:integer
The unique identifier of the issue
integer
The issue number (index) in the repository
string
The title of the issue
string
The description body content of the issue
string
default:"open"
The current state of the issue. Possible values:
open, closedobject
The user who created the issue
array
Array of label objects attached to the issue
array
Array of user objects assigned to the issue
object
The milestone associated with the issue
integer
The number of comments on the issue
string
Timestamp when the issue was created (RFC 3339 format)
string
Timestamp when the issue was last updated (RFC 3339 format)
string
Timestamp when the issue was closed (RFC 3339 format)
string
The deadline for the issue (RFC 3339 format)
Operations
- List Issues
- Get Issue
- Create Issue
- Update Issue
- Delete Issue
List Repository Issues
List all issues in a specific repository.Endpoint:GET /api/v1/repos/{owner}/{repo}/issuesPath Parameters
string
required
Owner of the repository
string
required
Name of the repository
Query Parameters
string
default:"open"
Filter by issue state. Options:
open, closed, allstring
Comma-separated list of label names to filter by
string
Comma-separated list of milestone names or IDs to filter by
string
Search query string
string
Filter by type. Options:
issues, pullsstring
Only show items updated after this timestamp (RFC 3339 format)
string
Only show items updated before this timestamp (RFC 3339 format)
string
Filter by creator username
string
Filter by assignee username
string
Filter by mentioned username
integer
default:"1"
Page number for pagination (1-based)
integer
Number of items per page
Example Request
Response
Search Issues
Search for issues across all repositories the authenticated user has access to. Endpoint:GET /api/v1/repos/issues/search
Query Parameters
string
default:"open"
State of the issue. Options:
open, closed, allstring
Comma-separated list of label names
string
Comma-separated list of milestone names
string
Search query string
string
Filter by type. Options:
issues, pullsstring
Filter by repository owner
string
Filter by creator username
boolean
Filter issues assigned to the authenticated user
boolean
Filter issues created by the authenticated user
boolean
Filter issues mentioning the authenticated user
integer
default:"1"
Page number for pagination
integer
Number of items per page
Example Request
Response
Update Issue Deadline
Set or update the deadline for an issue. If set to null, the deadline is deleted. Endpoint:POST /api/v1/repos/{owner}/{repo}/issues/{index}/deadline
Path Parameters
string
required
Owner of the repository
string
required
Name of the repository
integer
required
Index number of the issue
Request Body
string
required
The new deadline (RFC 3339 format) or
null to removeExample Request
Response (201 Created)
Error Responses
Bad Request
Invalid request parameters or malformed request body
Forbidden
User does not have permission to perform the operation
Not Found
Repository or issue not found
Unprocessable Entity
Validation error (e.g., missing required fields)
Locked
Repository is archived and cannot be modified