API Authentication
Learn how to authenticate requests to the Solvof HTTP API.
Overview
The Solvof API relies on a secure API Key to authenticate your requests. You can find this key in your Dashboard under Project Settings > API Keys.
Passing Your Secret Key
Depending on the endpoint, the API Key is either passed in the JSON payload (as apiKey) or in the x-api-key HTTP header. Check the specific endpoint documentation for details.
bash
1# Example: Passing API Key in Header2curl -X GET "https://gateway.solvof.com/public/events?limit=10" \3 -H "x-api-key: your_api_key_here"4 5# Example: Passing API Key in Payload6curl -X POST "https://gateway.solvof.com/public/track/batch" \7 -H "Content-Type: application/json" \8 -d '{9 "apiKey": "your_api_key_here",10 "events": [...]11 }'Security Warning
Never expose your API Key in client-side code, public repositories, or mobile applications. If your API Key is compromised, rotate it immediately in the dashboard.
Cross-Origin Resource Sharing (CORS)
Endpoints requiring the API Key do not support CORS. They will explicitly reject preflight OPTIONS requests to prevent accidental client-side usage of your API keys.