Zum Inhalt springen

Reenvia o código de confirmação de um cadastro

POST/api/auth/confirm-email/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 cadastro pendente `confirmationId` (o anterior deixa de valer e as 5 tentativas recomeçam). No máximo um a cada 60 segundos (429 `EMAIL_CODE_RESEND_COOLDOWN`) e 5 por hora por e-mail nesta comunidade, contando o do cadastro, e 3 por hora por e-mail somando todas as comunidades (429 `EMAIL_CODE_RESEND_LIMIT`); os dois com `Retry-After` e `data.retryAfterSeconds`. Cadastro desconhecido, usado, cancelado ou com mais de 24 horas: 404 `EMAIL_CONFIRMATION_NOT_FOUND`.

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
confirmationIdPflichtstring (uuid)

Antworten

StatusBeschreibung
200Código novo enviado.
404Cadastro pendente não encontrado (`EMAIL_CONFIRMATION_NOT_FOUND`).
429Espere para pedir outro (`EMAIL_CODE_RESEND_COOLDOWN`), limite da hora (`EMAIL_CODE_RESEND_LIMIT`) ou e-mail travado (`EMAIL_CODE_LOCKED`).
500Erro interno do servidor.

curl-Beispiel

curl -X POST "https://api.memberfy.net/api/auth/confirm-email/resend" \
  -H "X-CommunityId: $COMMUNITY_ID" \
  -H "Content-Type: application/json" \
  -d '{"confirmationId":"3f1c2b9e-7a54-4d1e-9c3b-2a6f8e1d0b47"}'