sessions
Login using this route.
Changed onDescription
This will return a token that can be used in the Authentication header in the form "Session-Token <your_token>" on authenticated requests.<br> The token is valid for 30min, but if you make an authenticated request with it, it will be renewed for the next 30min.
Rate limits
Maximum 5 requests per 300 seconds<br>
post/v3/sessions/
Request
- Base URLhttps://api.smarkets.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"create_social_member": true,
"password": "verysecurepassword",
"remember": true,
"username": "john.doe@company.com"
}Response
Token response for old and new auth v2.
Example response
{
"created_social_member": true,
"factor": "complete",
"nemid_session_id": "776071e7-6b96-41af-8fa2-7fed98e227fd",
"redirect_url": "https://test.zignsec.com/v2/Hosted/776071e7-6b96-41af-8fa2-7fed98e227fd/nemid/",
"stop": "2018-01-24T19:49:43.964757",
"token": "WzM2NjI1MDIsMjIyMDIxMzJd.jKWaw5j3XtYX6huY7HZVEvISu6k",
"verify": true
}Changes
- warning
added the new
LOGIN_VERIFICATION_REQUIREDenum value to theresponse property for the response status
- warning
- warning
added the new
USER_SELF_SUSPENDEDenum value to theresponse property for the response status - info
added the new optional request property
- warning