# Api

The Jori API enables pharma, biotech, researchers, and governments to run population-level queries on  data.&#x20;

## Executes user-written python code in Jori's FHIR data warehouse

<mark style="color:green;">`POST`</mark> `https://api.jori.health/v1/code`

The user writes a custom script to be ran over a

#### Request Body

| Name                                   | Type   | Description                        |
| -------------------------------------- | ------ | ---------------------------------- |
| code<mark style="color:red;">\*</mark> | String | Python code to be executed in Jori |

{% tabs %}
{% tab title="200: OK " %}


```json
{
    "error": null,
    "execution_time": 32.84267520904541,
    "logs": "",
    "output": "[OUTPUT]",
    "successful": true
}
```
{% endtab %}
{% endtabs %}
