## 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

```
const sdk = await loginInteractive();
```

See [here](https://docs.barndoor.ai/sdks/introduction) for more info.
