---
title: "Exchange the e-mailed code for a Firebase custom token"
method: POST
path: "/api/auth/code/verify"
tags: ["auth"]
---

# Exchange the e-mailed code for a Firebase custom token

`POST /api/auth/code/verify`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/auth/code/verify`
- Auth: none declared

## Request body

- AuthCodeVerifyBody
  - `identifier` string, required
  - `code` string, required

## Response `200`

Signed in: `signInWithCustomToken(customToken)` in the browser.

- AuthCodeVerifyResponse
  - `customToken` string, required

## Other responses

- `400`: Wrong, expired or burnt code (`invalid_code`).
- `403`: This account is not allowed to sign in yet (`signin_restricted`).
- `429`: Rate limited.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
