List API tokens.
Changed onList all the tokens in the workspace, some filters are available and described below.
Request
- Base URLhttps://api.gitguardian.com
- URLhttps://api.gitguardian.com/v1/api_tokens
- AuthHTTP bearer
Query parameters
Pagination cursor.
Number of items to list per page.
Status of the token.
Filter by member id.
Filter by creator id.
Tokens with one of the following scopes.
Search tokens based on their name.
Sort the results by their field value. The default sort is ASC, DESC if the field is preceded by a '-'.
Response
API tokens list
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 - info
added the enum value
nhi:readto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
nhi:writeto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes
- 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 - info
added the enum value
custom_tags:readto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
custom_tags:writeto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
health_checks:readto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
health_checks:writeto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
public-perimeter:readto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
scan:create-incidentsto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
secrets:readto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
secrets:writeto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes - info
added the enum value
sources:scanto the propertyallOf[subschema #1]/of thequeryrequest parameterscopes
- warning