# Sessions
# Get Session
GET
/sessions/{id}
# Example Request
curl --location --request GET 'https://yourwebsite.com/api/sessions/uFfF2KPoq7XZAOPLhen5ayOArawyzGitjoFIdogV' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {api_key}' \
--header 'Authorization: Bearer {api_key}'
# Example Response
{
"data": {
"id": "uFfF2KPoq7XZAOPLhen5ayOArawyzGitjoFIdogV",
"user_id": 1,
"ip_address": "123.45.67.890",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36",
"browser": "Chrome",
"platform": "OS X",
"device": "Macintosh",
"last_activity": "2017-08-18 14:30:09"
}
}
# Invalidate Session
DELETE
/sessions/{id}
# Example Request
curl --location --request DELETE 'https://yourwebsite.com/api/sessions/uFfF2KPoq7XZAOPLhen5ayOArawyzGitjoFIdogV' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {api_key}' \
--header 'Authorization: Bearer {api_key}'
# Example Response
Status: 200 OK
{
"success": true
}