---
title: Authentication & API keys
slug: authentication-and-api-keys
docTags: 
createdAt: 2023-04-12T07:54:48.000Z
---

## Base URL

This is the URL that should prefix all API requests: https\://api.brella.io/api/integration/.&#x20;

:::hint{type="warning"}
**Note:&#x20;**&#x41;ll requests should be made over SSL, and API key authenticated endpoints shouldn't be used in client-side code for security purposes. If you need to display data on a public website, please use our "Public API endpoints" or pre-built widgets. API keys must be treated as passwords, as they offer both read and write access to your Brella organization and event data.
:::

## Authentication

Authentication works by sending your unique API key using the Brella-API-Access-Token header to your request.

## Getting your unique API key

:::hint{type="danger"}
**Please note:&#x20;**&#x41;PI keys grant access to data in your Brella organization and should be treated as passwords. API keys should only be shared with trusted parties in a secure manner (eg: using a password / credential manager or secure sharing platform)
:::

If you have purchased API access, all **organization admins** in your Brella organization should see an “API key” section in the organization view of your Admin Panel.

**Note:&#x20;**&#x54;he “API key” option is not available to event admins and sponsor admins.

Click on the green “Create key” button to generate a unique API key. The generated API key is tied to the organization admin who generated it — and is valid for accessing data in every organization they are a part of. If that organization admin is removed from an organization, the API key will not be able to access data within it.



![](https://api.archbee.com/api/optimize/11QWKB68xWhk4CIcqFyE2/giCykb45vYNW7M9Sw4dNg_image.png)



![](https://api.archbee.com/api/optimize/11QWKB68xWhk4CIcqFyE2/AJPcfvNZx3h8q73aGpS75_image.png)

## Content type & data format

The Brella API works with json data. In addition to the Authentication header (Brella-API-Access-Token: \[APIKEY]), every request must contain the following headers:

`Content-Type: application/json`

`Accept: application/vnd.brella.v4+json`

This API is organized around [REST](http://en.wikipedia.org/wiki/Representational_State_Transfer). All request and response bodies, including errors, are encoded in JSON.

Request bodies have no root element and use snake\_case for object keys.

Response bodies comply with the [JSON API](https://jsonapi.org/) specification.



