Reenvia o código do login (WhatsApp ou SMS)
POST/api/auth/login/two-factor/resend
- Auth
- Public
- API key:
- No API key accepted
- 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.
Um código novo para o login pendente; o anterior deixa de valer. `channel: sms` manda por SMS ("Receber por SMS"); sem `channel`, WhatsApp primeiro e SMS quando o WhatsApp não aceita o número. Os limites da verificação de telefone valem (um código por minuto: **429** com `Retry-After`; por telefone, conta e IP). O código é da plataforma: não depende do canal nem da cota da comunidade. Público.
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 |
|---|---|---|
challengeIdrequired | string | |
channeloptional | whatsapp | sms |
Responses
| Status | Description |
|---|---|
200 | Código enviado. |
400 | Requisição inválida — falha de validação. |
422 | País sem WhatsApp nem SMS suportado, ou caro demais. |
429 | Tentativas demais. O header `Retry-After` diz em quantos segundos tentar de novo. |
curl example
curl -X POST "https://api.memberfy.net/api/auth/login/two-factor/resend" \
-H "X-CommunityId: $COMMUNITY_ID" \
-H "Content-Type: application/json" \
-d '{"challengeId":"string"}'