---
title: "POST /api/auth/code/verify"
method: POST
path: "/api/auth/code/verify"
tags: ["Public"]
---

# POST /api/auth/code/verify

`POST /api/auth/code/verify`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/auth/code/verify`
- Auth: none required

Check a sign-in code and receive the challenge token the Auth.js callback takes

## Request body

- object
  - `email` string, required
  - `code` string, required

## Response `200`

Code accepted

- AuthCodeVerifyResult
  - `email` string, required
  - `challengeToken` string, required
  - `expiresInSeconds` integer, required
  - `requiresProfileCompletion` boolean, required
  - `profile` AuthProfileName, required
    - `firstName` string, nullable, required
    - `lastName` string, nullable, required

## Other responses

- `400`: Invalid email or code
- `429`: Rate limited; retryAfterSeconds says when to try again

---

[API](https://skmtc.dev/idkrx/apis/idkrx-api.md) · [All operations](https://skmtc.dev/idkrx/apis/idkrx-api/llms.txt) · [OpenAPI document](https://skmtc.dev/idkrx/apis/idkrx-api/revisions/086725fb5578?raw)
