POST
/api/auth/send-code
Send verification code
Sends an email verification code for registration or password reset.
curl -s -X POST "$BASE/api/auth/send-code" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "type": "register"}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| string | Y | — | ||
| type | string (register | reset) | N | — | Purpose of the verification code |