api-tokens
Manage croit API tokens.
get /api-tokens
List all configured api tokens.
Parameters
pagination object query
Pagination request. When supplied, the result will be filtered, sorted and limited according to this request object.
Responses
default response
default response
oneOf A response that can be either paginated or a raw list (depending on the presence of the pagination query parameter).
object
A paginated result.
Examples
No request body required
post /api-tokens
Create a new API token. Returns the secret token (which should only be shown once to the user).
Parameters
body object
Request to create a new API token.
Responses
default response
default response
string
Examples
Request Body
{
"name": "string",
"roles": [
"admin"
],
"expiry": "2023-12-01T10:00:00Z"
}
patch /api-tokens/{id}
Update an API token.
Parameters
id integer path Required
body object
Examples
Request Body
{
"roles": [
"admin"
]
}
delete /api-tokens/{id}
Delete an API token.
Parameters
id integer path Required
Examples
No request body required