Authentication
How to authenticate with the BlueGamma API using your API key.
All BlueGamma API requests are authenticated with an API key that you issue yourself from the app.
Getting an API Key
You issue your own key. There is no form and no waiting:
Sign in at app.bluegamma.io
Open API Keys in the sidebar, under Developer
Click Create API key
Optionally, give the key a name under Key name (optional), for example Production or Excel add-in, then click Create key
The key is shown once, when it is created, so copy it before you leave the page. The same page has a ready-made request you can copy and run.
Trial accounts and plans that include API access can issue keys. A trial key returns live data on every index for 14 days. See Trials and Billing for what changes when you pick a plan.
Paid organisations can hold up to 5 keys, and trial accounts 1.
Using Your API Key
Include your API key in the x-api-key header with every request:
curl -X GET "https://api.bluegamma.io/v1/swap_rate?index=SOFR&start_date=0D&maturity_date=5Y&fixed_leg_frequency=6M" \
-H "x-api-key: your_api_key_here"Example Requests
Python:
JavaScript:
Error Responses
Errors come back as JSON with a message saying what went wrong: a detail field from BlueGamma, or a message field for API key and rate limit errors.
400
The request is valid but can't be served, for example an unknown or discontinued index. The detail field says what to change
403
Missing or invalid API key, an expired trial key, or a request your key is not allowed to make — read the detail field, which says which
404
The requested data could not be found
422
A parameter failed validation, for example an invalid date such as 2026-02-30. The detail field says which parameter and what it expects
429
Rate limit exceeded. Wait the number of seconds in the Retry-After header, then retry. See Rate Limits
500, 502, 504
The request failed on our side, or took longer than 29 seconds (504). Retry later, and split very large requests
Security Best Practices
Keep your API key secret — Don't commit it to version control or expose it in client-side code
Use environment variables — Store your key in environment variables rather than hardcoding
Rotate if compromised: if a key is exposed, open the key's menu on the API Keys page, choose Delete Key, and create a new one
Need Help?
If you're having trouble authenticating, email support@bluegamma.io.
Last updated
Was this helpful?

