Anonymous Login
POST/auth/v1/signin/anonymously
API Description
Anonymous login API. A single device ID can register at most one anonymous user and generate an access_token for that anonymous user.
Input Requirements
x-device-id: Device ID (required, passed in the request header)client_id: Client ID corresponding to the application (optional, defaults to environment ID)
Prerequisites
- A single device ID can only register one anonymous user.
- The device ID must be randomly generated by the client and cached locally.
Output
- Returns a standard token response (
access_token,refresh_token, etc.). - The
scopeis"anonymous", indicating an anonymous user.
Request Example
POST /auth/v1/signin/anonymously
x-device-id: device_123456
Content-Type: application/json
{}
Response Example
{
"token_type": "Bearer",
"access_token": "your_access_token",
"expires_in": 7200,
"scope": "anonymous",
"sub": "7ft9WRremXrz-TfgoAR9Uw"
}