Zum Inhalt springen

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-CommunityId Sende 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

NameTypBeschreibung
X-CommunityIdoptionalstring (uuid)ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade.

Request-Body application/json

NameTypBeschreibung
challengeIdPflichtstring
channeloptionalwhatsapp | sms

Antworten

StatusBeschreibung
200Código enviado.
400Requisição inválida — falha de validação.
422País sem WhatsApp nem SMS suportado, ou caro demais.
429Tentativas 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"}'