> ## Documentation Index
> Fetch the complete documentation index at: https://docs.figment.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

### Base URL

The base URL to send all API requests is `https://api.figment.io`. HTTPS is required for all API requests. Calls made over plain HTTP will be redirected to https with a HTTP 301 status code.

### API keys

The Figment API uses API keys to authenticate requests. It expects the API key to be passed in `x-api-key` header.

```curl
curl --request GET \
     --url 'https://api.figment.io/' \
     --header 'x-api-key: your-api-key-here'
```

You can view and manage your API keys in the [Figment app](https://app.figment.io/)'s Developers section.

<Embed url="https://demo.arcade.software/IiCJx4hR1SNKrZFJBatT?embed&show_copy_link=true" title="iframe" provider="demo.arcade.software" href="https://demo.arcade.software/IiCJx4hR1SNKrZFJBatT?embed&show_copy_link=true" typeOfEmbed="iframe" height="400px" width="80%" iframe="true" />

<br />

### Permissions

API keys permissions (or scope) can be either `Read/Write` or `Read-Only`

* `Read/Write` API keys will work for all endpoints.
* `Read-Only` API keys will not work for [Create Validators](https://docs.figment.io/reference/create-validators) and [Exit Validators](https://docs.figment.io/reference/exit-validators) endpoints.

### Environments

API keys environment can be either `test` or `production`

* API keys with the `test` environment will only work with testnets and devnets
* API keys with the `production` environment will only work with mainnets.

### OpenAPI

Our API follows the Open API spec, version 3.1.0. You can download the latest YAML file at [https://api.figment.io/openapi/figment-api.yaml](https://api.figment.io/openapi/figment-api.yaml).