Skip to content

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

NameTypeDescription
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

NameTypeDescription
challengeIdrequiredstring
channeloptionalwhatsapp | sms

Responses

StatusDescription
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 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"}'