Skip to main content

Check session

GET{{server}}/api/v1/counter/session/check

This endpoint checks the current clerk session. If there is a live session, it returns with the counter ID and status ID if the clerk is in any clerk status.

{
    "counter": "00000000-0000-4000-0010-000000000003",
    "status": null
}

Request​

Authorization​

HeaderValue
AuthorizationBearer {{counterToken}}

Headers​

KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}

Code snippets​

curl -X GET '{{server}}/api/v1/counter/session/check' \
-H 'Accept: application/json' \
-H 'X-WSID: {{counterWsID}}' \
-H 'Authorization: Bearer {{counterToken}}'

Examples (2)​

Example request
GET{{server}}/api/v1/counter/session/check
Headers (2)
KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length64
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
{
"counter": "00000000-0000-4000-0010-000000000003",
"status": null
}