curl --request POST \
  --url https://api.simplex.sh/restore_login_session \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "session_data": "{\"cookies\":[...],\"localStorage\":{...}}"
}'
{
  "succeeded": true
}

Authorizations

X-API-Key
string
header
required

Simplex API Key to authenticate requests. We provision API keys after a quick meeting with us. You can book that meeting here.

Body

application/json
session_id
string
required

The ID of the session to connect to.

session_data
string
required

The session data to restore (as a JSON string).

Example:

"{\"cookies\":[...],\"localStorage\":{...}}"

Response

200
application/json
Restore login session response
succeeded
boolean
required

Indicates if the session was successfully restored.

Example:

true