Sample - GitHub REST API
GET/repos/{owner}/{repo}/issue-types

List issue types for a repository

Lists issue types available for a repository (inherited from its organization owner, with any per-repository overrides applied). OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint. Fine-grained access tokens require the "Metadata" repository permission (read).

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.

2 status codes
200Response
idintegerrequired
The unique identifier of the issue type.
node_idstringrequired
The node identifier of the issue type.
namestringrequired
The name of the issue type.
descriptionstringrequired
The description of the issue type.
colorstringoptional
The color of the issue type.
Allowed:graybluegreenyelloworangeredpinkpurple
created_atstringoptional
The time the issue type created.
updated_atstringoptional
The time the issue type last updated.
is_enabledbooleanoptional
The enabled state of the issue type.
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned: Resource not found.