Consulta a configuração de gamificação
GET/api/gamification/config
- Auth
- Requires a token
- Who can call it:
- owner
- admin
- X-CommunityId
X-CommunityIdSend the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.
Se a gamificação está ligada (`isEnabled`) e quantos pontos vale cada ação (`actionRules`: `{ CREATE_POST: { points, isActive } }`) na comunidade do `X-CommunityId`. Hoje responde a qualquer usuário autenticado; o app só a chama na aba de gamificação de Membros (owner e admin). Para a tela de ranking, use `GET /api/gamification`.
Headers
| Name | Type | Description |
|---|---|---|
X-CommunityIdoptional | string (uuid) | ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade. |
Responses
| Status | Description |
|---|---|
200 | Operação realizada com sucesso. |
400 | Requisição inválida — falha de validação. |
401 | Token ausente, inválido ou expirado. |
500 | Erro interno do servidor. |
curl example
curl -X GET "https://api.memberfy.net/api/gamification/config" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"