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:The unique identifier of the issue
The issue number (index) in the repository
The title of the issue
The description body content of the issue
The current state of the issue. Possible values:
open, closedThe user who created the issue
Array of label objects attached to the issue
Array of user objects assigned to the issue
The milestone associated with the issue
The number of comments on the issue
Timestamp when the issue was created (RFC 3339 format)
Timestamp when the issue was last updated (RFC 3339 format)
Timestamp when the issue was closed (RFC 3339 format)
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
Owner of the repository
Name of the repository
Query Parameters
Filter by issue state. Options:
open, closed, allComma-separated list of label names to filter by
Comma-separated list of milestone names or IDs to filter by
Search query string
Filter by type. Options:
issues, pullsOnly show items updated after this timestamp (RFC 3339 format)
Only show items updated before this timestamp (RFC 3339 format)
Filter by creator username
Filter by assignee username
Filter by mentioned username
Page number for pagination (1-based)
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
State of the issue. Options:
open, closed, allComma-separated list of label names
Comma-separated list of milestone names
Search query string
Filter by type. Options:
issues, pullsFilter by repository owner
Filter by creator username
Filter issues assigned to the authenticated user
Filter issues created by the authenticated user
Filter issues mentioning the authenticated user
Page number for pagination
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
Owner of the repository
Name of the repository
Index number of the issue
Request Body
The new deadline (RFC 3339 format) or
null to removeExample Request
Response (201 Created)
Error Responses
Invalid request parameters or malformed request body
User does not have permission to perform the operation
Repository or issue not found
Validation error (e.g., missing required fields)
Repository is archived and cannot be modified