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 -X 'https://api.figment.io'  
     -H 'x-api-key: <api_key>'

You can view and manage your API keys in the Figment app's Developers section.


API keys and environments

When creating an API key you will need to select an environment: 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.