Check Session Status
Verify current session is valid and get user info
Responses
- application/json
- application/json
- application/json
Request Example for get/auth/check
curl https://api.gpcn.com/v1/auth/check \
--header 'X-API-Key: YOUR_SECRET_TOKEN'
{
"success": true,
"data": {
"authenticated": true,
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "hello@example.com",
"firstName": "string",
"lastName": "string",
"entityIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"primaryEntityId": "123e4567-e89b-12d3-a456-426614174000",
"activeEntityId": "123e4567-e89b-12d3-a456-426614174000",
"twoFactorEnabled": true
}
}
}.png)