# Выгрузить список самозанятых

Чтобы получить список актуальных самозанятых, с подробной информацией о всех исполнителях, подключенных к платформе, необходимо использовать метод **self-employed/actual.**&#x20;

При успешной отправке запроса, вернется массив с данными о самозанятых, которые подключены к компании-партнеру, в том числе их идентификаторы в системе.

**Пример запроса:**&#x20;

{% tabs %}
{% tab title="сURL" %}

```bash
curl --location --request GET 'https://business.selfwork.ru/selfemployed/business/v1/self-employed/actual' \
--header 'X-Login: example' \
--header 'X-Password: 591c0bcd4a41137fe9fce94dfba74e24' \
--data-raw ''
```

{% endtab %}

{% tab title="JS" %}

```javascript
var axios = require('axios');
var data = '';

var config = {
  method: 'get',
  url: 'https://business.selfwork.ru/selfemployed/business/v1/self-employed/actual',
  headers: { 
    'X-Login': 'example', 
    'X-Password': '591c0bcd4a41137fe9fce94dfba74e24'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
```

{% endtab %}
{% endtabs %}

**Пример ответа:**&#x20;

```json
[
  {
    "id": 10,
    "firstName": "Виктор",
    "lastName": "Иванов",
    "middleName": "Викторович",
    "birthDate": "1994-01-27T00:00:00.000+0000",
    "state": 3,
    "gender": "M",
    "bankCards": [
      "2222********5555",
      "2222********6666",
      "2222********7777"
    ],
    "inn": 1234567890,
    "phone": "+79612345678",
    "actionName": "Программист",
    "comment": "string"
  }
```

**State -** актуальный статус самозанятого в системе.&#x20;

| State | Описание                                   |
| ----- | ------------------------------------------ |
| 0     | новый, не обработан                        |
| 1     | в обработке                                |
| 2     | не самозанятый                             |
| 3     | самозанятый, не предоставил права площадке |
| 4     | самозанятый                                |
| 5     | согласие отозвано                          |
| 6     | архивный                                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sergey-bedihin.gitbook.io/rabota-s-api/rabota-s-samozanyatymi/vygruzit-spisok-samozanyatykh.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
