---
title: "درخواست کد ورود"
method: POST
path: "/auth/request-otp"
tags: ["auth"]
---

# درخواست کد ورود

`POST /auth/request-otp`

## Request

- Base URL: `https://barchin.net/api`
- URL: `https://barchin.net/api/auth/request-otp`
- Auth: none declared

## Request body

- OtpRequestIn
  - `phone_number` string, required

## Response `200`

Successful Response

- OtpRequestOut
  - `phone_number` string, required
  - `expires_in` integer, required
  - `resend_after` integer, required
  - `debug_code` string, nullable: فقط در DEBUG_MODE برگردانده می‌شود.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests

---

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