Appearance
Generate Anonymous User ID
Generate a unique identifier for an anonymous user accessing a quiz.
Overview
This endpoint creates and returns a unique anonymous user identifier for tracking quiz submissions without requiring user authentication.
Method: POST
Endpoint:/api/v1/namespaces/:namespaceId/quizzes/:quizId/users/anonymous/genId
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
namespaceId | string | ✅ | Namespace unique ID |
quizId | string | ✅ | Quiz unique ID |
No request body is required for this operation.
Response
json
{
"anonymousUserId": "anon_12345ABC"
}Error Responses
500 Internal Server Error– If the quiz does not exist
json
{
"error": "quiz does not exist"
}Other possible errors:
- Quiz not found
- Namespace not found