# Authorization

{% hint style="info" %}
Each request to any Trader API endpoint should include your authorization header. For HTTP, gRPC, and WebSocket connections, your authorization should be included in the request headers. For QUIC/HTTP3 connections, your authorization is derived from your account's certificate over mTLS.
{% endhint %}

## Obtaining an Auth Header

If you're an existing bloXroute customer, you can use the same authorization header as you would use for any other Cloud API offering from bloXroute.

If you are not a bloXroute customer, you can create an account and you can find your header from our [account portal](https://portal.bloxroute.com/).

<figure><img src="/files/SwFiGR9TSpwdpBsWFXhc" alt=""><figcaption></figcaption></figure>

### Using the header

You should include the authorization header upon establishing any connection with the Trader API.&#x20;

{% tabs %}
{% tab title="HTTP" %}

```http
curl --header "Authorization: <YOUR-AUTHORIZATION-HEADER" https://ny.solana.dex.blxrbdn.com/api/v2/rate-limit
```

{% endtab %}

{% tab title="WebSocket" %}

```zsh
wscat -c wss://ny.solana.dex.blxrbdn.com/ws --header "Authorization: <YOUR-AUTHORIZATION-HEADER>"
```

{% endtab %}

{% tab title="gRPC" %}

```zsh
# Protobuf definitions available at https://github.com/bloXroute-Labs/solana-trader-proto/tree/develop
grpcurl -plaintext -import-path . \
  -proto api.proto \
  -H "Authorization: <YOUR-AUTHORIZATION-HEADER>" \
  -d '{}' \
  ny.solana.dex.blxrbdn.com:80 api.Api/GetRateLimit
```

{% endtab %}

{% tab title="QUIC" %}
{% hint style="info" %}
QUIC connections use mTLS authentication via your account's certificate/key pair, downloadable from your user portal. Please refer to our QUIC documentation for more information.
{% endhint %}
{% endtab %}
{% endtabs %}

### Client SDKs

By default, you can set the environment variable `AUTH_HEADER` to have our client SDKs automatically load the value for connections you make to the Trader API. You can also specify this manually –– consult each SDK's documentation for more details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bloxroute.com/solana/trader-api/introduction/authorization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
