# Описание асинхронного API

Если был выбран асинхронный метод, то предоставляется API для получения результатов.

Примечание: `<secret_key>` - это ключ, предоставляемый компании при встраивании `BotProtection`.

### Получить результаты по UUID

```http
POST /api/v1/result/uuid
Host: bp.yourcompany.com
X-Secret-Key: <secret_key>

Body: [uuid1, uuid2, uuid3 ...] // JSON-массив идентификаторов
```

Ответ BotProtection Machine:

```http
200 OK

Body: [12, 43, null ...] // JSON-массив похожести на ботов (null — пользователь не прошел испытание в BP SDK)
```

### Получить результаты по Device ID

```http
POST /api/v1/result/device
Host: bp.yourcompany.com
X-Secret-Key: <secret_key>

Body: [deviceid1, deviceid2, deviceid3 ...] // JSON-массив из Device ID
```

Ответ BotProtection Machine:

```http
200 OK

Body: [12, 43, null ...] // JSON-массив похожести на ботов (null — пользователь не прошел испытание в BP SDK)
```

### Получить результаты по Challenge ID

```http
POST /api/v1/result
Host: bp.yourcompany.com
X-Secret-Key: <secret_key>

Body: [challengeid1, challengeid2, challengeid3 ...] // JSON-массив из Challenge IDs
```

Ответ BotProtection Machine:

```http
200 OK

Body: [12, 43, null ...] // JSON-массив похожести на ботов (null — пользователь не прошел испытание в BP SDK)
```

###


---

# 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://docs.mobguards.com/ru/backend-integration/api-description.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.
