Auth
- GETList API Tokens
- POSTCreate API Token
- GETGet API Token
- PUTRefresh API Token or set Token TTL and change permissions
- DELDelete API Token
- PUTUpdate current user password
- POSTGenerate new JWT Token
- POSTAuthenticate user by oauth provider token
- GETGet list of active sessions
- DELDelete all active sessions
- GETGet list of active sessions
- DELDelete active session
- POSTAuthenticate user by username(email) and password
- DELInvalidate current JWT token session or invalidate all sessions
- POSTVerify Sign-up email
- PUTUpdate sub user password
Media
Statistics
Auth
Refresh API Token or set Token TTL and change permissions
PUT
/
frontend
/
api
/
v1
/
auth
/
api-token
/
{token}
Copy
Ask AI
curl --request PUT \
--url https://{host}/frontend/api/v1/auth/api-token/{token} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"permissions": [
"read:billing"
],
"reset-permissions": false,
"ttl": 0
}'
Copy
Ask AI
{
"created": "2023-11-07T05:31:56Z",
"expired": null,
"expires-at": null,
"permissions": {},
"token": "<string>",
"updated": "2023-11-07T05:31:56Z"
}
Authorizations
API Key Security (Header).
Path Parameters
API Token
Body
Response
200
application/json
OK
The response is of type object
.
Copy
Ask AI
curl --request PUT \
--url https://{host}/frontend/api/v1/auth/api-token/{token} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"permissions": [
"read:billing"
],
"reset-permissions": false,
"ttl": 0
}'
Copy
Ask AI
{
"created": "2023-11-07T05:31:56Z",
"expired": null,
"expires-at": null,
"permissions": {},
"token": "<string>",
"updated": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.