Register a session
This method creates a new session
Try this request in your browser
URL
https://api.natterly.com/api/v1/sessions_for_sessions/register
Access
Must not be authenticated.
If not authorised, a MustNotBeAuthenticated
error will be returned.
Parameters
Parameter | Type | Default |
---|---|---|
site Required The site's token |
String | null |
token An existing token if you already have one |
String | null |
page_url The current URL |
String | null |
page_title The current page's title |
String | null |
language The browser language |
String | null |
time_zone The browser's time zone |
String | null |
browser THe browser's unique token |
String | null |
visitor The hash/signed string containing visitor information |
null | |
custom_data The hash/signed string containing custom data |
null |
Errors
Error | Attributes |
---|---|
InvalidSiteToken The site token provided is invalid |
|
Banned The IP address is currently banned from chatting on this site |
|
AccountSuspended The associated account has been suspended |
|
InvalidVisitorSignedString The signed string for visitor details is invalid |
|
InvalidCustomDataSignedString The signed string for custom data is invalid |
Response Data
This action will return a Hash.