curl -X GET "https://yoursite.com/api/zapier/poll/customers" \
-H "authtoken: YOUR_API_TOKEN"
Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"data": [
{ "key": "customers", "label": "Customers", "description": "New or updated customers" },
{ "key": "invoices", "label": "Invoices", "description": "New or updated invoices" },
{ "key": "leads", "label": "Leads", "description": "New or updated leads" },
{ "key": "tasks", "label": "Tasks", "description": "New or updated tasks" },
{ "key": "tickets", "label": "Tickets", "description": "New or updated support tickets" }
]
}
Error-Response:
HTTP/1.1 404 Not Found
{
"error": "Method not found: invalid_get"
}