@apteva/integrations 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/package.json +1 -1
  2. package/src/apps/activecampaign.json +209 -0
  3. package/src/apps/activecollab.json +417 -0
  4. package/src/apps/airtable.json +235 -0
  5. package/src/apps/alpaca-trading.json +1554 -0
  6. package/src/apps/amadeus.json +225 -0
  7. package/src/apps/anthropic-api.json +96 -0
  8. package/src/apps/apify.json +203 -0
  9. package/src/apps/apollo.json +748 -0
  10. package/src/apps/apple-podcasts.json +116 -0
  11. package/src/apps/archive-api.json +104 -0
  12. package/src/apps/archive.json +151 -0
  13. package/src/apps/arduino-cloud.json +301 -0
  14. package/src/apps/arest.json +492 -0
  15. package/src/apps/asana.json +184 -0
  16. package/src/apps/ashby.json +176 -0
  17. package/src/apps/assemblyai.json +163 -0
  18. package/src/apps/attio.json +243 -0
  19. package/src/apps/aws-cloudfront.json +132 -0
  20. package/src/apps/aws-dynamodb.json +295 -0
  21. package/src/apps/aws-ec2.json +184 -0
  22. package/src/apps/aws-lambda.json +361 -0
  23. package/src/apps/aws-route53.json +110 -0
  24. package/src/apps/aws-s3.json +303 -0
  25. package/src/apps/aws-ses.json +556 -0
  26. package/src/apps/aws-sns.json +217 -0
  27. package/src/apps/aws-sqs.json +234 -0
  28. package/src/apps/axiom.json +123 -0
  29. package/src/apps/beehiiv.json +252 -0
  30. package/src/apps/binance-trading.json +555 -0
  31. package/src/apps/bitly.json +175 -0
  32. package/src/apps/bloobirds.json +246 -0
  33. package/src/apps/bluesky.json +201 -0
  34. package/src/apps/blynk.json +316 -0
  35. package/src/apps/booking-com.json +144 -0
  36. package/src/apps/box.json +289 -0
  37. package/src/apps/brevo.json +1423 -0
  38. package/src/apps/browse-ai.json +148 -0
  39. package/src/apps/bunny-cdn.json +330 -0
  40. package/src/apps/bunny-stream.json +387 -0
  41. package/src/apps/cal-com.json +240 -0
  42. package/src/apps/calendly.json +578 -0
  43. package/src/apps/calflow-calendar.json +706 -0
  44. package/src/apps/callrail.json +190 -0
  45. package/src/apps/canva.json +197 -0
  46. package/src/apps/cartesia.json +201 -0
  47. package/src/apps/castbase.json +753 -0
  48. package/src/apps/chargebee.json +226 -0
  49. package/src/apps/cleanster.json +359 -0
  50. package/src/apps/clicksend.json +278 -0
  51. package/src/apps/clickup.json +266 -0
  52. package/src/apps/clipkit.json +517 -0
  53. package/src/apps/close.json +359 -0
  54. package/src/apps/cloudflare.json +329 -0
  55. package/src/apps/cloudinary.json +164 -0
  56. package/src/apps/coda.json +288 -0
  57. package/src/apps/cohere.json +158 -0
  58. package/src/apps/coinbase.json +268 -0
  59. package/src/apps/composio.json +146 -0
  60. package/src/apps/confluence.json +270 -0
  61. package/src/apps/consensus.json +879 -0
  62. package/src/apps/contabo.json +733 -0
  63. package/src/apps/convertkit.json +211 -0
  64. package/src/apps/core-image.json +426 -0
  65. package/src/apps/core-video.json +1246 -0
  66. package/src/apps/craftcloud.json +298 -0
  67. package/src/apps/datadog.json +401 -0
  68. package/src/apps/dataforseo.json +1273 -0
  69. package/src/apps/deepseek.json +150 -0
  70. package/src/apps/dialpad.json +229 -0
  71. package/src/apps/discord.json +239 -0
  72. package/src/apps/dnsimple.json +405 -0
  73. package/src/apps/docusign.json +214 -0
  74. package/src/apps/docx.json +282 -0
  75. package/src/apps/dropbox.json +185 -0
  76. package/src/apps/duffel.json +231 -0
  77. package/src/apps/dux-soup.json +694 -0
  78. package/src/apps/dynadot.json +250 -0
  79. package/src/apps/elevenlabs.json +327 -0
  80. package/src/apps/eventbrite-events.json +598 -0
  81. package/src/apps/facebook-ads.json +1399 -0
  82. package/src/apps/facebook-api.json +282 -0
  83. package/src/apps/fal-ai.json +400 -0
  84. package/src/apps/fathom.json +86 -0
  85. package/src/apps/figma.json +162 -0
  86. package/src/apps/filestack.json +159 -0
  87. package/src/apps/firebase.json +271 -0
  88. package/src/apps/firecrawl.json +278 -0
  89. package/src/apps/folk.json +564 -0
  90. package/src/apps/forecast-app.json +377 -0
  91. package/src/apps/freshdesk.json +283 -0
  92. package/src/apps/gemini.json +528 -0
  93. package/src/apps/ghost.json +439 -0
  94. package/src/apps/gigs-marketplace.json +1442 -0
  95. package/src/apps/github.json +1479 -47
  96. package/src/apps/gitlab.json +448 -0
  97. package/src/apps/gmail.json +839 -28
  98. package/src/apps/gohighlevel.json +596 -0
  99. package/src/apps/google-ads.json +270 -0
  100. package/src/apps/google-calendar.json +996 -36
  101. package/src/apps/google-docs.json +278 -0
  102. package/src/apps/google-drive.json +360 -0
  103. package/src/apps/google-maps.json +473 -0
  104. package/src/apps/google-sheets.json +330 -0
  105. package/src/apps/gooten.json +411 -0
  106. package/src/apps/gravity-forms.json +385 -0
  107. package/src/apps/gusto.json +171 -0
  108. package/src/apps/hackernews.json +221 -0
  109. package/src/apps/harmonic.json +86 -0
  110. package/src/apps/helpscout.json +664 -0
  111. package/src/apps/hetzner.json +658 -0
  112. package/src/apps/heygen.json +184 -0
  113. package/src/apps/heyreach.json +388 -0
  114. package/src/apps/hospitable.json +340 -0
  115. package/src/apps/hostinger.json +374 -0
  116. package/src/apps/hubspot.json +682 -0
  117. package/src/apps/huggingface.json +97 -0
  118. package/src/apps/hunter.json +504 -0
  119. package/src/apps/ig-trading.json +849 -0
  120. package/src/apps/imaterialise.json +349 -0
  121. package/src/apps/instagram-api.json +538 -0
  122. package/src/apps/intercom.json +648 -0
  123. package/src/apps/jira.json +226 -0
  124. package/src/apps/klaviyo.json +199 -0
  125. package/src/apps/kling-ai.json +206 -0
  126. package/src/apps/kraken.json +870 -0
  127. package/src/apps/late.json +1056 -0
  128. package/src/apps/leadpages.json +243 -0
  129. package/src/apps/learning-platform.json +2244 -0
  130. package/src/apps/linear.json +184 -57
  131. package/src/apps/linkedin.json +179 -0
  132. package/src/apps/listen-notes.json +136 -0
  133. package/src/apps/lnk-bio.json +125 -0
  134. package/src/apps/loom.json +188 -0
  135. package/src/apps/luma.json +280 -0
  136. package/src/apps/mailchimp.json +238 -0
  137. package/src/apps/mailgun.json +310 -0
  138. package/src/apps/manychat.json +312 -0
  139. package/src/apps/marin-software.json +843 -0
  140. package/src/apps/media-downloader.json +157 -0
  141. package/src/apps/meetup-events.json +361 -0
  142. package/src/apps/meshy.json +248 -0
  143. package/src/apps/microsoft-teams.json +162 -0
  144. package/src/apps/monday.json +213 -0
  145. package/src/apps/mongodb-atlas.json +467 -0
  146. package/src/apps/namecheap.json +252 -0
  147. package/src/apps/nexar.json +289 -0
  148. package/src/apps/notion.json +530 -50
  149. package/src/apps/omnikit-analytics.json +374 -0
  150. package/src/apps/omnikit-api-gateway.json +660 -0
  151. package/src/apps/omnikit-billing.json +1781 -0
  152. package/src/apps/omnikit-cms.json +899 -0
  153. package/src/apps/omnikit-functions.json +329 -0
  154. package/src/apps/omnikit-intelligence.json +650 -0
  155. package/src/apps/omnikit-management.json +214 -0
  156. package/src/apps/omnikit-media.json +646 -0
  157. package/src/apps/omnikit-messaging.json +1826 -0
  158. package/src/apps/omnikit-redirects.json +209 -0
  159. package/src/apps/omnikit-webhooks.json +269 -0
  160. package/src/apps/omnikit-workflows.json +323 -0
  161. package/src/apps/openai-api.json +462 -0
  162. package/src/apps/openmeteo-weather.json +75 -0
  163. package/src/apps/optinmonster.json +244 -0
  164. package/src/apps/paidkit.json +1218 -0
  165. package/src/apps/paypal.json +254 -0
  166. package/src/apps/pdf.json +366 -0
  167. package/src/apps/pipedrive.json +255 -0
  168. package/src/apps/polymarket.json +653 -0
  169. package/src/apps/porkbun.json +417 -0
  170. package/src/apps/portfolio.json +501 -0
  171. package/src/apps/postmark.json +257 -0
  172. package/src/apps/printful.json +273 -0
  173. package/src/apps/printify.json +295 -0
  174. package/src/apps/producthunt.json +346 -0
  175. package/src/apps/pushover-notifications.json +113 -0
  176. package/src/apps/qonto.json +366 -0
  177. package/src/apps/quickbooks.json +234 -0
  178. package/src/apps/replicate.json +106 -0
  179. package/src/apps/rss.json +281 -0
  180. package/src/apps/salesflow.json +538 -0
  181. package/src/apps/salesforce-crm.json +216 -0
  182. package/src/apps/sap.json +256 -0
  183. package/src/apps/scaleway.json +911 -0
  184. package/src/apps/sculpteo.json +234 -0
  185. package/src/apps/sendgrid-email.json +233 -0
  186. package/src/apps/sendgrid.json +160 -35
  187. package/src/apps/shapeways.json +188 -0
  188. package/src/apps/shopify.json +1217 -0
  189. package/src/apps/skai.json +779 -0
  190. package/src/apps/slack.json +228 -38
  191. package/src/apps/slant3d.json +231 -0
  192. package/src/apps/slides.json +760 -0
  193. package/src/apps/smartly.json +504 -0
  194. package/src/apps/snov.json +467 -0
  195. package/src/apps/socialcast.json +553 -63
  196. package/src/apps/square.json +274 -0
  197. package/src/apps/storage-management.json +788 -0
  198. package/src/apps/storylane.json +180 -0
  199. package/src/apps/strapi.json +338 -0
  200. package/src/apps/stripe-payments.json +847 -0
  201. package/src/apps/stripe.json +472 -35
  202. package/src/apps/supabase.json +169 -0
  203. package/src/apps/supademo.json +115 -0
  204. package/src/apps/taskflow.json +714 -0
  205. package/src/apps/teamwork.json +457 -0
  206. package/src/apps/telegram.json +444 -0
  207. package/src/apps/thinger.json +458 -0
  208. package/src/apps/ticktick.json +169 -0
  209. package/src/apps/tiktok-api.json +406 -0
  210. package/src/apps/todoist.json +151 -0
  211. package/src/apps/together.json +123 -0
  212. package/src/apps/torrent.json +267 -0
  213. package/src/apps/trading.json +1012 -0
  214. package/src/apps/trading212.json +383 -0
  215. package/src/apps/trello.json +205 -0
  216. package/src/apps/tripo.json +157 -0
  217. package/src/apps/twilio.json +1008 -0
  218. package/src/apps/twitter-ads.json +875 -0
  219. package/src/apps/twitter-api.json +1151 -0
  220. package/src/apps/twitterapiio.json +548 -0
  221. package/src/apps/typeform.json +210 -0
  222. package/src/apps/vidforge.json +1020 -0
  223. package/src/apps/vonage.json +394 -0
  224. package/src/apps/vultr.json +225 -0
  225. package/src/apps/webflow.json +223 -0
  226. package/src/apps/wise.json +273 -0
  227. package/src/apps/wistia.json +283 -0
  228. package/src/apps/woocommerce.json +288 -0
  229. package/src/apps/wordpress.json +1675 -0
  230. package/src/apps/xero.json +257 -0
  231. package/src/apps/youtube-api.json +861 -0
  232. package/src/apps/zendesk.json +295 -0
  233. package/src/apps/zite.json +173 -0
  234. package/src/apps/zoho-crm.json +386 -0
  235. package/src/apps/zoo.json +193 -0
  236. package/src/apps/zoom.json +334 -0
