Total Active Users API
POST /totalActiveUsers
Description
This API endpoint retrieves the total number of active users.
Request Body
The request uses GraphQL to perform the totalActiveUsers
query.
Query:
query totalActiveUsers {
totalActiveUsers
}
GraphQL Variables:
{}
Example Request:
curl --location '' \
--header 'Content-Type: application/json' \
--data '{"query":"query totalActiveUsers {\n totalActiveUsers\n}","variables":{}}'
Response:
-
Success (200 OK):
- The response includes the total number of active users.
{
"data": {
"totalActiveUsers": 500
}
}totalActiveUsers
: Total number of active users.
-
Error (4XX/5XX):
- If there is an issue with the request or if there is a server error, the response will include an error message and status code.
Note:
This endpoint provides a simple metric indicating the current number of active users, useful for monitoring user engagement and platform activity.