List honeytokens
This endpoint allows you to list all the honeytokens of your workspace.
The response contains the list of honeytokens and a pagination cursor to retrieve the next page.
The honeytokens are sorted by id.
If you are using a personal access token, you need to have an access level superior or equal to manager.
Query parameters
Pagination cursor.
Number of items to list per page.
Status of a honeytoken.
Type of a honeytoken.
Search honeytokens based on their name and/or description.
Member id of the honeytoken creator.
Member id of the honeytoken revoker.
Token id of the honeytoken creator.
Token id of the honeytoken creator.
Comma-separated list of tags to filter on.
Sort the results by their field value. The default sort is ASC, DESC if the field is preceded by a '-'.
Show token details (access_token_id and secret_key).
Headers
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
List honeytokens
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"
}
]
}
]