---
title: "Get earned broker fees."
method: GET
path: "/fees"
tags: ["Fees"]
---

# Get earned broker fees.

`GET /fees`

## Request

- Base URL: `https://chainflip-broker.io`
- URL: `https://chainflip-broker.io/fees`
- Auth: one of:
  - API key in query parameter `apiKey`
  - API key in header `X-API-Key`

Returns the broker fees you have earned so far, per asset, in human-readable and
native units. The BaaS operating fee is already deducted, so these are the amounts
that are yours.

## Query parameters

- `apiKey` string

## Response `200`

The earned broker fees.

- ChainflipBaasFeesFeesResponse: The broker fees you have earned so far, per asset id, after the BaaS operating fee.
  - `earnedFees` object: Earned broker fees per asset.
  - `earnedFeesNative` object: Earned broker fees per asset in native units.
  - `byProvider` object, nullable: The same fees per provider, keyed by provider (e.g. `chainflip`).

## Other responses

- `400`: The request has invalid information.
- `401`: The partner does not have access.
- `500`: An error occurred.

---

[API](https://skmtc.dev/chainflip-broker/apis/chainflip-broker-as-a-service.md) · [All operations](https://skmtc.dev/chainflip-broker/apis/chainflip-broker-as-a-service/llms.txt) · [OpenAPI document](https://skmtc.dev/chainflip-broker/apis/chainflip-broker-as-a-service/revisions/3c819d79d6b9?raw)
