Auth Endpoints¶
POST /auth/login¶
Login to the platform.
- Request Body:
json
{
"username": "example@example.com",
"password": "example"
}
- Response:
json
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
POST /auth/logout¶
Logout of the platform, invalidating the current session.
-
Request: No request body required. Uses the access token in headers.
-
Response:
- 200 OK on successful logout.
GET /auth/accessToken¶
Retrieve a new access token using the refresh token.
-
Request: Uses the refresh token in headers.
-
Response:
json
{
"credentialsType": "ACCESS_TOKEN",
"credentialsId": "bmemh9OHFEBLGc...",
"credentialsValue": null
}