Hi all,
Trying to build a custom trigger in Zapier CLI to automate some process automation tasks. The OAuth2 flow is working fine, but creating the trigger keeps failing. It took like 2 hrs to debug the payload and it still won’t go through.
“Create a Trigger”
POST /api/v2/processautomation/triggers
The request looks correct but the API returns a 400 Bad Request.
{
"name": "Zapier_Event_Trigger",
"event": "conversation.closed",
"condition": "conversation.duration > 60"
}
Here is the setup:
- Environment: Genesys Cloud (London region)
- Tooling: Zapier CLI v1.4.2
- Method: Custom polling trigger
- Auth: Client Credentials grant
I tried to verify the trigger ID using GET /api/v2/processautomation/triggers/{triggerId} after a manual creation in the UI, but that works. The problem is only when the Zapier app tries to push the config.
edit: checked the logs and there is no specific error message in the body, just the 400 code. Tried changing the condition to a simple string, still nothing.