Test Trigger
GET/api/zapier/test/{resource}
Returns sample data for testing automation triggers. Used by automation platforms to validate trigger configuration and show sample data structure to users.
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
| Authorization | String | optional Bearer token (alternative to authtoken header) |
Parameters
| Field | Type | Description |
|---|---|---|
| resource | String | Resource name. Must be one of: customers, invoices, leads, tasks, tickets |
curl -X GET "https://yoursite.com/api/zapier/test/customers" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"data": {
"id": 1,
"company": "Sample Company",
"email": "sample@example.com",
"phone": "+1234567890"
}
} Error-Response:
HTTP/1.1 400 Bad Request
{
"status": false,
"message": "Resource parameter required"
}