Authentication
Authenticate API requests with a FiscalRail secret key.
View as Markdown
FiscalRail authenticates API requests with secret keys. Create the first key from Developers → API keys in the dashboard. Once authenticated, you can manage API keys through the API.
Send your key as a Bearer token in the Authorization header:
Authorization: Bearer ak_...
Secret keys provide access to an account and must only be used in trusted server-side code. Do not put them in browser code, mobile applications, source control or public documentation.
Keys beginning with ak_test_ are reserved for the test environment. Live keys use the ak_ prefix without the test marker. A secret key is only shown once when it is created, so store it securely.