Base URL
Authentication
All API requests require authentication using an API key:Get your API key from the Better Data Dashboard
SDKs
TypeScript/Node.js
Python
Go
Quick Example
Response Format
All API responses follow this structure:Success Response
Error Response
Error Codes
| Code | Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Invalid or missing API key |
FORBIDDEN | 403 | Insufficient permissions |
NOT_FOUND | 404 | Resource not found |
VALIDATION_ERROR | 400 | Invalid request parameters |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
INTERNAL_ERROR | 500 | Server error |
SERVICE_UNAVAILABLE | 503 | Service temporarily unavailable |
Rate Limiting
API requests are rate-limited per API key:| Plan | Rate Limit |
|---|---|
| Free | 100 requests/minute |
| Starter | 1,000 requests/minute |
| Growth | 10,000 requests/minute |
| Enterprise | Custom |
Pagination
List endpoints support cursor-based pagination:Filtering
Use query parameters to filter results:Sorting
Sort results using thesort parameter:
Webhooks
Subscribe to real-time events:Webhook Events
View all available webhook events
API Endpoints
Gateway Endpoints
List tools, execute tools, chat completions
Session Endpoints
Create, get, update, delete sessions
Integration Endpoints
Connect Shopify, Square, sync products
Analytics Endpoints
Get metrics, attribution, conversion data