> For the complete documentation index, see [llms.txt](https://docs.airqo.net/airqo-rest-api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airqo.net/airqo-rest-api-documentation/introduction/reference.md).

# Authentication

{% hint style="info" %}
Please use the link below to access the full API reference documentation.
{% endhint %}

{% embed url="<https://platform.airqo.net/docs/api/intro/>" %}

## The BASE URL

`https://api.airqo.net/api/v2`

### Authentication

**IMPORTANT:** All API endpoints use `token` as a **query parameter**.

1. **Get AirQo Account:** Visit <https://analytics.airqo.net/user/login>
2. **Register Client:** Log in → Account Settings → API tab → Register CLIENT app
3. **Create Token:** Generate access token using client credentials
4. **Use Token:** Include as QUERY parameter in all requests

#### Example Request

```
GET https://api.airqo.net/v2/measurements/grids/64b7f3257249f0029fed743/recent?token=YOUR_ACCESS_TOKEN
```

*✅ Correct: Query parameter | ❌ Wrong: Authorization header*

{% hint style="info" %}
Please visit the embedded link below to read more
{% endhint %}

{% embed url="<https://platform.airqo.net/docs/api/intro/>" %}
