---
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
The publishable client key for authentication.
The project ID.
The sign-in code to validate.
## Response
Whether the provided sign-in code is valid.
```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
}
```