POST /v1/auth/me/email
POST /v1/auth/me/email — request email change. Sudo-gated. The
response is a constant message regardless of conflict outcome
(we silently no-op when the new address is already in use, so
this endpoint cannot enumerate accounts).
Tags: auth
Request body
Required.
JSON
{
"$ref": "#/components/schemas/ChangeEmailRequest"
}Responses
200
JSON
{
"$ref": "#/components/schemas/ChangeEmailResponse"
}401 — CONFIRMATION_REQUIRED — sudo grant required (POST /v1/auth/sudo first)
Code samples
TypeScript
TypeScript
import { firecase } from "@firecase/sdk";
const result = await firecase.post("/auth/me/email", { /* body */ });
console.log(result);Python
Python
import firecase
result = firecase.post("/auth/me/email", json={})
print(result)curl
Bash
curl -X POST https://api.firecase.ai/v1/auth/me/email \
-H "Authorization: Bearer $FIRECASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'