---
title: "Check Sign-In Code"
description: "Check if a sign-in code is valid without consuming it."
api: "POST /api/v1/auth/otp/sign-in/check-code"
---

## Request

<ParamField header="x-stack-publishable-client-key" type="string" required>
  The publishable client key for authentication.
</ParamField>

<ParamField header="x-stack-project-id" type="string" required>
  The project ID.
</ParamField>

<ParamField body="code" type="string" required>
  The sign-in code to validate.
</ParamField>

## Response

<ResponseField name="is_valid" type="boolean">
  Whether the provided sign-in code is valid.
</ResponseField>

<CodeGroup>
```bash cURL
curl -X POST 'https://api.stack-auth.com/api/v1/auth/otp/sign-in/check-code' \
  -H 'Content-Type: application/json' \
  -H 'x-stack-publishable-client-key: YOUR_PUBLISHABLE_CLIENT_KEY' \
  -H 'x-stack-project-id: YOUR_PROJECT_ID' \
  -d '{
    "code": "123456"
  }'
```

```json 200 Response
{
  "is_valid": true
}
```
</CodeGroup>
