Install app

Install app

Endpoint

POST https://embedworkflow.com/api/v1/installed_apps

Request Body

app_identifier string, required

App indentifier

groups array, optional

User permission groups. Only available to users with admin role.

Response

Returns created.

Errors

  • 422 - unprocessable entity
Response
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
{
  "id": "01980228-a664-72d3-899e-e36477f64457",
  "app_identifier": "slack",
  "app_version": "1.0.0",
  "available_version": "1.0.0",
  "groups": [],
  "icon": {
    "url": "https://s3.us-east-1.amazonaws.com/cdn.ewf.to/apps/slack.svg",
    "type": "remote",
    "background_color": "slate:50"
  },
  "installed_schema": {
    "name": "Slack",
    "actions": [
      {
        "url": "https://slack.com/api/chat.postMessage",
        "form": [
          {
            "data": {
              "url": "https://slack.com/api/conversations.list",
              "filters": [
                {
                  "id": "contains_var_query",
                  "type": "contains_var",
                  "field": "name",
                  "value": "field.query"
                }
              ],
              "label_key": "name",
              "value_key": "id",
              "fetch_mode": "prefetch",
              "object_key": "channels",
              "parameters": {
                "limit": "1000",
                "types": "public_channel,private_channel",
                "exclude_archived": "true"
              }
            },
            "name": "form__slack_channel",
            "type": "AsyncSelect",
            "label": "Channel",
            "required": true,
            "description": "Select a channel to send the message to"
          },
          {
            "name": "form__slack_message_text",
            "type": "TextArea",
            "label": "Message",
            "required": true,
            "description": "The message text to send"
          },
          {
            "name": "form__slack_blocks",
            "type": "JSON",
            "label": "Blocks JSON",
            "required": false,
            "description": "JSON array of Slack blocks for rich formatting (optional)"
          }
        ],
        "name": "Send Message",
        "type": "CustomApiRequest",
        "params": {
          "text": "{{form__slack_message_text}}",
          "blocks": "{{form__slack_blocks | default: ''}}",
          "channel": "{{form__slack_channel.value}}"
        },
        "headers": {
          "Content-Type": "application/json",
          "Authorization": "Bearer {% redact app_connection.bot_token %}"
        },
        "description": "Send a message to a Slack channel",
        "http_method": "POST",
        "response_data_schema": [
          {
            "type": "String",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "message_id",
            "data_path": "ts"
          },
          {
            "type": "String",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "channel_id",
            "data_path": "channel"
          },
          {
            "type": "String",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "message_text",
            "data_path": "message.text"
          },
          {
            "type": "Date",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "timestamp",
            "data_path": "ts"
          },
          {
            "type": "Boolean",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "is_successful",
            "data_path": "ok"
          }
        ]
      },
      {
        "url": "https://slack.com/api/chat.postMessage",
        "form": [
          {
            "data": {
              "url": "https://slack.com/api/users.list",
              "filters": [
                {
                  "id": "exclude_deleted",
                  "type": "equal",
                  "field": "deleted",
                  "value": false
                },
                {
                  "id": "contains_var_query",
                  "type": "contains_var",
                  "field": "name",
                  "value": "field.query"
                }
              ],
              "label_key": "real_name",
              "value_key": "id",
              "fetch_mode": "prefetch",
              "object_key": "members",
              "parameters": {
                "limit": "1000"
              }
            },
            "name": "form__slack_dm_user",
            "type": "AsyncSelect",
            "label": "User",
            "required": true,
            "description": "Select a user to send the direct message to"
          },
          {
            "name": "form__slack_dm_text",
            "type": "TextArea",
            "label": "Message",
            "required": true,
            "description": "The message text to send"
          },
          {
            "name": "form__slack_dm_blocks",
            "type": "JSON",
            "label": "Blocks JSON",
            "required": false,
            "description": "JSON array of Slack blocks for rich formatting (optional)"
          }
        ],
        "name": "Send Direct Message",
        "type": "CustomApiRequest",
        "params": {
          "text": "{{form__slack_dm_text}}",
          "blocks": "{{form__slack_dm_blocks | default: ''}}",
          "channel": "{{form__slack_dm_user.value}}"
        },
        "headers": {
          "Content-Type": "application/json",
          "Authorization": "Bearer {% redact app_connection.bot_token %}"
        },
        "description": "Send a direct message to a Slack user",
        "http_method": "POST",
        "response_data_schema": [
          {
            "type": "String",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "message_id",
            "data_path": "ts"
          },
          {
            "type": "String",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "conversation_id",
            "data_path": "channel"
          },
          {
            "type": "String",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "message_text",
            "data_path": "message.text"
          },
          {
            "type": "String",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "recipient_id",
            "data_path": "user"
          },
          {
            "type": "Boolean",
            "groups": null,
            "source": "action_response",
            "required": true,
            "variable": "is_successful",
            "data_path": "ok"
          }
        ]
      }
    ],
    "triggers": [],
    "connection": {
      "fields": [
        {
          "name": "bot_token",
          "type": "TextField",
          "label": "Bot Token",
          "required": true,
          "description": "Your Slack Bot Token (starts with xoxb-)"
        }
      ],
      "setup_instructions": "## Setting up Slack Integration\n\n1. Go to [Slack API Apps page](https://api.slack.com/apps) and create a new app\n2. Under \"OAuth & Permissions\", add the following scopes:\n   - `conversations:read` (for listing all conversation types)\n   - `conversations:write` (for creating channels)\n   - `chat:write` (for sending messages)\n   - `chat:write.public` (for sending messages to channels without joining)\n   - `users:read` (for user information)\n   - `users:read.email` (for finding users by email)\n3. Install the app to your workspace\n4. After installation, copy the \"Bot User OAuth Token\" (starts with xoxb-) from the OAuth & Permissions page\n"
    },
    "identifier": "slack",
    "description": "Team collaboration platform with messaging, calls, and file sharing",
    "primary_category": "communication",
    "secondary_category": "productivity"
  },
  "last_used_at": null,
  "last_used_at_string": null,
  "last_used_at_utc": null,
  "name": "Slack",
  "object": "installed_app",
  "previous_version": null,
  "upgrade_available": false,
  "upgraded_at": null,
  "upgraded_at_string": null,
  "upgraded_at_utc": null
}