latestOpenAPI 3.0.3GitGuardian2026-08-201871515.0 MB

511b067cdcb1

Internal Secret Incidents

Share a secret incident

Share a secret incident by creating a public link.

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

Path parameters

incident_idinteger required

The id of the incident to retrieve

Request body

auto_healingboolean

Allow the developer to resolve or ignore through the share link

feedback_collectionboolean

Allow the developer to submit their feedback through the share link

lifespaninteger

Lifespan, in hours, of the share link. If 0 or unset, a default value will be applied based on the workspace settings.

Example request

{
  "auto_healing": true,
  "feedback_collection": true,
  "lifespan": 720
}

Response

Incident Sharing Details

share_urlstring
incident_idinteger
feedback_collectionboolean

Allow the developer to submit their feedback through the share link

auto_healingboolean

Allow the developer to resolve or ignore through the share link

tokenstring
expire_atstring date-time nullable
revoked_atstring date-time nullable

Example response

{
  "share_url": "https://dashboard.gitguardian.com/share/incidents/11111111-1111-1111-1111-111111111111",
  "incident_id": 3759,
  "feedback_collection": true,
  "token": "12345678-1234-1234-1234-123456789012",
  "expire_at": "2019-08-24T14:15:22Z"
}