List issues assigned to the authenticated user
/issues List issues assigned to the authenticated user across all visible repositories including owned repositories, member
repositories, and organization repositories. You can use the filter query parameter to fetch issues that are not
necessarily assigned to you.
[!NOTE] GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the
pull_requestkey. Be aware that theidof a pull request returned from "Issues" endpoints will be an issue id. To find out the pull request id, use the "List pull requests" endpoint.
This endpoint supports the following custom media types. For more information, see "Media types."
application/vnd.github.raw+json: Returns the raw markdown body. Response will includebody. This is the default if you do not pass any specific media type.application/vnd.github.text+json: Returns a text only representation of the markdown body. Response will includebody_text.application/vnd.github.html+json: Returns HTML rendered from the body's markdown. Response will includebody_html.application/vnd.github.full+json: Returns raw, text, and HTML representations. Response will includebody,body_text, andbody_html.
Parameters
query Query Parameters
| Name | Type |
|---|---|
filter Indicates which sorts of issues to return. | "assigned" | "created" | "mentioned" | "subscribed" | "repos" | "all" |
state Indicates the state of the issues to return. | "open" | "closed" | "all" |
labels A list of comma separated label names. Example: | string |
sort What to sort results by. | "created" | "updated" | "comments" |
direction The direction to sort the results by. | "asc" | "desc" |
since Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: | string |
collab | boolean |
orgs | boolean |
owned | boolean |
pulls | boolean |
per_page The number of results per page (max 100). For more information, see "Using pagination in the REST API." | number |
page The page number of the results to fetch. For more information, see "Using pagination in the REST API." | number |
Responses
Response
id: number;
node_id: string;
url: string;
repository_url: string;
labels_url: string;
comments_url: string;
events_url: string;
html_url: string;
number: number;
state: string;
state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
title: string;
body?: string | null;
user:
labels: ({
id?: number;
node_id?: string;
url?: string;
name?: string;
description?: string | null;
color?: string | null;
default?: boolean;
} | string)[];
assignee:
assignees?:
milestone:
locked: boolean;
active_lock_reason?: string | null;
comments: number;
pull_request?: {
merged_at?: string | null;
diff_url: string | null;
html_url: string | null;
patch_url: string | null;
url: string | null;
};
closed_at: string | null;
created_at: string;
updated_at: string;
draft?: boolean;
closed_by?:
body_html?: string;
body_text?: string;
timeline_url?: string;
type?:
repository?:
performed_via_github_app?:
author_association?:
reactions?:
sub_issues_summary?:
parent_issue_url?: string | null;
issue_dependencies_summary?:
issue_field_values?:
}[]
Redirects
Not modified
Client Errors
Resource not found
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
Validation failed, or the endpoint has been spammed.
message: string;
documentation_url: string;
errors?: {
resource?: string;
field?: string;
message?: string;
code: string;
index?: number;
value?: string[] | string | number | null;
}[];
}