Getting an existing session
This method simply allows you to get the session information given if you provide the correct session id
Parameter Name | Default Value | Required | Description |
session_id | NULL | True | The Session ID given when creating a session with the Create Session method |
Example Success Response
This response is given when a session was successfully found
{
"success": true,
"response_code": 200,
"results": {
"session_id": "46db504f80a9eadd0fbec43ff4f75690962242b5c57fb23f6e4f2a23423bcab8",
"language": "en",
"available": true,
"expires": 1581899765
}
}
Session Object Structure
Name | Type | Description |
session_id | string | The ID of the session that must be used for requests like "Think Thought" |
language | string | The ISO 639-1 Language code that this session is based in |
available | boolean | Indicates if this session is available or not. A session can be unavailable if it has expired or a session error raises |
expires | integer | The Unix Timestamp for when this session will expire |
Example Session Not Found Response
This response is given when the given session id was not found
{
"success": false,
"response_code": 404,
"error": {
"error_code": 4,
"type": "CLIENT",
"message": "The session was not found"
}
}