# 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`](https://doc-op.blurit.io/2.0.7/blurit-on-premise/usage/api/license) 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`](https://doc-op.blurit.io/2.0.7/blurit-on-premise/usage/api/tasks) endpoint. You can also add a blur task for a directory by using the POST method on the [`/api/blur_it/directory`](https://doc-op.blurit.io/2.0.7/blurit-on-premise/usage/api/tasks/process-a-directory) endpoint.

Moreover, the API allows you to retrieve the status of a task by using the GET method on the [`/api/task/{task_id}`](https://doc-op.blurit.io/2.0.7/blurit-on-premise/usage/api/tasks/get-the-status-of-a-task) 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="api/license">license</a></td></tr><tr><td></td><td>Blur it</td><td></td><td><a href="api/tasks">tasks</a></td></tr><tr><td></td><td>Blur it directory</td><td></td><td><a href="api/tasks/process-a-directory">process-a-directory</a></td></tr><tr><td></td><td>Task</td><td></td><td><a href="api/tasks/get-the-status-of-a-task">get-the-status-of-a-task</a></td></tr></tbody></table>
