> ## Documentation Index
> Fetch the complete documentation index at: https://docs.barndoor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Barndoor API Reference

## Welcome

Barndoor provides a robust API that allows developers to securely access their dashboard environment’s data and programmatically update settings relevant to their Barndoor organization.

## Authentication

All API endpoints are authenticated using a user Bearer token or a Platform API key.

* To obtain a platform API key, navigate to:  [https://app.barndoor.ai/settings/tokens](https://app.barndoor.ai/settings/tokens)
* To obtain a user token, use the Barndoor SDK's loginInteractive() method

```code theme={null}
const sdk = await loginInteractive();
```

See [here](/sdks/introduction) for more info.
