Retrieve details of an API token.
Changed onRequest
- Base URLhttps://api.gitguardian.com
- URLhttps://api.gitguardian.com/v1/api_tokens/{token_id}
- AuthHTTP bearer
Path parameters
Id of the token.
Response
Current token details
Example response
{
"id": "5ddaad0c-5a0c-4674-beb5-1cd198d13360",
"name": "myTokenName",
"workspace_id": 42,
"type": "personal_access_token",
"status": "revoked",
"created_at": "2023-05-20T12:40:55.662949Z",
"last_used_at": "2023-05-24T12:40:55.662949Z",
"revoked_at": "2023-05-27T12:40:55.662949Z",
"member_id": 22015,
"creator_id": 22015,
"scopes": [
"incidents:read",
"scan"
]
}Changes
- warning
added the new
nhi:readenum value to the/response property for the response status - warning
added the new
nhi:writeenum value to the/response property for the response status
- warning
- warning
added the new
custom_tags:readenum value to the/response property for the response status - warning
added the new
custom_tags:writeenum value to the/response property for the response status - warning
added the new
health_checks:readenum value to the/response property for the response status - warning
added the new
health_checks:writeenum value to the/response property for the response status - warning
added the new
public-perimeter:readenum value to the/response property for the response status - warning
added the new
scan:create-incidentsenum value to the/response property for the response status - warning
added the new
secrets:readenum value to the/response property for the response status - warning
added the new
secrets:writeenum value to the/response property for the response status - warning
added the new
sources:scanenum value to the/response property for the response status
- warning