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-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 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
| 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 |
|---|---|---|
confirmationIdPflicht | string (uuid) |
Antworten
| Status | Beschreibung |
|---|---|
200 | Código novo enviado. |
404 | Cadastro pendente não encontrado (`EMAIL_CONFIRMATION_NOT_FOUND`). |
429 | Espere para pedir outro (`EMAIL_CODE_RESEND_COOLDOWN`), limite da hora (`EMAIL_CODE_RESEND_LIMIT`) ou e-mail travado (`EMAIL_CODE_LOCKED`). |
500 | Erro 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"}'