← Back to Help Center
SDK & API Reference
Available SDKs
- @gravity-ai/react: React SDK
- @gravity-ai/api: API SDK (JS/TS)
- REST API: Direct HTTP access
Authentication
All requests require a Publisher API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Get your API key from the Gravity Dashboard.
Quick start (REST API)
curl -X POST https://server.trygravity.ai/ad \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "What CRM should I use?"}'