latestOpenAPI 3.0.3GitGuardian2026-08-201871515.0 MB

511b067cdcb1

Public Secret Incidents

Share a public secret incident

Create a public link to share a public secret incident with an external developer.

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

Path parameters

incident_idinteger required

The id of the incident to retrieve

Request body

feedback_collectionboolean

Whether to allow feedback collection on the shared incident.

auto_healingboolean

Whether to allow auto-healing actions on the shared incident.

lifespannumber

The lifespan of the share link in hours.

Example request

{
  "lifespan": 24
}

Response

Issue Token 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"
}