Honeytokens
Reset the honeytoken
Resets a triggered honeytoken. All the associated events will be closed.
post/v1/honeytokens/{honeytoken_id}/reset
Path parameters
honeytoken_idstring uuid required
The id of the honeytoken to retrieve
Headers
X-Privacy-Mode'true' | 'false'
When set to true, sensitive values in the response are obfuscated (replaced with <GG>OBFUSCATED</GG>). Useful for sharing API responses without exposing sensitive data.
Response
Honeytoken was successfully revoked.
Example response
{
"id": "d45a123f-b15d-4fea-abf6-ff2a8479de5b",
"name": "honeytoken A",
"description": "honeytoken used in the repository AA",
"created_at": "2019-08-22T14:15:22Z",
"gitguardian_url": "https://dashboard.gitguardian.com/workspace/1/incidents/3bf0ed1b-68b2-4db8-b944-d450c5d35cf4",
"status": "active",
"triggered_at": "2019-08-22T14:15:22Z",
"revoked_at": "2019-08-22T14:15:22Z",
"open_events_count": 122,
"type": "AWS",
"creator_id": 122,
"revoker_id": 122,
"creator_api_token_id": "f74ffca5-d06d-45c2-a3d8-e8e95d15a464",
"revoker_api_token_id": "19058e4a-0fab-4dcc-8ed6-4e2ec9fb2e44",
"token": {
"access_token_id": "AAAA",
"secret_key": "BBB"
},
"tags": [
"publicly_exposed"
],
"custom_tags": [
{
"id": "d45a123f-b15d-4fea-abf6-ff2a8479de5b",
"key": "env",
"value": "prod"
}
]
}