@@ -0,0 +1,504 @@
1
+ {
2
+ "slug": "smartly",
3
+ "name": "Smartly.io",
4
+ "description": "MCP server for Smartly.io - AI-powered advertising platform for cross-channel campaign reporting, performance analytics, and server-to-server data integration. Supports Meta, Google, TikTok, Snapchat, Pinterest, and programmatic DSPs.",
5
+ "logo": "https://www.google.com/s2/favicons?domain=smartly.io&sz=128",
6
+ "categories": [
7
+ "advertising",
8
+ "marketing",
9
+ "analytics",
10
+ "reporting",
11
+ "smartly",
12
+ "cross-channel",
13
+ "creative",
14
+ "optimization"
15
+ ],
16
+ "base_url": "https://app.smartly.io",
17
+ "auth": {
18
+ "types": [
19
+ "bearer"
20
+ ],
21
+ "headers": {
22
+ "Authorization": "Bearer {{token}}"
23
+ },
24
+ "credential_fields": [
25
+ {
26
+ "name": "api_token",
27
+ "label": "Api_token",
28
+ "description": "Your Smartly.io API token (found in Settings > API Tokens)"
29
+ }
30
+ ]
31
+ },
32
+ "tools": [
33
+ {
34
+ "name": "accounts_list",
35
+ "description": "List all connected advertising accounts in Smartly.io. Returns accounts across all connected platforms (Meta, Google, TikTok, Snapchat, Pinterest, programmatic DSPs).",
36
+ "method": "GET",
37
+ "path": "/api/v1/accounts",
38
+ "input_schema": {
39
+ "type": "object",
40
+ "properties": {
41
+ "platform": {
42
+ "type": "string",
43
+ "description": "Filter by platform",
44
+ "enum": [
45
+ "facebook",
46
+ "google",
47
+ "tiktok",
48
+ "snapchat",
49
+ "pinterest",
50
+ "dv360",
51
+ "amazon_dsp",
52
+ "thetradedesk"
53
+ ]
54
+ },
55
+ "limit": {
56
+ "type": "integer",
57
+ "description": "Maximum number of accounts to return",
58
+ "default": 50
59
+ },
60
+ "offset": {
61
+ "type": "integer",
62
+ "description": "Offset for pagination",
63
+ "default": 0
64
+ }
65
+ }
66
+ }
67
+ },
68
+ {
69
+ "name": "campaigns_list",
70
+ "description": "Retrieve campaign-level performance data from Smartly.io. Returns metrics like impressions, clicks, spend, conversions, CTR, CPC, CPM across all connected platforms. Filter by date range, platform, and account.",
71
+ "method": "GET",
72
+ "path": "/api/v1/reporting/campaigns",
73
+ "input_schema": {
74
+ "type": "object",
75
+ "properties": {
76
+ "accountId": {
77
+ "type": "string",
78
+ "description": "Ad account ID to query"
79
+ },
80
+ "platform": {
81
+ "type": "string",
82
+ "description": "Platform filter",
83
+ "enum": [
84
+ "facebook",
85
+ "google",
86
+ "tiktok",
87
+ "snapchat",
88
+ "pinterest",
89
+ "dv360"
90
+ ]
91
+ },
92
+ "startDate": {
93
+ "type": "string",
94
+ "description": "Start date (YYYY-MM-DD)"
95
+ },
96
+ "endDate": {
97
+ "type": "string",
98
+ "description": "End date (YYYY-MM-DD)"
99
+ },
100
+ "metrics": {
101
+ "type": "array",
102
+ "description": "Metrics to include: impressions, clicks, spent, conversions, ctr, cpm, cpc, cpa, reach, frequency, roi, revenue",
103
+ "items": {
104
+ "type": "string"
105
+ },
106
+ "default": [
107
+ "impressions",
108
+ "clicks",
109
+ "spent",
110
+ "conversions",
111
+ "ctr",
112
+ "cpm",
113
+ "cpc"
114
+ ]
115
+ },
116
+ "dimensions": {
117
+ "type": "array",
118
+ "description": "Dimensions to group by: campaign_name, campaign_fb_id, date, platform, objective",
119
+ "items": {
120
+ "type": "string"
121
+ },
122
+ "default": [
123
+ "campaign_name"
124
+ ]
125
+ },
126
+ "granularity": {
127
+ "type": "string",
128
+ "description": "Time granularity",
129
+ "enum": [
130
+ "daily",
131
+ "weekly",
132
+ "monthly",
133
+ "total"
134
+ ],
135
+ "default": "total"
136
+ },
137
+ "limit": {
138
+ "type": "integer",
139
+ "description": "Maximum rows",
140
+ "default": 100
141
+ }
142
+ },
143
+ "required": [
144
+ "startDate",
145
+ "endDate"
146
+ ]
147
+ }
148
+ },
149
+ {
150
+ "name": "adgroups_list",
151
+ "description": "Retrieve ad group / ad set level performance data from Smartly.io. Includes targeting details, budget, and performance metrics.",
152
+ "method": "GET",
153
+ "path": "/api/v1/reporting/adgroups",
154
+ "input_schema": {
155
+ "type": "object",
156
+ "properties": {
157
+ "accountId": {
158
+ "type": "string",
159
+ "description": "Ad account ID"
160
+ },
161
+ "campaignId": {
162
+ "type": "string",
163
+ "description": "Campaign ID to filter by"
164
+ },
165
+ "platform": {
166
+ "type": "string",
167
+ "description": "Platform filter",
168
+ "enum": [
169
+ "facebook",
170
+ "google",
171
+ "tiktok",
172
+ "snapchat",
173
+ "pinterest"
174
+ ]
175
+ },
176
+ "startDate": {
177
+ "type": "string",
178
+ "description": "Start date (YYYY-MM-DD)"
179
+ },
180
+ "endDate": {
181
+ "type": "string",
182
+ "description": "End date (YYYY-MM-DD)"
183
+ },
184
+ "metrics": {
185
+ "type": "array",
186
+ "description": "Metrics to include",
187
+ "items": {
188
+ "type": "string"
189
+ },
190
+ "default": [
191
+ "impressions",
192
+ "clicks",
193
+ "spent",
194
+ "conversions",
195
+ "ctr",
196
+ "cpm"
197
+ ]
198
+ },
199
+ "dimensions": {
200
+ "type": "array",
201
+ "description": "Dimensions: adgroup_name, adgroup_fb_id, targeting, date",
202
+ "items": {
203
+ "type": "string"
204
+ },
205
+ "default": [
206
+ "adgroup_name"
207
+ ]
208
+ },
209
+ "limit": {
210
+ "type": "integer",
211
+ "default": 100
212
+ }
213
+ },
214
+ "required": [
215
+ "startDate",
216
+ "endDate"
217
+ ]
218
+ }
219
+ },
220
+ {
221
+ "name": "ads_list",
222
+ "description": "Retrieve ad-level performance data from Smartly.io. Includes creative details, ad name, status, and performance metrics. Useful for creative performance analysis and fatigue detection.",
223
+ "method": "GET",
224
+ "path": "/api/v1/reporting/ads",
225
+ "input_schema": {
226
+ "type": "object",
227
+ "properties": {
228
+ "accountId": {
229
+ "type": "string",
230
+ "description": "Ad account ID"
231
+ },
232
+ "adgroupId": {
233
+ "type": "string",
234
+ "description": "Ad group/set ID to filter by"
235
+ },
236
+ "campaignId": {
237
+ "type": "string",
238
+ "description": "Campaign ID to filter by"
239
+ },
240
+ "platform": {
241
+ "type": "string",
242
+ "description": "Platform filter",
243
+ "enum": [
244
+ "facebook",
245
+ "google",
246
+ "tiktok",
247
+ "snapchat",
248
+ "pinterest"
249
+ ]
250
+ },
251
+ "startDate": {
252
+ "type": "string",
253
+ "description": "Start date (YYYY-MM-DD)"
254
+ },
255
+ "endDate": {
256
+ "type": "string",
257
+ "description": "End date (YYYY-MM-DD)"
258
+ },
259
+ "metrics": {
260
+ "type": "array",
261
+ "description": "Metrics to include",
262
+ "items": {
263
+ "type": "string"
264
+ },
265
+ "default": [
266
+ "impressions",
267
+ "clicks",
268
+ "spent",
269
+ "conversions",
270
+ "ctr",
271
+ "cpm"
272
+ ]
273
+ },
274
+ "dimensions": {
275
+ "type": "array",
276
+ "description": "Dimensions: name, id, creative_name, date",
277
+ "items": {
278
+ "type": "string"
279
+ },
280
+ "default": [
281
+ "name"
282
+ ]
283
+ },
284
+ "limit": {
285
+ "type": "integer",
286
+ "default": 100
287
+ }
288
+ },
289
+ "required": [
290
+ "startDate",
291
+ "endDate"
292
+ ]
293
+ }
294
+ },
295
+ {
296
+ "name": "report_create",
297
+ "description": "Create a custom report export from Smartly.io. Specify metrics, dimensions, filters, and date range. Returns an export_id to poll for download.",
298
+ "method": "POST",
299
+ "path": "/api/v1/reports/export",
300
+ "input_schema": {
301
+ "type": "object",
302
+ "properties": {
303
+ "name": {
304
+ "type": "string",
305
+ "description": "Report name"
306
+ },
307
+ "accountIds": {
308
+ "type": "array",
309
+ "description": "Ad account IDs to include",
310
+ "items": {
311
+ "type": "string"
312
+ }
313
+ },
314
+ "platforms": {
315
+ "type": "array",
316
+ "description": "Platforms to include",
317
+ "items": {
318
+ "type": "string"
319
+ }
320
+ },
321
+ "startDate": {
322
+ "type": "string",
323
+ "description": "Start date (YYYY-MM-DD)"
324
+ },
325
+ "endDate": {
326
+ "type": "string",
327
+ "description": "End date (YYYY-MM-DD)"
328
+ },
329
+ "metrics": {
330
+ "type": "array",
331
+ "description": "Metrics: impressions, clicks, spent, conversions, ctr, cpm, cpc, cpa, reach, frequency, roi, revenue, roas",
332
+ "items": {
333
+ "type": "string"
334
+ }
335
+ },
336
+ "dimensions": {
337
+ "type": "array",
338
+ "description": "Breakdown dimensions: campaign_name, adgroup_name, ad_name, date, country, age, gender, platform, placement",
339
+ "items": {
340
+ "type": "string"
341
+ }
342
+ },
343
+ "granularity": {
344
+ "type": "string",
345
+ "description": "Time granularity",
346
+ "enum": [
347
+ "daily",
348
+ "weekly",
349
+ "monthly",
350
+ "total"
351
+ ]
352
+ },
353
+ "format": {
354
+ "type": "string",
355
+ "description": "Export format",
356
+ "enum": [
357
+ "csv",
358
+ "json",
359
+ "xlsx"
360
+ ],
361
+ "default": "json"
362
+ }
363
+ },
364
+ "required": [
365
+ "startDate",
366
+ "endDate",
367
+ "metrics"
368
+ ]
369
+ }
370
+ },
371
+ {
372
+ "name": "report_download",
373
+ "description": "Download a previously created report export. Use the export_id from the create report response.",
374
+ "method": "GET",
375
+ "path": "/api/v1/reports/export/%7B%7Bexport_id%7D%7D",
376
+ "input_schema": {
377
+ "type": "object",
378
+ "properties": {
379
+ "export_id": {
380
+ "type": "string",
381
+ "description": "Export ID from the report creation"
382
+ }
383
+ },
384
+ "required": [
385
+ "export_id"
386
+ ]
387
+ }
388
+ },
389
+ {
390
+ "name": "s2s_send_data",
391
+ "description": "Send server-to-server data to Smartly.io for custom attribution, conversion tracking, or enrichment. Push conversions, revenue, LTV, or custom metrics to enhance Smartly's optimization. Data can be used for Predictive Budget Allocation and Triggers.",
392
+ "method": "POST",
393
+ "path": "/api/v1/s2s/data",
394
+ "input_schema": {
395
+ "type": "object",
396
+ "properties": {
397
+ "dataType": {
398
+ "type": "string",
399
+ "description": "Type of data being sent",
400
+ "enum": [
401
+ "conversion",
402
+ "revenue",
403
+ "ltv",
404
+ "custom"
405
+ ]
406
+ },
407
+ "accountId": {
408
+ "type": "string",
409
+ "description": "Ad account ID to associate data with"
410
+ },
411
+ "records": {
412
+ "type": "array",
413
+ "description": "Array of data records to ingest",
414
+ "items": {
415
+ "type": "object",
416
+ "properties": {
417
+ "campaignId": {
418
+ "type": "string",
419
+ "description": "Campaign ID"
420
+ },
421
+ "adgroupId": {
422
+ "type": "string",
423
+ "description": "Ad group/set ID"
424
+ },
425
+ "adId": {
426
+ "type": "string",
427
+ "description": "Ad ID"
428
+ },
429
+ "timestamp": {
430
+ "type": "string",
431
+ "description": "Event timestamp (ISO 8601)"
432
+ },
433
+ "value": {
434
+ "type": "number",
435
+ "description": "Conversion value or revenue amount"
436
+ },
437
+ "currency": {
438
+ "type": "string",
439
+ "description": "Currency code (e.g., USD, EUR)",
440
+ "default": "USD"
441
+ },
442
+ "eventName": {
443
+ "type": "string",
444
+ "description": "Custom event name"
445
+ },
446
+ "customAttributes": {
447
+ "type": "object",
448
+ "description": "Additional custom key-value attributes"
449
+ }
450
+ }
451
+ }
452
+ }
453
+ },
454
+ "required": [
455
+ "dataType",
456
+ "records"
457
+ ]
458
+ }
459
+ },
460
+ {
461
+ "name": "s2s_delete_data",
462
+ "description": "Delete previously sent server-to-server data records from Smartly.io. Use to correct or remove incorrect attribution data.",
463
+ "method": "DELETE",
464
+ "path": "/api/v1/s2s/data",
465
+ "input_schema": {
466
+ "type": "object",
467
+ "properties": {
468
+ "accountId": {
469
+ "type": "string",
470
+ "description": "Ad account ID"
471
+ },
472
+ "recordIds": {
473
+ "type": "array",
474
+ "description": "Record IDs to delete",
475
+ "items": {
476
+ "type": "string"
477
+ }
478
+ },
479
+ "startDate": {
480
+ "type": "string",
481
+ "description": "Delete records from this date (YYYY-MM-DD)"
482
+ },
483
+ "endDate": {
484
+ "type": "string",
485
+ "description": "Delete records until this date (YYYY-MM-DD)"
486
+ },
487
+ "dataType": {
488
+ "type": "string",
489
+ "description": "Type of data to delete",
490
+ "enum": [
491
+ "conversion",
492
+ "revenue",
493
+ "ltv",
494
+ "custom"
495
+ ]
496
+ }
497
+ },
498
+ "required": [
499
+ "accountId"
500
+ ]
501
+ }
502
+ }
503
+ ]
504
+ }