Get XP of a user
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
cURL
curl --request POST \ --url https://backend.codedamn.com/api/public/get-user-xp \ --header 'Content-Type: application/json' \ --header 'FERMION-API-KEY: <api-key>' \ --data ' { "data": [ { "data": { "identifier": { "type": "user-id", "userId": "<string>" } } } ] } '
[ { "output": { "status": "ok", "data": { "cumulativeXpAllTime": 123 } } } ]
API Request Body
Show child attributes
user-id
The user ID of the user
API Response Body
ok
The total XP of the user till date