latestOpenAPI 3.0.3GitGuardian2026-08-201871515.0 MB

511b067cdcb1

Internal Secret Incidents

Grant access to a secret incident

Grant a user, an existing invitee or a team access to a secret incident.

DEPRECATED: This endpoint has been replaced by this one for members, this one for teams, and this one for invitations.

post/v1/incidents/secrets/{incident_id}/grant_access

Path parameters

incident_idinteger required

The id of the incident to retrieve

Request body

emailstring

Email address of a user or invitee. This parameter is mutually exclusive with member_id, invitation_id and team_id.

member_idnumber

Id of a member. This parameter is mutually exclusive with email, invitation_id and team_id.

invitation_idnumber

Id of an invitation. This parameter is mutually exclusive with email, member_id and team_id.

team_idnumber

Id of a team, except for the global team. This parameter is mutually exclusive with email, member_id and invitation_id.

incident_permission'can_view' | 'can_edit' | 'full_access'

Example request

{
  "member_id": 1492,
  "incident_permission": "can_edit"
}

Response

The access was granted successfully.