API ReferenceSession

Start a session and get the CSRF token

GET
/console/api/session

Sets the HttpOnly clearwake_console cookie when the request has none and returns the token to send as X-Clearwake-CSRF on every POST.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/console/api/session"
{  "csrf": "4f1d0c2f9a7b6e8d3c5a1b0e9f8d7c6b5a4938271605f4e3d2c1b0a998877665",  "label": "local run data"}