forked from workato-devs/workato-platform-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebhook-api-recipe.json
More file actions
100 lines (100 loc) · 2.68 KB
/
webhook-api-recipe.json
File metadata and controls
100 lines (100 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "Webhook to API Integration",
"description": "Process incoming webhook data and call external API",
"version": 3,
"private": true,
"concurrency": 1,
"code": {
"number": 0,
"provider": "workato_webhooks",
"name": "webhook_input",
"as": "webhook_trigger",
"keyword": "trigger",
"input": {
"request_type": "post"
},
"output_schema": [
{
"name": "order_id",
"type": "string"
},
{
"name": "customer_email",
"type": "string"
},
{
"name": "total_amount",
"type": "number"
},
{
"name": "status",
"type": "string"
}
],
"block": [
{
"number": 1,
"provider": "http",
"name": "post",
"as": "api_call",
"keyword": "action",
"uuid": "b1c2d3e4-f5g6-7890-bcde-fg1234567890",
"input": {
"url": "https://api.example.com/orders",
"headers": {
"Authorization": "Bearer =_('connections.http.token')",
"Content-Type": "application/json"
},
"payload": {
"order": {
"external_id": "=_('data.workato_webhooks.webhook_trigger.order_id')",
"customer_email": "=_('data.workato_webhooks.webhook_trigger.customer_email')",
"amount": "=_('data.workato_webhooks.webhook_trigger.total_amount')",
"status": "=_('data.workato_webhooks.webhook_trigger.status')",
"processed_at": "=_('job.started_at')"
}
}
}
},
{
"number": 2,
"provider": "workato_utility",
"name": "email",
"as": "send_notification",
"keyword": "action",
"uuid": "c2d3e4f5-g6h7-8901-cdef-gh2345678901",
"input": {
"to": "=_('data.workato_webhooks.webhook_trigger.customer_email')",
"subject": "Order =_('data.workato_webhooks.webhook_trigger.order_id') Processed",
"body": "Your order #=_('data.workato_webhooks.webhook_trigger.order_id') has been processed successfully."
}
}
],
"uuid": "12345678-90ab-cdef-1234-567890abcdef",
"unfinished": false
},
"config": [
{
"keyword": "application",
"provider": "workato_webhooks",
"skip_validation": false,
"account_id": null
},
{
"keyword": "application",
"provider": "http",
"skip_validation": false,
"account_id": {
"zip_name": "http.connection.json",
"name": "http",
"folder": ""
}
},
{
"keyword": "application",
"provider": "workato_utility",
"skip_validation": false,
"account_id": null
}
]
}