---
title: "Получить список ключей"
method: POST
path: "/api-v2/auth/keys/get"
tags: ["Авторизация"]
---

# Получить список ключей

`POST /api-v2/auth/keys/get`

## Request

- Base URL: `https://api-docs.yougile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.yougile.com/api-v2/auth/keys/get`
- Auth: none declared

## Request body

- CredentialsWithCompanyOptionalDto
  - `login` string, required: Логин пользователя
  - `password` string, required: Пароль пользователя
  - `companyId` string: ID компании. Для получения ID компании можно использовать горячие клавиши в интерфейсе (Ctrl+Alt+Q / Ctrl+Option+Q для Mac) или воспользоваться [методом POST /auth/companies](../operations/getCompanies)

## Response `200`

- AuthKeyWithDetailsDto[]
  - `key` string, required: Ключ авторизации
  - `companyId` string, required: ID компании, к которой относится ключ
  - `timestamp` number, required: Время создания
  - `deleted` boolean, required: Ключ удален - да/нет

## Other responses

- `400`
- `401`
- `403`
- `429`

---

[API](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0.md) - [All operations](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/revisions/9452cba35716?raw)
