Register a visitor session
Register a visitor session for read-only access. Visitor users can only consume public content and cannot perform write operations.
Documentation Index
Fetch the complete documentation index at: https://learn.social.plus/llms.txt
Use this file to discover all available pages before exploring further.
Headers
API key for network authentication
Body
Information about visitor user and devices that they use to connect. Visitor users have read-only access and cannot perform write operations.
If deviceId haven't been used before, a new visitor user will be created.
accessToken expires in 30 days by default.
Unique identifier for the device
1 - 150Optional device information for analytics and debugging
Authentication signature for visitor user (required for secure visitor sessions only)
The signature must be created using HMAC-SHA256 and returned as hexadecimal:
HMAC-SHA256(payload, applicationSecret)Steps to generate:
-
Create HMAC-SHA256 hash using payload as message and applicationSecret as key.
Payload format: deviceId=deviceId&authSignatureExpiresAt=authSignatureExpiresAt
Device id and authSignatureExpiresAt must match the values sent in the request. -
Convert the resulting hash to hexadecimal string (64 characters)
The applicationSecret can be found in the console at Feature settings > User section when enabling secure visitor sessions.
64ISO 8601 timestamp indicating when the authSignature expires (required for secure visitor sessions only)
"2024-12-31T23:59:59Z"
Response
Session Information with access token and user data
JWT access token for API authentication
Token issuance timestamp
Token expiration timestamp
User information array
User roles array
[]Associated files array
[]Date of the last cache purge
Type of user (e.g., signed-in, visitor, bot)
signed-in, visitor, bot "visitor"