Integration
cURL backend integration.
Use this general server-side example as the starting point for jobs, articles, products, listings, events, announcements, or custom content.
cURL
How this integration works
Use this to test your project API key and webhook endpoint quickly.
Keep your zedgad API key on the server. The integration sends a title, summary, public URL, optional image URL, and any useful metadata to the project webhook.
- Run the command from your terminal, not from browser JavaScript.
- Replace YOUR_PROJECT_API_KEY with a key from your zedgad project.
- Use this for a quick smoke test before wiring a real backend integration.
cURL
Create terminal test command
Replace the sample content fields with your own model fields. The important part is that zedgad receives a stable ID, content type, title, summary, public URL, optional image URL, and any metadata you want to keep with the post.
terminal test command
curl -X POST "https://api.zedgad.com/api/webhooks/content/" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"external_id": "content_123",
"type": "article",
"title": "New Content Published",
"summary": "A short summary that will appear in the social post.",
"url": "https://yourwebsite.com/posts/new-content",
"image_url": "https://yourwebsite.com/images/new-content.jpg",
"metadata": {
"source": "website",
"category": "Updates"
}
}'