---
title: "🔒 Проверка доступности телефона или email для нового пользователя."
method: GET
path: "/user/check"
tags: ["Users"]
---

# 🔒 Проверка доступности телефона или email для нового пользователя.

`GET /user/check`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/user/check`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

Проверка доступности телефона или email для нового пользователя.

**Access:** `authorized` (10 ) · **allowNullCompany:** true · **Scope:** `read`

**Allows:** не требуются — phone and email availability check during sign-up and profile editing, rate-limited

### TypeScript (copy-paste)

**`GET /user/check`**

<details open><summary><b>Params</b></summary>

```typescript
export interface UserCheckParams {
  /** Phone number */
  phone?: string | null
  email?: string | null
  zoomEmail?: string | null
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type UserCheckResponse = IServerResponse<Resp_user_check>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Query parameters

- `phone` string, nullable: Phone number
- `email` string, email, nullable
- `zoomEmail` string, email, nullable

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Response `200`

OK — `IServerResponse<Resp_user_check>`

- object
  - `code` integer, required
  - `data` RespUserCheck, required: ResponseData for user/check
    - `ok` boolean, required
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest: At least one of phone or email query parameters must be provided
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed — недостаточно прав или неверная подпись
- `406`: TimeResync — расхождение rts с сервером
- `429`: TooManyRequests: Rate limit exceeded for check availability requests

---

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