API Reference

Complete API reference for the FairStack REST API. Base URL, authentication, response format.

Base URL

https://api.fairstack.ai/v1

Authentication

All requests require an API key in the Authorization header:

Authorization: Bearer fs_live_YOUR_API_KEY

See Authentication for details on API key scopes and spending caps.

Response format

All responses are JSON. Successful responses return the result directly. Errors return an error object:

{'{'}"error": {'{'}"code": "string", "message": "string", "status": 400}}

Endpoints