> For the complete documentation index, see [llms.txt](https://docs.fly.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fly.trade/developers/api-reference/requesting-and-using-api-key.md).

# Requesting and Using API Key

## How to request API key

If you'd like an API key, open a support ticket on our [Discord](https://discord.com/invite/flytrade) in order to request one. In your request, please include detailed information about your project and/or how you intend to utilize our APIs.

## How to use API key

Include the `apikey` header alongside the request. To verify that the API key is working, check if the response contains `x-auth-status: authenticated` header.

```
$ curl -I -H 'apikey: <APIKEY>' https://api.magpiefi.xyz/ | grep -i 'x-auth-status'
```

### Endpoint Guidelines

* Public Access Endpoint: <https://api.fly.trade>
  * This endpoint is intended for general public use and does not require API key authentication.
* Authenticated Access Endpoint: <https://api.magpiefi.xyz>
  * You must use this endpoint with your API key included as described above.
