API Documentation
Integrate GetCapi into your applications.
Quick Start
Send your first server-side event in minutes
3
Send an event
curl -X POST https://api.getcapi.co/api/v1/events \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"event_name": "Purchase",
"event_type": "conversion",
"container_id": "YOUR_CONTAINER_ID",
"payload": {
"value": 99.99,
"currency": "USD",
"transaction_id": "txn_123456"
},
"user_data": {
"email": "customer@example.com",
"phone": "+15551234567",
"external_id": "user_123"
},
"event_id": "order_123456",
"event_time": 1704067200000
}'- Authenticate every request with the X-API-Key header. Bearer tokens are not accepted.
- event_time is a Unix timestamp in milliseconds (optional, defaults to now).
- Send a stable event_id (max 64 characters), such as your order ID, so retries and browser/server duplicates are counted once.
API Reference
Endpoints you can call with an API key. Base URL: https://api.getcapi.co
POST
/api/v1/eventsSend a server-side eventX-API-KeyGET
/api/v1/events/healthEvent ingestion health checkNo key neededSDKs & Libraries
Node.js and Python clients are in development and not yet published to npm or PyPI. Until then, call the REST API directly as shown above: it is the same request the SDKs will send.
Node.js / TypeScript
@getcapi/sdk
Python
getcapi