Registra um novo membro
POST/api/auth/register
- Auth
- Public
- 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.
Cria um membro e, quando o header `X-CommunityId` é enviado, já o vincula à comunidade com o papel `MEMBER`. Não exige autenticação.
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. |
Request body application/json
| Name | Type | Description |
|---|---|---|
fullNamerequired | string | |
emailrequired | string (email) | |
passwordrequired | string (password) | Regra única (AUTH-5): mínimo de 8 caracteres, com letra maiúscula, letra minúscula e número. Fora dela, 400 com param = password e a regra que faltou. · min 8 |
Responses
| Status | Description |
|---|---|
201 | Membro criado com sucesso. |
400 | Requisição inválida — falha de validação. |
500 | Erro interno do servidor. |
curl example
curl -X POST "https://api.memberfy.net/api/auth/register" \
-H "X-CommunityId: $COMMUNITY_ID" \
-H "Content-Type: application/json" \
-d '{"fullName":"Maria Silva","email":"[email protected]","password":"Senha@123"}'