# 1. Create a new topic search
curl -X POST https://api.trigify.io/v1/topics \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "AI Infrastructure Buyers",
"keywords": ["ai infrastructure", "model serving", "vector database"],
"keywords_and": ["buying", "vendor selection"],
"keywords_not": ["hiring", "job opening"],
"job_titles": ["CTO", "VP Engineering", "Head of Data"],
"time_frame": "past-week",
"max_results": 50,
"content_type": "posts",
"sort_by": "date_posted"
}'
# 2. List current searches
curl -X GET "https://api.trigify.io/v1/topics?page=1&page_size=10" \
-H "x-api-key: YOUR_API_KEY"
# 3. Read deduplicated engagers for one topic
curl -X GET "https://api.trigify.io/v1/topics/topic_abc123xyz/engagements?page=1&page_size=25" \
-H "x-api-key: YOUR_API_KEY"
# 4. Read one tracked post only
curl -X GET "https://api.trigify.io/v1/topics/topic_abc123xyz/posts/7356241888074958848/engagements?page=1&page_size=25" \
-H "x-api-key: YOUR_API_KEY"
# 5. Review billing-period credit allocation
curl -X GET "https://api.trigify.io/v1/topics/topic_abc123xyz/credits-summary" \
-H "x-api-key: YOUR_API_KEY"
# 6. Query the engagement graph collected from your topics
curl -X POST https://api.trigify.io/v1/social/mapping \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"engaged_with_keywords": ["ai infrastructure", "model serving"],
"engaged_with_days": 14,
"engaged_with_topic_strength": 2,
"job_titles": ["CTO", "VP Engineering"],
"company_sizes": ["51-200", "201-500"],
"page": 1,
"page_size": 10
}'