cURL
curl --request POST \ --url https://api.portable.io/v2/workflows/{id}/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "provider": "slack", "credential_source_id": 123, "event_type": "<string>" } '
{ "data": { "id": 123, "webhook_id": "<string>", "workflow_id": 123, "provider": "slack", "url": "<string>", "status": "active", "trigger_count": 123, "credential_source_id": 123, "created_at": "2023-11-07T05:31:56Z", "event_type": "<string>", "last_triggered_at": "2023-11-07T05:31:56Z" } }
Create a new webhook trigger for a workflow
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID
Webhook provider type
slack
github
stripe
generic
ID of the credential source containing signing secret
Provider-specific event type filter
Created
Show child attributes
Database ID of the webhook trigger
UUID used in the webhook URL
ID of the workflow this webhook triggers
Full webhook URL
Current status of the webhook
active
paused
disabled
Total number of times this webhook has been triggered
When the webhook trigger was created
Last time this webhook was triggered