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

# Получить список компаний

`POST /api-v2/auth/companies`

## 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/companies`
- Auth: none declared

## Query parameters

- `limit` number
- `offset` number

## Request body

- CredentialsWithNameDto
  - `login` string, required: Логин пользователя
  - `password` string, required: Пароль пользователя
  - `name` string: Название компании

## Response `200`

- CompanyListDto
  - `paging` PagingMetadata, required
    - `count` number, required: Количество элементов в результате
    - `limit` number, required: Количество элементов на страницу
    - `offset` number, required: Индекс первого элемента страницы
    - `next` boolean, required: Есть ли элементы после данной страницы
  - `content` CompanyListDtoBase[], required: Список компаний пользователя
    - `id` string, required: ID объекта
    - `name` string, required: Название компании
    - `isAdmin` boolean, required: Права администратора в компании

## Other responses

- `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)
