Connect Meta Conversions API, save pixel and event defaults, refresh available ad accounts and pixels, and queue server-side conversion events through the released delivery pipeline. This page lists the required credentials, setup example, mapped endpoints, and production notes.
Base URL
https://staging-api.trendsagi.com123
Routes
24
Guides
3
Languages
Server-side conversion event delivery for Meta pixels
Connect Meta Conversions API, save pixel and event defaults, refresh available ad accounts and pixels, and queue server-side conversion events through the released delivery pipeline.
Install
No SDK required. Use TrendsAGI Meta CAPI integration endpoints.Required credentials
export TRENDSAGI_API_KEY="<TRENDSAGI_API_KEY>"
# 1) Check connector readiness and saved defaults
curl -X GET "https://api.trendsagi.com/api/integrations/meta-capi/status" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY"
# 2) Connect and save pixel/event defaults
curl -X POST "https://api.trendsagi.com/api/integrations/meta-capi/connect" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"pixel_id": "1234567890",
"event_name": "Purchase",
"action_source": "website",
"event_source_url": "https://example.com/checkout"
}'
# 3) Refresh available ad accounts and pixels
curl -X POST "https://api.trendsagi.com/api/integrations/meta-capi/resources/refresh" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY"
# 4) Queue a server-side conversion event
curl -X POST "https://api.trendsagi.com/api/integrations/meta-capi/push" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event_name": "Purchase",
"event_id": "order_123",
"action_source": "website",
"user_data": {
"em": ["hashed-email"],
"external_id": ["customer_123"]
},
"custom_data": {
"value": 129.99,
"currency": "USD"
}
}'# Save as quickstart.sh
bash quickstart.sh1. Install
Add SDK/dependency for this integration path.
2. Authenticate
Set API key and any provider-specific credentials.
3. Map endpoints
Use mapped endpoints below to build deterministic flow.
4. Harden
Add rate-limit backoff, idempotency, and safety gates.
Endpoint Mapping
Each integration is mapped to specific API endpoints so teams can compose deterministic workflows.
Production notes