# API

The BlurIt OP API offers several functionalities. It allows you to obtain the current license by using the GET method on the [`/api/license`](/2.5.4/blurit-on-premise/usage/api/license.md) endpoint. Additionally, you can add a new license by using the POST method on the same endpoint. If a license already exists, it will be replaced by the new license.

Furthermore, the API provides the capability to add a blur task to the queue by using the POST method on the [`/api/blur_it`](/2.5.4/blurit-on-premise/usage/api/tasks.md) endpoint. You can also add a blur task for a directory by using the POST method on the [`/api/blur_it/directory`](/2.5.4/blurit-on-premise/usage/api/tasks/process-a-directory.md) endpoint.

Moreover, the API allows you to retrieve the status of a task by using the GET method on the [`/api/task/{task_id}`](/2.5.4/blurit-on-premise/usage/api/tasks/get-the-status-of-a-task.md) endpoint, where "task\_id" is the task identifier.

\
The API documentation can be found at `http://<HOST>/api/docs`, where `HOST` is the IP address of the machine.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td></td><td>License</td><td></td><td><a href="/pages/fyzHZmNTxiZdMLer38C5">/pages/fyzHZmNTxiZdMLer38C5</a></td></tr><tr><td></td><td>Blur it</td><td></td><td><a href="/pages/o6O0IRb9m627GmtW8A4A">/pages/o6O0IRb9m627GmtW8A4A</a></td></tr><tr><td></td><td>Blur it directory</td><td></td><td><a href="/pages/WmpKlZGkMqQi7MBpanHf">/pages/WmpKlZGkMqQi7MBpanHf</a></td></tr><tr><td></td><td>Task</td><td></td><td><a href="/pages/epuVjx0DYx1XI0b1chXz">/pages/epuVjx0DYx1XI0b1chXz</a></td></tr></tbody></table>


---

# 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://doc-op.blurit.io/2.5.4/blurit-on-premise/usage/api.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.
