Sample - GitHub REST API
GET/repos/{owner}/{repo}/issues/events/{event_id}

Get an issue event

Retrieves one issue event from a repository by its event identifier. Supply owner, repo, and event_id to identify the repository and event. The response includes the event type, actor, timestamp, related issue, and associated commit information.

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

3 parameters
ownerstringrequired
The account owner of the repository; the name is not case sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case sensitive.
event_idintegerrequired
The integer identifier of the issue event to retrieve.

4 status codes
200Returns the issue event object, including its identifier, actor, event type, commit details, creation timestamp, related issue, and associated users or teams.
idintegerrequired
node_idstringrequired
urlstringrequired
actorobjectrequired
A GitHub user.
eventstringrequired
commit_idstringrequired
commit_urlstringrequired
created_atstringrequired
issueobjectoptional
Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
labelobjectoptional
Issue Event Label
assigneeobjectoptional
A GitHub user.
assignerobjectoptional
A GitHub user.
review_requesterobjectoptional
A GitHub user.
requested_reviewerobjectoptional
A GitHub user.
requested_teamobjectoptional
Groups of organization members that gives permissions on specified repositories.
dismissed_reviewobjectoptional
milestoneobjectoptional
Issue Event Milestone
project_cardobjectoptional
Issue Event Project Card
renameobjectoptional
Issue Event Rename
issue_typeobjectoptional
The type of issue.
prev_issue_typeobjectoptional
The type of issue.
sub_issueobjectoptional
A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events).
parent_issueobjectoptional
A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events).
blocked_byobjectoptional
A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events).
blockingobjectoptional
A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events).
intentobjectoptional
The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent.
author_associationstringoptional
How the author is associated with the repository.
Allowed:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
lock_reasonstringoptional
performed_via_github_appobjectoptional
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
403Returned when the authenticated user is not permitted to access the issue event.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the repository or issue event does not exist.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
410Returned when the requested resource is gone.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned when the authenticated user is not permitted to access the event. A 404 is returned when the repository or event cannot be found, while a 410 indicates the resource is gone. event_id must be an integer identifying the issue event.