@celigo/api-specs 0.2.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 (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -0
  3. package/dist/account.yml +592 -0
  4. package/dist/agent.yml +908 -0
  5. package/dist/ai-agent.yml +5471 -0
  6. package/dist/api.yml +4140 -0
  7. package/dist/apim.yml +1286 -0
  8. package/dist/asynchelper.yml +3391 -0
  9. package/dist/audit.yml +2006 -0
  10. package/dist/connection.yml +8665 -0
  11. package/dist/connector.yml +1406 -0
  12. package/dist/ediprofile.yml +911 -0
  13. package/dist/editransaction.yml +1210 -0
  14. package/dist/enduser.yml +1724 -0
  15. package/dist/environment.yml +568 -0
  16. package/dist/eventreport.yml +692 -0
  17. package/dist/export.yml +17610 -0
  18. package/dist/filedefinition.yml +1396 -0
  19. package/dist/filestorage.yml +3102 -0
  20. package/dist/flow.yml +7928 -0
  21. package/dist/guardrail.yml +2763 -0
  22. package/dist/httpconnector.yml +2277 -0
  23. package/dist/httpconnectorendpoint.yml +722 -0
  24. package/dist/httpconnectorresource.yml +396 -0
  25. package/dist/iclient.yml +4452 -0
  26. package/dist/import.yml +15381 -0
  27. package/dist/integration.yml +4406 -0
  28. package/dist/job.yml +2014 -0
  29. package/dist/lookupcache.yml +1325 -0
  30. package/dist/marketplace.yml +685 -0
  31. package/dist/mcp-oauth-provider.yml +590 -0
  32. package/dist/mcp-server.yml +2656 -0
  33. package/dist/notification.yml +488 -0
  34. package/dist/processor.yml +1253 -0
  35. package/dist/profile.yml +455 -0
  36. package/dist/recyclebin.yml +768 -0
  37. package/dist/script.yml +1128 -0
  38. package/dist/stack.yml +1291 -0
  39. package/dist/state.yml +894 -0
  40. package/dist/subscription.yml +1405 -0
  41. package/dist/sync.yml +4857 -0
  42. package/dist/tag.yml +553 -0
  43. package/dist/template.yml +897 -0
  44. package/dist/tool.yml +33656 -0
  45. package/dist/tradingpartnerconnector.yml +1490 -0
  46. package/dist/user.yml +831 -0
  47. package/package.json +41 -0
  48. package/schemas.json +8420 -0
@@ -0,0 +1,1405 @@
1
+ openapi: 3.2.0
2
+ info:
3
+ version: 1.0.0
4
+ title: Subscription & Entitlements
5
+ description: API for reading the current account’s subscription, license entitlements, and usage metrics.
6
+ x-celigo-ai-guidance:
7
+ - APIs for subscription (license) information and entitlement usage.
8
+ - |-
9
+ Notes:
10
+ - These endpoints exist under `/v1/*` for API usage. The UI also exposes equivalents under `/api/*`.
11
+ servers:
12
+ - url: https://api.integrator.io
13
+ description: Production (US / default region)
14
+ - url: https://api.eu.integrator.io
15
+ description: Production (EU region)
16
+ - url: https://api.au.integrator.io
17
+ description: Production (AU region)
18
+ - url: https://api.ca.integrator.io
19
+ description: Production (CA region)
20
+ security:
21
+ - bearerAuth: []
22
+ tags:
23
+ - name: Subscription & Entitlements
24
+ description: |-
25
+ Subscription (license) information and entitlement usage for the current account, including plan details, feature limits, and consumption metrics.
26
+
27
+ ## License schema
28
+
29
+ {% openapi-schemas spec="subscription" schemas="License" grouped="true" %}
30
+ paths:
31
+ /v1/licenses:
32
+ get:
33
+ x-internal: false
34
+ summary: Get licenses (subscription)
35
+ operationId: getLicenses
36
+ tags:
37
+ - Subscription & Entitlements
38
+ description: |-
39
+ Returns one account-level license (`type` is `platform`, `integrator`, or
40
+ `endpoint`) plus zero or more `connector`, `integrationApp`, or
41
+ `integrationAppChild` licenses.
42
+ x-celigo-ai-guidance:
43
+ - |-
44
+ AI guidance:
45
+ - Use this to determine the subscription type (`platform`, `integrator`, `endpoint`, `connector`, etc.) and high-level flags (e.g., sandbox access).
46
+ responses:
47
+ '200':
48
+ description: List of licenses
49
+ content:
50
+ application/json:
51
+ schema:
52
+ type: array
53
+ items:
54
+ $ref: '#/components/schemas/License'
55
+ examples:
56
+ platform:
57
+ summary: Platform license (enterprise tier)
58
+ value:
59
+ - _id: 624cb0356309dc3a543733a4
60
+ created: '2024-04-05T21:10:13.226Z'
61
+ lastModified: '2025-08-10T14:22:33.000Z'
62
+ expires: '2099-12-31T00:00:00.000Z'
63
+ type: platform
64
+ tier: enterprise (2024)
65
+ supportTier: premier
66
+ resumable: false
67
+ disableOverage: false
68
+ requestUserToMigrateSandbox: false
69
+ sso: true
70
+ van: true
71
+ lookupCache: true
72
+ abstractFlows: true
73
+ apiManagement: true
74
+ concurrency: 25
75
+ maxAllowedDataRetention: 180
76
+ auditLogRetentionYears: 3
77
+ aiConversationsPrepaidBalance: 47.96
78
+ aiAgentsPrepaidBalance: 19.62
79
+ aiAgentsActions: 10000
80
+ platform:
81
+ production:
82
+ numEndpoints: 600
83
+ numAddOnEndpoints: 0
84
+ numFlows: 80
85
+ numAddOnFlows: 5000
86
+ numAgents: 0
87
+ numAddOnAgents: 100
88
+ apiManagement: true
89
+ numEnvironments: 5
90
+ edi:
91
+ enabled: true
92
+ onboarded: true
93
+ disableOverage: false
94
+ tier: basic
95
+ numTradingPartners: 3
96
+ numAddOnTradingPartners: 0
97
+ numDocumentTypes: 5
98
+ numAddOnDocumentTypes: 0
99
+ labelPrinting:
100
+ enabled: true
101
+ onboarded: true
102
+ numLabels: 10000
103
+ numAddOnLabels: 0
104
+ api:
105
+ builder: true
106
+ enablePricing: false
107
+ disableOverages: false
108
+ numInvocations: 0
109
+ apimNumInvocations: 0
110
+ numAddOnInvocations: 0
111
+ mcp:
112
+ numInvocations: 50000
113
+ di:
114
+ enabled: false
115
+ volume: 0
116
+ volumeAddOn: 0
117
+ disableOverage: false
118
+ logging:
119
+ enabled: true
120
+ maxLogMode: detailed
121
+ maxDebugDuration: 4320
122
+ maxRetentionPeriod: 180
123
+ storage:
124
+ maxAllowedUsage: 200
125
+ disableOverage: false
126
+ '401':
127
+ $ref: '#/components/responses/401-unauthorized'
128
+ /v1/licenseEntitlementUsage:
129
+ get:
130
+ x-internal: false
131
+ summary: Get license entitlement usage
132
+ operationId: getLicenseEntitlementUsage
133
+ tags:
134
+ - Subscription & Entitlements
135
+ description: |-
136
+ Returns entitlement usage for the current account/license -- how many resources the account
137
+ is consuming vs. what is entitled. Pair with `GET /v1/licenses` for the entitlement limits.
138
+ x-celigo-ai-guidance:
139
+ - Returns entitlement usage for the current account/license (consumption vs. entitlement, by usage category).
140
+ - |-
141
+ The response includes counts such as:
142
+ - endpoints consumed
143
+ - flows enabled
144
+ - agents active
145
+ - trading partners consumed
146
+ - environments enabled (for multi-environment licensing)
147
+ responses:
148
+ '200':
149
+ description: Entitlement usage
150
+ content:
151
+ application/json:
152
+ schema:
153
+ $ref: '#/components/schemas/LicenseEntitlementUsage'
154
+ examples:
155
+ default:
156
+ value:
157
+ flowUsage:
158
+ numEnabled: 12
159
+ flows:
160
+ - _id: 69d097584e0c505cda036df9
161
+ name: HubSpot Contacts → Snowflake (Nightly)
162
+ integration:
163
+ _id: 69d0973d4e0c505cda0368d1
164
+ name: POC – HubSpot → Snowflake
165
+ endpointUsage:
166
+ numConsumed: 8
167
+ endpoints:
168
+ - type: http
169
+ assistant: hubspot
170
+ connections:
171
+ - _id: 62ac9ab6cd606e428737008e
172
+ name: HubSpot (Production)
173
+ - type: rdbms
174
+ connections:
175
+ - _id: 69d096cd4e0c505cda036a3a
176
+ name: Snowflake DW
177
+ agentUsage:
178
+ numActive: 0
179
+ agents: []
180
+ environmentUsage:
181
+ numEnabled: 2
182
+ environments:
183
+ - _id: 60a2c4e6f321d800129a1a3c
184
+ name: Production
185
+ enabled: true
186
+ - _id: 61b3d5f7e432e900130b2b4d
187
+ name: Staging
188
+ enabled: true
189
+ ediTradingPartnerUsage:
190
+ numConsumed: 1
191
+ tradingPartners:
192
+ - tradingPartnerName: Acme Corp
193
+ ediProfiles:
194
+ - id: 69014f1691348b59ebed05a9
195
+ name: Acme EDI Profile
196
+ ediDocumentTypeUsage:
197
+ numConsumed: 1
198
+ documents:
199
+ - category: Purchase Order
200
+ fileDefinitions:
201
+ - _id: 69014f1691348b59ebed059b
202
+ name: Generic EDI 850
203
+ ediLabelPrintingUsage:
204
+ numConsumed: 1542
205
+ flows:
206
+ - _id: 6a25e22136b14ada888433f4
207
+ name: Bartender — UPS labels
208
+ integration:
209
+ _id: 69d0973d4e0c505cda0368d1
210
+ name: NetSuite — Acme
211
+ numConsumed: 812
212
+ - _id: 6a25e22136b14ada888433f5
213
+ name: Bartender — FedEx labels
214
+ integration:
215
+ _id: 69d0973d4e0c505cda0368e2
216
+ name: NetSuite — Globex
217
+ numConsumed: 530
218
+ apiUsage:
219
+ ioInvocationCount: 1250
220
+ apimInvocationCount: 0
221
+ syncUsage:
222
+ entitlement: 0
223
+ volume: 0
224
+ mcpUsage:
225
+ numInvocations: 340
226
+ aiAgentsActionsUsage: 87
227
+ '401':
228
+ $ref: '#/components/responses/401-unauthorized'
229
+ /v1/ediLabelPrinting/usage/summary:
230
+ get:
231
+ x-internal: false
232
+ summary: Get historic label-printing usage
233
+ operationId: getEDILabelPrintingUsageSummary
234
+ tags:
235
+ - Subscription & Entitlements
236
+ description: |-
237
+ Returns account-wide EDI label-printing (BarTender) consumption bucketed into the trailing
238
+ 12 ISO weeks (Monday–Sunday UTC), most-recent week first. Each week's total sums every flow and
239
+ environment under the account. Pair with the `ediLabelPrintingUsage` block on
240
+ `GET /v1/licenseEntitlementUsage` for the current week's per-flow breakdown.
241
+ x-celigo-ai-guidance:
242
+ - Read-only historic view; takes no query parameters (the window is fixed at 12 weeks).
243
+ - Returns an empty `weeks` array when label printing is disabled for the account rather than a 4xx.
244
+ responses:
245
+ '200':
246
+ description: Historic weekly label-printing usage
247
+ content:
248
+ application/json:
249
+ schema:
250
+ $ref: '#/components/schemas/EDILabelPrintingUsageSummary'
251
+ examples:
252
+ default:
253
+ summary: Trailing weeks, most-recent first
254
+ value:
255
+ weeks:
256
+ - weekStart: '2026-03-30T00:00:00.000Z'
257
+ weekEnd: '2026-04-05T23:59:59.999Z'
258
+ numConsumed: 1820
259
+ - weekStart: '2026-03-23T00:00:00.000Z'
260
+ weekEnd: '2026-03-29T23:59:59.999Z'
261
+ numConsumed: 2410
262
+ disabled:
263
+ summary: Label printing disabled for the account
264
+ value:
265
+ weeks: []
266
+ '401':
267
+ $ref: '#/components/responses/401-unauthorized'
268
+ /v1/historicalMonthlyUsage:
269
+ get:
270
+ x-internal: false
271
+ summary: Get historical monthly entitlement usage
272
+ operationId: getHistoricalMonthlyUsage
273
+ tags:
274
+ - Subscription & Entitlements
275
+ description: |-
276
+ Returns historical monthly usage for accounts on flow-run pricing models (primarily platform
277
+ licenses). Useful for month-by-month trend analysis of usage vs. allocation.
278
+ responses:
279
+ '200':
280
+ description: Historical monthly usage
281
+ content:
282
+ application/json:
283
+ schema:
284
+ type: array
285
+ items:
286
+ $ref: '#/components/schemas/MonthlyUsage'
287
+ examples:
288
+ default:
289
+ value:
290
+ - month: 5
291
+ year: 2025
292
+ allocated:
293
+ flows: 5080
294
+ endpoints: 600
295
+ agents: 100
296
+ usage:
297
+ flows: 23
298
+ endpoints: 8
299
+ agents: 0
300
+ sandbox:
301
+ allocated:
302
+ flows: 0
303
+ endpoints: 0
304
+ agents: 0
305
+ usage:
306
+ flows: 0
307
+ endpoints: 0
308
+ agents: 0
309
+ - month: 4
310
+ year: 2025
311
+ allocated:
312
+ flows: 5080
313
+ endpoints: 600
314
+ agents: 100
315
+ apiInvocation: 0
316
+ usage:
317
+ flows: 31
318
+ endpoints: 16
319
+ agents: 0
320
+ apiInvocationCount: 0
321
+ diVolume: 0
322
+ sandbox:
323
+ allocated:
324
+ flows: 0
325
+ endpoints: 0
326
+ agents: 0
327
+ usage:
328
+ flows: 0
329
+ endpoints: 0
330
+ agents: 0
331
+ '401':
332
+ $ref: '#/components/responses/401-unauthorized'
333
+ /v1/usage:
334
+ get:
335
+ x-internal: false
336
+ summary: Get usage records (legacy)
337
+ operationId: getUsage
338
+ tags:
339
+ - Subscription & Entitlements
340
+ description: |-
341
+ Returns historical usage records for the current account (legacy usage series).
342
+
343
+ The response is an array of monthly records with a duration field (`milliseconds`).
344
+ responses:
345
+ '200':
346
+ description: Usage records
347
+ content:
348
+ application/json:
349
+ schema:
350
+ type: array
351
+ items:
352
+ $ref: '#/components/schemas/UsageRecord'
353
+ '401':
354
+ $ref: '#/components/responses/401-unauthorized'
355
+ components:
356
+ securitySchemes:
357
+ bearerAuth:
358
+ type: http
359
+ scheme: bearer
360
+ schemas:
361
+ LicenseEntitlementCounts:
362
+ type: object
363
+ description: |-
364
+ Entitlement counts for a given environment. For each resource type, a
365
+ `num*` field holds the base plan count and a `numAddOn*` field holds
366
+ additional capacity purchased as add-ons.
367
+ x-celigo-ai-guidance:
368
+ - |-
369
+ For each resource type there are two fields:
370
+ - `num*` — the base count included with the plan. A value of 0 means
371
+ the plan does not include a base allocation (the customer may still
372
+ have capacity via add-ons), or the limit is contract-based / unlimited.
373
+ - `numAddOn*` — additional capacity purchased as add-ons on top of
374
+ the base plan.
375
+ required:
376
+ - numEndpoints
377
+ - numAddOnEndpoints
378
+ - numFlows
379
+ - numAddOnFlows
380
+ - numAgents
381
+ - numAddOnAgents
382
+ properties:
383
+ numEndpoints:
384
+ type: integer
385
+ description: Base number of endpoints included with the plan.
386
+ example: 600
387
+ numAddOnEndpoints:
388
+ type: integer
389
+ description: Additional endpoints the customer purchased as add-ons.
390
+ example: 0
391
+ numFlows:
392
+ type: integer
393
+ description: Base number of flows included with the plan.
394
+ example: 80
395
+ numAddOnFlows:
396
+ type: integer
397
+ description: Additional flows the customer purchased as add-ons.
398
+ example: 5000
399
+ numTradingPartners:
400
+ type: integer
401
+ description: Base number of trading partners included with the plan.
402
+ example: 3
403
+ numAddOnTradingPartners:
404
+ type: integer
405
+ description: Additional trading partners the customer purchased as add-ons.
406
+ example: 0
407
+ numAgents:
408
+ type: integer
409
+ description: Base number of on-premise agents included with the plan.
410
+ example: 0
411
+ numAddOnAgents:
412
+ type: integer
413
+ description: Additional on-premise agents the customer purchased as add-ons.
414
+ example: 100
415
+ License:
416
+ type: object
417
+ required:
418
+ - _id
419
+ - type
420
+ - created
421
+ - lastModified
422
+ description: |-
423
+ Subscription plan or connector/Integration App license. Fields describe
424
+ what the plan **entitles**, not what is configured on the account.
425
+ x-celigo-ai-guidance:
426
+ - |-
427
+ IMPORTANT:
428
+ Every field on this object describes what the **plan entitles** (allows),
429
+ NOT what is actually configured or in use on the account.
430
+ For example, `sso:
431
+ true` means the plan includes SSO capability — it does not mean SSO is configured.
432
+ To know what is actually configured, use the appropriate domain tools (e.g.,
433
+ `get_account_settings` for SSO/MFA status).
434
+ - |-
435
+ Licenses may represent:
436
+ - an account-level subscription (`type` is `integrator`, `platform`, or `endpoint`)
437
+ - a connector-specific license (`type` is `connector`, includes `_connectorId` / `_integrationId`)
438
+ properties:
439
+ _id:
440
+ type: string
441
+ format: objectId
442
+ readOnly: true
443
+ x-celigo-refModel: licenses
444
+ description: License identifier.
445
+ example: 624cb0356309dc3a543733a4
446
+ created:
447
+ type: string
448
+ format: date-time
449
+ readOnly: true
450
+ description: License creation timestamp.
451
+ example: '2022-04-05T21:10:13.226Z'
452
+ lastModified:
453
+ type: string
454
+ format: date-time
455
+ readOnly: true
456
+ description: Last modification timestamp.
457
+ example: '2026-05-18T06:14:25.052Z'
458
+ expires:
459
+ type: string
460
+ format: date-time
461
+ description: License expiration timestamp.
462
+ example: '2099-12-31T00:00:00.000Z'
463
+ type:
464
+ type: string
465
+ description: License type (subscription category). Only the account-level license describes the full subscription plan.
466
+ example: platform
467
+ enum:
468
+ - integrator
469
+ - platform
470
+ - endpoint
471
+ - connector
472
+ - integrationApp
473
+ - integrationAppChild
474
+ x-enumDescriptions:
475
+ integrator: Account-level subscription (integrator pricing model).
476
+ platform: Account-level subscription (platform pricing model).
477
+ endpoint: Account-level subscription (endpoint pricing model).
478
+ connector: Connector-specific license for an Integration App.
479
+ integrationApp: Integration App license (parent).
480
+ integrationAppChild: Integration App child license (inherits from a parent via `_parentId`).
481
+ cdc:
482
+ type: boolean
483
+ description: When true, the account is licensed for CDC (change data capture) features.
484
+ tier:
485
+ type: string
486
+ description: Subscription tier name — the plan level the account is on.
487
+ x-celigo-ai-guidance:
488
+ - 'Examples: `free`, `standard`, `professional`, `enterprise`, `enterprise (2024)`.'
489
+ example: enterprise (2024)
490
+ supportTier:
491
+ type: string
492
+ description: Support plan level.
493
+ example: premier
494
+ enum:
495
+ - essential
496
+ - preferred
497
+ - premier
498
+ x-enumDescriptions:
499
+ essential: Standard support included with all plans.
500
+ preferred: Enhanced support with faster response times.
501
+ premier: Highest support tier with dedicated resources.
502
+ trialEndDate:
503
+ type: string
504
+ format: date-time
505
+ description: Trial end timestamp. Remains populated after the trial ends with the original expiration date.
506
+ x-celigo-ai-guidance:
507
+ - Trial end timestamp (present only for trial accounts).
508
+ example: '2024-05-06T00:00:00.000Z'
509
+ _connectorId:
510
+ type: string
511
+ format: objectId
512
+ x-celigo-refModel: connectors
513
+ description: Connector id. Present on `connector`, `integrationApp`, and `integrationAppChild` licenses.
514
+ x-celigo-ai-guidance:
515
+ - Connector id — present only on connector-specific licenses.
516
+ example: 5f8489ca15e4c824e38a769f
517
+ _integrationId:
518
+ type: string
519
+ format: objectId
520
+ x-celigo-refModel: integrations
521
+ description: Integration id. Present on `connector`, `integrationApp`, and `integrationAppChild` licenses.
522
+ x-celigo-ai-guidance:
523
+ - Integration id — present only on connector-specific licenses.
524
+ example: 5f7e39a76bb8d813180a9549
525
+ _editionId:
526
+ type: string
527
+ format: objectId
528
+ description: Edition id — present on `integrationApp` and `integrationAppChild` licenses.
529
+ example: 60a2c4e6f321d800129a1a3c
530
+ _parentId:
531
+ type: string
532
+ format: objectId
533
+ x-celigo-refModel: licenses
534
+ description: Parent license id — present only on `integrationAppChild` licenses. References the parent `integrationApp` license.
535
+ example: 61b3d5f7e432e900130b2b4d
536
+ opts:
537
+ type: object
538
+ description: Connector/license options (connector edition, add-on licenses, etc.). Present only on connector-specific licenses.
539
+ example:
540
+ connectorEdition: premium
541
+ addonLicenses:
542
+ - type: store
543
+ licenses:
544
+ - addOnEdition: premium
545
+ resumable:
546
+ type: boolean
547
+ readOnly: true
548
+ description: When true, the license/account is eligible for self-service resume after suspension.
549
+ example: false
550
+ disableOverage:
551
+ type: boolean
552
+ description: When true, overage charges are disabled for this account.
553
+ example: false
554
+ requestUserToMigrateSandbox:
555
+ type: boolean
556
+ description: When true, the user should be prompted to migrate legacy sandbox data to environments.
557
+ example: false
558
+ endpoint:
559
+ type: object
560
+ description: Entitlements for endpoint-style licenses. Present only when `type` is `endpoint`.
561
+ properties:
562
+ production:
563
+ $ref: '#/components/schemas/LicenseEntitlementCounts'
564
+ numEnvironments:
565
+ type: integer
566
+ description: Maximum number of environments the plan allows.
567
+ example: 5
568
+ integrator:
569
+ type: object
570
+ description: Entitlements for integrator-style licenses. Present only when `type` is `integrator`.
571
+ properties:
572
+ production:
573
+ $ref: '#/components/schemas/LicenseEntitlementCounts'
574
+ numEnvironments:
575
+ type: integer
576
+ description: Maximum number of environments the plan allows.
577
+ example: 5
578
+ platform:
579
+ type: object
580
+ description: Entitlements for platform-style licenses. Present only when `type` is `platform`.
581
+ properties:
582
+ production:
583
+ $ref: '#/components/schemas/LicenseEntitlementCounts'
584
+ numEnvironments:
585
+ type: integer
586
+ description: Maximum number of environments the plan allows.
587
+ example: 5
588
+ apiManagement:
589
+ type: boolean
590
+ description: When true, the platform plan includes API Management.
591
+ example: true
592
+ sso:
593
+ type: boolean
594
+ description: When true, the plan entitles the account to use SSO (Single Sign-On).
595
+ example: true
596
+ van:
597
+ type: boolean
598
+ description: When true, the plan entitles the account to use VAN (Value Added Network) for EDI.
599
+ example: true
600
+ lookupCache:
601
+ type: boolean
602
+ description: When true, the plan entitles the account to use Lookup Caches (in-memory lookups).
603
+ example: true
604
+ abstractFlows:
605
+ type: boolean
606
+ description: When true, the plan entitles the account to use Abstract Flows (multi-instance templates).
607
+ example: true
608
+ apiManagement:
609
+ type: boolean
610
+ description: When true, the plan entitles the account to use API Management (APIM).
611
+ example: true
612
+ concurrency:
613
+ type: integer
614
+ description: Maximum number of concurrent flow executions the plan allows.
615
+ example: 25
616
+ maxAllowedDataRetention:
617
+ type: integer
618
+ description: Maximum data retention period (in days) the plan allows.
619
+ example: 180
620
+ auditLogRetentionYears:
621
+ type: integer
622
+ description: Maximum audit log retention (in years) the plan allows.
623
+ example: 3
624
+ aiConversationsPrepaidBalance:
625
+ type: number
626
+ description: |-
627
+ Remaining prepaid credit balance for Ora (Celigo's AI assistant).
628
+ Customers purchase credits up front and usage costs are deducted
629
+ as they interact with Ora.
630
+ example: 47.96
631
+ aiAgentsPrepaidBalance:
632
+ type: number
633
+ description: |-
634
+ Remaining prepaid credit balance for AI Agents — LLM/AI capabilities
635
+ used within flows, APIs, and automations (e.g., AI-powered transforms,
636
+ hooks). Customers purchase credits up front and usage costs are
637
+ deducted as AI agents run. This balance is separate from Ora credits.
638
+ example: 19.62
639
+ aiAgentsActions:
640
+ type: integer
641
+ description: Total AI agent action entitlement for the current billing period.
642
+ example: 10000
643
+ mcp:
644
+ type: object
645
+ description: MCP (Model Context Protocol) server entitlements.
646
+ required:
647
+ - numInvocations
648
+ properties:
649
+ numInvocations:
650
+ type: integer
651
+ description: Base number of MCP server invocations per month included with the plan.
652
+ example: 50000
653
+ di:
654
+ type: object
655
+ description: Data Interchange (DI) entitlements.
656
+ required:
657
+ - enabled
658
+ - volume
659
+ - volumeAddOn
660
+ - disableOverage
661
+ properties:
662
+ enabled:
663
+ type: boolean
664
+ description: When true, the plan entitles the account to use Data Interchange.
665
+ example: false
666
+ volume:
667
+ type: integer
668
+ description: Base DI volume included with the plan.
669
+ example: 0
670
+ volumeAddOn:
671
+ type: integer
672
+ description: Additional DI volume the customer purchased as add-ons.
673
+ example: 0
674
+ disableOverage:
675
+ type: boolean
676
+ description: When true, Data Interchange overage charges are disabled.
677
+ example: false
678
+ api:
679
+ type: object
680
+ description: API Builder plan entitlements and invocation limits.
681
+ required:
682
+ - builder
683
+ - enablePricing
684
+ - disableOverages
685
+ - numInvocations
686
+ - apimNumInvocations
687
+ - numAddOnInvocations
688
+ properties:
689
+ builder:
690
+ type: boolean
691
+ description: When true, the plan entitles the account to use API Builder (building custom HTTP APIs on the Celigo platform).
692
+ example: true
693
+ enablePricing:
694
+ type: boolean
695
+ description: When true, API pricing and billing features are enabled.
696
+ example: false
697
+ disableOverages:
698
+ type: boolean
699
+ description: When true, API overage charges are disabled.
700
+ example: false
701
+ numInvocations:
702
+ type: integer
703
+ description: Base number of API calls per month included with the plan.
704
+ example: 0
705
+ apimNumInvocations:
706
+ type: integer
707
+ description: Base number of APIM API calls per month included with the plan.
708
+ example: 0
709
+ numAddOnInvocations:
710
+ type: integer
711
+ description: Additional API calls per month the customer purchased as add-ons.
712
+ example: 0
713
+ edi:
714
+ type: object
715
+ description: EDI (Electronic Data Interchange) plan entitlements.
716
+ required:
717
+ - enabled
718
+ - tier
719
+ - numTradingPartners
720
+ - numAddOnTradingPartners
721
+ - numDocumentTypes
722
+ - numAddOnDocumentTypes
723
+ properties:
724
+ enabled:
725
+ type: boolean
726
+ description: When true, the plan entitles the account to use EDI (B2B Manager).
727
+ example: true
728
+ onboarded:
729
+ type: boolean
730
+ description: When true, the account has completed EDI onboarding.
731
+ example: true
732
+ tier:
733
+ type: string
734
+ description: B2B Manager subscription tier.
735
+ x-celigo-ai-guidance:
736
+ - |-
737
+ B2B Manager subscription tier.
738
+ Determines base limits for trading partners, document types, and VAN service.
739
+ - |-
740
+ Trading partner count is based on unique EDI Profile IDs in active flows.
741
+ Document types are counted by normalized category (e.g.,
742
+ all "Purchase Order" variations count as one;
743
+ EDI 997 Functional Acknowledgements are excluded).
744
+ Customers can purchase add-on packs for additional trading partners and document
745
+ types beyond the base tier.
746
+ example: basic
747
+ enum:
748
+ - free
749
+ - basic
750
+ - advanced
751
+ - expert
752
+ x-enumDescriptions:
753
+ free: 1 trading partner, 5 document types, no VAN service.
754
+ basic: 3 trading partners, 5 document types, up to 1000 VDU/mo VAN.
755
+ advanced: 10 trading partners, 5 document types, up to 1000 VDU/mo VAN.
756
+ expert: 25 trading partners, 5 document types, up to 1000 VDU/mo VAN.
757
+ disableOverage:
758
+ type: boolean
759
+ description: When true, EDI overage charges are disabled.
760
+ example: false
761
+ numTradingPartners:
762
+ type: integer
763
+ description: Base number of EDI trading partners included with the plan.
764
+ example: 3
765
+ numAddOnTradingPartners:
766
+ type: integer
767
+ description: Additional EDI trading partners the customer purchased as add-ons.
768
+ example: 0
769
+ numDocumentTypes:
770
+ type: integer
771
+ description: Base number of EDI document types included with the plan.
772
+ example: 5
773
+ numAddOnDocumentTypes:
774
+ type: integer
775
+ description: Additional EDI document types the customer purchased as add-ons.
776
+ example: 0
777
+ labelPrinting:
778
+ type: object
779
+ description: |-
780
+ EDI label-printing (BarTender) entitlements. Absent when the
781
+ label-printing capability is unavailable platform-wide.
782
+ required:
783
+ - enabled
784
+ - onboarded
785
+ - numLabels
786
+ - numAddOnLabels
787
+ properties:
788
+ enabled:
789
+ type: boolean
790
+ description: When true, the plan entitles the account to use EDI label printing.
791
+ example: true
792
+ onboarded:
793
+ type: boolean
794
+ description: When true, the account has completed label-printing onboarding.
795
+ example: true
796
+ numLabels:
797
+ type: integer
798
+ description: |-
799
+ Base weekly label allowance included with the plan. The effective
800
+ weekly cap is `numLabels` plus `numAddOnLabels`.
801
+ example: 2000
802
+ numAddOnLabels:
803
+ type: integer
804
+ description: Additional weekly label allowance the customer purchased as add-ons.
805
+ example: 4000
806
+ logging:
807
+ type: object
808
+ description: Execution logging plan entitlements.
809
+ required:
810
+ - enabled
811
+ - maxLogMode
812
+ - maxDebugDuration
813
+ - maxRetentionPeriod
814
+ properties:
815
+ enabled:
816
+ type: boolean
817
+ description: When true, the plan entitles the account to use execution logging.
818
+ example: true
819
+ maxLogMode:
820
+ type: string
821
+ description: Maximum logging detail level the plan allows.
822
+ example: detailed
823
+ enum:
824
+ - brief
825
+ - detailed
826
+ x-enumDescriptions:
827
+ brief: Summary-level execution logs only.
828
+ detailed: Full execution logs with request/response data.
829
+ maxDebugDuration:
830
+ type: integer
831
+ description: Maximum time (in minutes) the plan allows a user to enable debug logging for.
832
+ example: 4320
833
+ maxRetentionPeriod:
834
+ type: integer
835
+ description: Maximum execution log retention period (in days) the plan allows.
836
+ example: 180
837
+ storage:
838
+ type: object
839
+ description: |-
840
+ File-storage entitlements. Always present on account-level licenses
841
+ (`type` is `integrator`, `endpoint`, or `platform`); absent on
842
+ connector and Integration App licenses.
843
+ required:
844
+ - maxAllowedUsage
845
+ - disableOverage
846
+ properties:
847
+ maxAllowedUsage:
848
+ type: number
849
+ minimum: 0
850
+ description: |-
851
+ Maximum file-storage usage the plan allows, in GB — the same
852
+ quota `GET /v1/storage/usage` reports in bytes as
853
+ `maxAllowedUsage`. Reported as 1 for accounts without an
854
+ explicit storage entitlement.
855
+ example: 200
856
+ disableOverage:
857
+ type: boolean
858
+ description: When true, file-storage overage charges are disabled.
859
+ example: false
860
+ if:
861
+ properties:
862
+ type:
863
+ const: platform
864
+ then:
865
+ required:
866
+ - platform
867
+ else:
868
+ if:
869
+ properties:
870
+ type:
871
+ const: integrator
872
+ then:
873
+ required:
874
+ - integrator
875
+ else:
876
+ if:
877
+ properties:
878
+ type:
879
+ const: endpoint
880
+ then:
881
+ required:
882
+ - endpoint
883
+ else:
884
+ if:
885
+ properties:
886
+ type:
887
+ enum:
888
+ - connector
889
+ - integrationApp
890
+ - integrationAppChild
891
+ then:
892
+ required:
893
+ - _connectorId
894
+ FlowUsage:
895
+ type: object
896
+ description: Flow entitlement usage.
897
+ properties:
898
+ numEnabled:
899
+ type: integer
900
+ description: Number of enabled flows.
901
+ example: 12
902
+ flows:
903
+ type: array
904
+ description: Flows contributing to usage.
905
+ x-celigo-ai-guidance:
906
+ - List of flows contributing to usage (if provided).
907
+ items:
908
+ type: object
909
+ properties:
910
+ _id:
911
+ type: string
912
+ format: objectId
913
+ x-celigo-refModel: flows
914
+ description: Flow id.
915
+ example: 69d097584e0c505cda036df9
916
+ name:
917
+ type: string
918
+ description: Flow name.
919
+ example: HubSpot Contacts → Snowflake (Nightly)
920
+ isDeleted:
921
+ type: boolean
922
+ description: When true, the flow has been soft-deleted. Deleted flows may still count toward entitlement until fully purged.
923
+ example: false
924
+ integration:
925
+ type: object
926
+ description: Parent integration summary.
927
+ properties:
928
+ _id:
929
+ type: string
930
+ format: objectId
931
+ x-celigo-refModel: integrations
932
+ description: Integration id.
933
+ example: 69d0973d4e0c505cda0368d1
934
+ name:
935
+ type: string
936
+ description: Integration name.
937
+ example: POC – HubSpot → Snowflake
938
+ EndpointUsage:
939
+ type: object
940
+ description: Endpoint entitlement usage.
941
+ properties:
942
+ numConsumed:
943
+ type: integer
944
+ description: Number of endpoints currently consumed.
945
+ example: 8
946
+ endpoints:
947
+ type: array
948
+ description: Detailed breakdown of endpoints by type.
949
+ items:
950
+ type: object
951
+ properties:
952
+ type:
953
+ type: string
954
+ description: Endpoint adaptor type (e.g., `http`, `rdbms`, `ftp`).
955
+ x-celigo-ai-guidance:
956
+ - Endpoint type/category.
957
+ example: http
958
+ assistant:
959
+ type: string
960
+ description: Application assistant identifier, if the connection uses a Celigo-managed application profile (e.g., `hubspot`, `netsuite`).
961
+ example: hubspot
962
+ baseURI:
963
+ type: string
964
+ description: Base URI of the connection, if applicable.
965
+ example: https://api.hubspot.com
966
+ rdbms:
967
+ type: object
968
+ description: Database connection details. Present when `type` is `rdbms`.
969
+ properties:
970
+ type:
971
+ type: string
972
+ description: Database engine (e.g., `snowflake`, `mysql`, `postgresql`).
973
+ example: snowflake
974
+ host:
975
+ type: string
976
+ description: Database host or account identifier.
977
+ example: celigo_partner
978
+ connections:
979
+ type: array
980
+ description: Connections contributing to this endpoint's usage.
981
+ items:
982
+ type: object
983
+ properties:
984
+ _id:
985
+ type: string
986
+ format: objectId
987
+ x-celigo-refModel: connections
988
+ description: Connection id.
989
+ example: 62ac9ab6cd606e428737008e
990
+ name:
991
+ type: string
992
+ description: Connection name.
993
+ example: HubSpot (Production)
994
+ isDeleted:
995
+ type: boolean
996
+ description: When true, the connection has been soft-deleted. Deleted connections may still count toward entitlement until fully purged.
997
+ example: false
998
+ AgentUsage:
999
+ type: object
1000
+ description: Agent entitlement usage.
1001
+ properties:
1002
+ numActive:
1003
+ type: integer
1004
+ description: Number of active agents.
1005
+ example: 0
1006
+ agents:
1007
+ type: array
1008
+ description: Agents contributing to usage.
1009
+ x-celigo-ai-guidance:
1010
+ - List of agents contributing to usage (if provided).
1011
+ items:
1012
+ type: object
1013
+ properties:
1014
+ _id:
1015
+ type: string
1016
+ format: objectId
1017
+ x-celigo-refModel: agents
1018
+ description: Agent id.
1019
+ example: 60a2c4e6f321d800129a1a3c
1020
+ name:
1021
+ type: string
1022
+ description: Agent name.
1023
+ example: On-Premise Agent 1
1024
+ EnvironmentUsage:
1025
+ type: object
1026
+ description: Environment entitlement usage.
1027
+ x-celigo-ai-guidance:
1028
+ - Environment entitlement usage (multi-environment licensing).
1029
+ properties:
1030
+ numEnabled:
1031
+ type: integer
1032
+ description: Number of enabled environments.
1033
+ example: 2
1034
+ environments:
1035
+ type: array
1036
+ description: Environments contributing to usage.
1037
+ items:
1038
+ type: object
1039
+ properties:
1040
+ _id:
1041
+ type: string
1042
+ format: objectId
1043
+ x-celigo-refModel: environments
1044
+ description: Environment id.
1045
+ example: 69150a05578417f9fa40dbe4
1046
+ name:
1047
+ type: string
1048
+ description: Environment name.
1049
+ example: Sandbox
1050
+ _userId:
1051
+ type: string
1052
+ format: objectId
1053
+ x-celigo-refModel: users
1054
+ description: Owner user id.
1055
+ example: 624cb0346309dc3a543733a2
1056
+ _envUserId:
1057
+ type: string
1058
+ format: objectId
1059
+ x-celigo-refModel: users
1060
+ description: Environment user id.
1061
+ example: 69150a05578417f9fa40dbe6
1062
+ description:
1063
+ type: string
1064
+ description: Environment description.
1065
+ example: ''
1066
+ enabled:
1067
+ type: boolean
1068
+ description: When true, the environment is enabled and active.
1069
+ example: true
1070
+ createdAt:
1071
+ type: string
1072
+ format: date-time
1073
+ readOnly: true
1074
+ description: Environment creation timestamp.
1075
+ example: '2025-11-12T22:28:22.433Z'
1076
+ lastModified:
1077
+ type: string
1078
+ format: date-time
1079
+ readOnly: true
1080
+ description: Last modification timestamp.
1081
+ example: '2026-05-15T23:45:40.725Z'
1082
+ EDITradingPartnerUsage:
1083
+ type: object
1084
+ description: EDI trading partner entitlement usage (EDI add-on/licensing).
1085
+ properties:
1086
+ numConsumed:
1087
+ type: integer
1088
+ description: Number of EDI trading partners consumed.
1089
+ example: 1
1090
+ tradingPartners:
1091
+ type: array
1092
+ description: Trading partners contributing to usage.
1093
+ items:
1094
+ type: object
1095
+ properties:
1096
+ tradingPartnerName:
1097
+ type: string
1098
+ description: Trading partner display name.
1099
+ example: Acme Corp
1100
+ ediProfiles:
1101
+ type: array
1102
+ description: EDI profiles associated with this trading partner.
1103
+ items:
1104
+ type: object
1105
+ properties:
1106
+ id:
1107
+ type: string
1108
+ format: objectId
1109
+ x-celigo-refModel: ediprofiles
1110
+ description: EDI profile id.
1111
+ example: 69014f1691348b59ebed05a9
1112
+ name:
1113
+ type: string
1114
+ description: EDI profile name.
1115
+ example: Acme EDI Profile
1116
+ EDIDocumentTypeUsage:
1117
+ type: object
1118
+ description: EDI document type entitlement usage (EDI add-on/licensing).
1119
+ properties:
1120
+ numConsumed:
1121
+ type: integer
1122
+ description: Number of EDI document types consumed.
1123
+ example: 1
1124
+ documents:
1125
+ type: array
1126
+ description: Document types contributing to usage.
1127
+ items:
1128
+ type: object
1129
+ properties:
1130
+ category:
1131
+ type: string
1132
+ description: Normalized document type category (e.g., "Warehouse Stock Shipping Order").
1133
+ example: Purchase Order
1134
+ fileDefinitions:
1135
+ type: array
1136
+ description: File definitions in this category.
1137
+ items:
1138
+ type: object
1139
+ properties:
1140
+ _id:
1141
+ type: string
1142
+ format: objectId
1143
+ x-celigo-refModel: filedefinitions
1144
+ description: File definition id.
1145
+ example: 69014f1691348b59ebed059b
1146
+ name:
1147
+ type: string
1148
+ description: File definition name.
1149
+ example: Generic EDI 850
1150
+ EDILabelPrintingUsage:
1151
+ type: object
1152
+ description: |-
1153
+ EDI label-printing (BarTender) entitlement usage for the current billing week (Monday–Sunday UTC).
1154
+ Present only when the account's license enables label printing; omitted entirely when label
1155
+ printing is disabled platform-wide.
1156
+ properties:
1157
+ numConsumed:
1158
+ type: integer
1159
+ description: |-
1160
+ Labels consumed account-wide this week, summed across every environment — this is the value
1161
+ measured against the weekly cap. It is not necessarily the sum of `flows[].numConsumed`, since
1162
+ `flows[]` covers only the caller's active environment.
1163
+ example: 1542
1164
+ flows:
1165
+ type: array
1166
+ description: |-
1167
+ Per-flow label consumption for the caller's active environment only. A flow is listed here
1168
+ only when it consumed labels this week in the environment the request is scoped to.
1169
+ items:
1170
+ type: object
1171
+ properties:
1172
+ _id:
1173
+ type: string
1174
+ format: objectId
1175
+ x-celigo-refModel: flows
1176
+ description: Flow id.
1177
+ example: 6a25e22136b14ada888433f4
1178
+ name:
1179
+ type: string
1180
+ description: Flow name. May be an empty string when the flow has been deleted.
1181
+ example: Bartender — UPS labels
1182
+ integration:
1183
+ type: object
1184
+ description: Parent integration of the flow. Every flow belongs to an integration.
1185
+ properties:
1186
+ _id:
1187
+ type: string
1188
+ format: objectId
1189
+ x-celigo-refModel: integrations
1190
+ description: Integration id.
1191
+ example: 69d0973d4e0c505cda0368d1
1192
+ name:
1193
+ type: string
1194
+ description: Integration name.
1195
+ example: NetSuite — Acme
1196
+ numConsumed:
1197
+ type: integer
1198
+ description: Labels this flow consumed this week in the caller's active environment.
1199
+ example: 812
1200
+ LicenseEntitlementUsage:
1201
+ type: object
1202
+ description: Entitlement usage information for the account/license, keyed by usage category.
1203
+ properties:
1204
+ flowUsage:
1205
+ $ref: '#/components/schemas/FlowUsage'
1206
+ endpointUsage:
1207
+ $ref: '#/components/schemas/EndpointUsage'
1208
+ agentUsage:
1209
+ $ref: '#/components/schemas/AgentUsage'
1210
+ environmentUsage:
1211
+ $ref: '#/components/schemas/EnvironmentUsage'
1212
+ ediTradingPartnerUsage:
1213
+ $ref: '#/components/schemas/EDITradingPartnerUsage'
1214
+ ediDocumentTypeUsage:
1215
+ $ref: '#/components/schemas/EDIDocumentTypeUsage'
1216
+ ediLabelPrintingUsage:
1217
+ $ref: '#/components/schemas/EDILabelPrintingUsage'
1218
+ apiUsage:
1219
+ type: object
1220
+ description: API invocation counts for the current billing period.
1221
+ properties:
1222
+ ioInvocationCount:
1223
+ type: integer
1224
+ description: Number of integrator.io API invocations.
1225
+ example: 1250
1226
+ apimInvocationCount:
1227
+ type: integer
1228
+ description: Number of APIM (API Management add-on) invocations.
1229
+ example: 0
1230
+ syncUsage:
1231
+ type: object
1232
+ description: Sync-volume entitlement usage.
1233
+ properties:
1234
+ entitlement:
1235
+ type: integer
1236
+ description: Provisioned sync entitlement.
1237
+ example: 0
1238
+ volume:
1239
+ type: integer
1240
+ description: Sync volume consumed against the entitlement.
1241
+ example: 0
1242
+ mcpUsage:
1243
+ type: object
1244
+ description: MCP server invocation counts.
1245
+ properties:
1246
+ numInvocations:
1247
+ type: integer
1248
+ description: Number of MCP invocations for the current period.
1249
+ example: 340
1250
+ aiAgentsActionsUsage:
1251
+ type: integer
1252
+ description: Number of AI agent actions consumed for the current period.
1253
+ example: 87
1254
+ EDILabelPrintingUsageSummary:
1255
+ type: object
1256
+ description: |-
1257
+ Historic weekly EDI label-printing (BarTender) consumption, account-wide across all flows and
1258
+ environments. Covers the trailing 12 ISO weeks (Monday–Sunday UTC).
1259
+ required:
1260
+ - weeks
1261
+ properties:
1262
+ weeks:
1263
+ type: array
1264
+ description: |-
1265
+ Weekly totals, most-recent week first. Always dense over the 12-week window — a week with no
1266
+ consumption is returned with `numConsumed: 0`. Empty when label printing is disabled for the
1267
+ account.
1268
+ items:
1269
+ type: object
1270
+ required:
1271
+ - weekStart
1272
+ - weekEnd
1273
+ - numConsumed
1274
+ properties:
1275
+ weekStart:
1276
+ type: string
1277
+ format: date-time
1278
+ description: Start of the ISO week, Monday 00:00:00.000 UTC.
1279
+ example: '2026-03-30T00:00:00.000Z'
1280
+ weekEnd:
1281
+ type: string
1282
+ format: date-time
1283
+ description: End of the ISO week, Sunday 23:59:59.999 UTC.
1284
+ example: '2026-04-05T23:59:59.999Z'
1285
+ numConsumed:
1286
+ type: integer
1287
+ description: Labels consumed account-wide during the week.
1288
+ example: 1820
1289
+ MonthlyUsage:
1290
+ type: object
1291
+ description: Month-by-month usage vs allocation for a billing period.
1292
+ properties:
1293
+ year:
1294
+ type: integer
1295
+ description: Calendar year.
1296
+ x-celigo-ai-guidance:
1297
+ - The year of the usage data.
1298
+ example: 2025
1299
+ month:
1300
+ type: integer
1301
+ minimum: 1
1302
+ maximum: 12
1303
+ description: Calendar month (1-indexed — 1 = January, 12 = December).
1304
+ x-celigo-ai-guidance:
1305
+ - The month of the usage data (1-12).
1306
+ example: 5
1307
+ usage:
1308
+ type: object
1309
+ description: Actual usage numbers for the month.
1310
+ properties:
1311
+ flows:
1312
+ type: integer
1313
+ description: Flows in use during the month.
1314
+ example: 23
1315
+ endpoints:
1316
+ type: integer
1317
+ description: Endpoints in use during the month.
1318
+ example: 8
1319
+ agents:
1320
+ type: integer
1321
+ description: On-premise agents in use during the month.
1322
+ example: 0
1323
+ apiInvocationCount:
1324
+ type: integer
1325
+ description: API invocations consumed during the month.
1326
+ example: 0
1327
+ diVolume:
1328
+ type: integer
1329
+ description: Data Interchange volume consumed during the month.
1330
+ example: 0
1331
+ allocated:
1332
+ type: object
1333
+ description: Allocated/entitled numbers for the month.
1334
+ properties:
1335
+ flows:
1336
+ type: integer
1337
+ description: Flow allocation for the month (base plan plus add-ons).
1338
+ example: 5080
1339
+ endpoints:
1340
+ type: integer
1341
+ description: Endpoint allocation for the month (base plan plus add-ons).
1342
+ example: 600
1343
+ agents:
1344
+ type: integer
1345
+ description: On-premise agent allocation for the month (base plan plus add-ons).
1346
+ example: 100
1347
+ apiInvocation:
1348
+ type: integer
1349
+ description: API invocation allocation for the month.
1350
+ example: 0
1351
+ UsageRecord:
1352
+ type: object
1353
+ description: A monthly usage record returned by `GET /v1/usage`.
1354
+ properties:
1355
+ year:
1356
+ type: integer
1357
+ description: Calendar year.
1358
+ example: 2025
1359
+ month:
1360
+ type: integer
1361
+ minimum: 0
1362
+ maximum: 11
1363
+ description: Calendar month (0-indexed — 0 = January, 11 = December). Differs from `historicalMonthlyUsage` which uses 1-indexed months.
1364
+ example: 4
1365
+ milliseconds:
1366
+ type: integer
1367
+ description: Usage duration value in milliseconds (legacy metric).
1368
+ example: 1660454
1369
+ responses:
1370
+ 401-unauthorized:
1371
+ description: |-
1372
+ Unauthorized. The request lacks a valid bearer token, or the provided token
1373
+ failed to authenticate.
1374
+
1375
+ Note: the 401 response is produced by the auth middleware **before** the
1376
+ request reaches the endpoint handler, so it does **not** follow the
1377
+ standard `{errors: [...]}` envelope. Instead the body is a bare
1378
+ `{message: string}` object with no `code`, no `errors` array. Callers
1379
+ handling 401s should key off the HTTP status and the `message` string,
1380
+ not try to destructure an `errors[]`.
1381
+ content:
1382
+ application/json:
1383
+ schema:
1384
+ type: object
1385
+ properties:
1386
+ message:
1387
+ type: string
1388
+ description: |-
1389
+ Human-readable description of the auth failure. Known values:
1390
+ - `"Unauthorized"` — no `Authorization` header on the request.
1391
+ - `"Bearer Authentication Failed"` — header present but token
1392
+ is invalid, revoked, or expired.
1393
+ required:
1394
+ - message
1395
+ examples:
1396
+ missing_token:
1397
+ summary: No Authorization header sent
1398
+ value:
1399
+ message: Unauthorized
1400
+ invalid_token:
1401
+ summary: Bearer token invalid or revoked
1402
+ value:
1403
+ message: Bearer Authentication Failed
1404
+ x-enable-proxy: true
1405
+ x-internal: false