Reenvia o código do login (WhatsApp ou SMS)
POST/api/auth/login/two-factor/resend
- Auth
- Öffentlich
- API-Schlüssel:
- Kein API-Schlüssel möglich
- X-CommunityId
X-CommunityIdSende die X-CommunityId der Community, in der die Operation stattfindet.
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.
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.
Header
| Name | Typ | Beschreibung |
|---|---|---|
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 | Typ | Beschreibung |
|---|---|---|
challengeIdPflicht | string | |
channeloptional | whatsapp | sms |
Antworten
| Status | Beschreibung |
|---|---|
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-Beispiel
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"}'