A valid request URL is required to generate request examples{
"balance": 123,
"level": {
"name": "<string>",
"rank": 123,
"threshold": 123,
"icon": "<string>"
},
"next_level": {
"name": "<string>",
"rank": 123,
"threshold": 123,
"icon": "<string>",
"requirements": [
{
"kind": "points",
"met": true,
"have": 123,
"need": 123,
"target": "<string>",
"unit": "<string>"
}
]
},
"points_to_next": 123,
"achievements": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"unlocked_at": "2023-11-07T05:31:56Z"
}
],
"metrics": [
{
"key": "<string>",
"name": "<string>",
"unit": "<string>",
"icon": "<string>",
"value": 123
}
]
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}This person's points, level and badges
What the widget renders for the person holding the page: their balance, where it places them, and their shelf.
Nothing here writes, and there is no endpoint that does. A point is a fact landing — the same rule that gives an onboarding step no “mark as done”. The moment a page can ask for points, the page’s network tab is the game. Your own backend can grant one with POST /v1/points, which is a program you control.
An anonymous session is answered 200 with zeros rather than 401: the widget runs on your landing page, and nothing pays a visitor. What somebody earns after they sign in follows them — the anonymous-to-identified merge moves the ledger, so points earned in the session that became an account are not lost.
level and next_level are null when no level is defined or when there is nothing above — draw the progress bar off points_to_next, which is null at the top.
A badge’s CONDITION deliberately does not travel. Handing somebody “unlock at 40 invites” is handing them the rule to farm, and a hidden badge would stop being a surprise the moment anybody opened the network tab.
A LEVEL’s conditions travel and a BADGE’s do not, on the same response. It is the same principle twice: a badge is a surprise you are entitled to keep — handing somebody “unlock at 40 invites” hands them the rule to farm — while a rung is a goal your product is ASKING them to reach, and a progress bar that cannot say “2 courses to go” is a bar filling for reasons nobody can act on. The one thing withheld is the NAME of an audience.
A valid request URL is required to generate request examples{
"balance": 123,
"level": {
"name": "<string>",
"rank": 123,
"threshold": 123,
"icon": "<string>"
},
"next_level": {
"name": "<string>",
"rank": 123,
"threshold": 123,
"icon": "<string>",
"requirements": [
{
"kind": "points",
"met": true,
"have": 123,
"need": 123,
"target": "<string>",
"unit": "<string>"
}
]
},
"points_to_next": 123,
"achievements": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"unlocked_at": "2023-11-07T05:31:56Z"
}
],
"metrics": [
{
"key": "<string>",
"name": "<string>",
"unit": "<string>",
"icon": "<string>",
"value": 123
}
]
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Autorizações
Resposta
The standing.