> ## Documentation Index
> Fetch the complete documentation index at: https://developers.acorianacorretora.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Understand general concepts, response codes, and authentication strategies.

## Base URL

Açoriana's API is built on REST principles. We enforce HTTPS in every request to improve data security, integrity, and privacy. The API does not support HTTP.

```text Production theme={null}
https://fxaas.acorianacorretora.com.br
```

```text Sandbox theme={null}
https://fxaas-dev.acorianacorretora.com.br
```

## Authentication

Authentication in our API follows a two-step process:

<Steps>
  <Step title="First Step">
    First, our team will get in contact and send all your credentials via
    e-mail.
  </Step>

  <Step title="Second Step">
    Once you get your credentials, you will be able to generate a Bearer token
    through our authentication endpoint. This token will be used to authenticate
    all your API requests.
  </Step>
</Steps>

### Generating a Bearer Token

To get your Bearer token, make a POST request to the authentication endpoint with your API key:

```bash theme={null}
curl -X POST https://fxaas-dev.acorianacorretora.com.br/auth/token \
-H "Content-Type: application/json" \
-H "X-API-KEY: {Your API Key}"
```

### Using the Bearer Token

Once you have your Bearer token, include it in the Authorization header of all API requests:

```bash theme={null}
curl -X GET https://fxaas-dev.acorianacorretora.com.br/endpoint \
-H "Authorization: Bearer your_token_here"
```
