@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.
- package/LICENSE +21 -0
- package/README.md +119 -0
- package/dist/account.yml +592 -0
- package/dist/agent.yml +908 -0
- package/dist/ai-agent.yml +5471 -0
- package/dist/api.yml +4140 -0
- package/dist/apim.yml +1286 -0
- package/dist/asynchelper.yml +3391 -0
- package/dist/audit.yml +2006 -0
- package/dist/connection.yml +8665 -0
- package/dist/connector.yml +1406 -0
- package/dist/ediprofile.yml +911 -0
- package/dist/editransaction.yml +1210 -0
- package/dist/enduser.yml +1724 -0
- package/dist/environment.yml +568 -0
- package/dist/eventreport.yml +692 -0
- package/dist/export.yml +17610 -0
- package/dist/filedefinition.yml +1396 -0
- package/dist/filestorage.yml +3102 -0
- package/dist/flow.yml +7928 -0
- package/dist/guardrail.yml +2763 -0
- package/dist/httpconnector.yml +2277 -0
- package/dist/httpconnectorendpoint.yml +722 -0
- package/dist/httpconnectorresource.yml +396 -0
- package/dist/iclient.yml +4452 -0
- package/dist/import.yml +15381 -0
- package/dist/integration.yml +4406 -0
- package/dist/job.yml +2014 -0
- package/dist/lookupcache.yml +1325 -0
- package/dist/marketplace.yml +685 -0
- package/dist/mcp-oauth-provider.yml +590 -0
- package/dist/mcp-server.yml +2656 -0
- package/dist/notification.yml +488 -0
- package/dist/processor.yml +1253 -0
- package/dist/profile.yml +455 -0
- package/dist/recyclebin.yml +768 -0
- package/dist/script.yml +1128 -0
- package/dist/stack.yml +1291 -0
- package/dist/state.yml +894 -0
- package/dist/subscription.yml +1405 -0
- package/dist/sync.yml +4857 -0
- package/dist/tag.yml +553 -0
- package/dist/template.yml +897 -0
- package/dist/tool.yml +33656 -0
- package/dist/tradingpartnerconnector.yml +1490 -0
- package/dist/user.yml +831 -0
- package/package.json +41 -0
- package/schemas.json +8420 -0
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
openapi: 3.2.0
|
|
2
|
+
info:
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: Environments
|
|
5
|
+
description: API for managing Celigo environments — isolated partitions of an account, each with its own users and integrations.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://api.integrator.io
|
|
8
|
+
description: Production (US / default region)
|
|
9
|
+
- url: https://api.eu.integrator.io
|
|
10
|
+
description: Production (EU region)
|
|
11
|
+
- url: https://api.au.integrator.io
|
|
12
|
+
description: Production (AU region)
|
|
13
|
+
- url: https://api.ca.integrator.io
|
|
14
|
+
description: Production (CA region)
|
|
15
|
+
security:
|
|
16
|
+
- bearerAuth: []
|
|
17
|
+
tags:
|
|
18
|
+
- name: Environments
|
|
19
|
+
description: |-
|
|
20
|
+
Environments partition a Celigo account into separate, isolated spaces.
|
|
21
|
+
Each environment has its own users, integrations, connections, and flows,
|
|
22
|
+
functioning like independent accounts under a single license.
|
|
23
|
+
|
|
24
|
+
Requires the environments feature to be enabled. Every account with the
|
|
25
|
+
feature starts with a Production environment that cannot be disabled.
|
|
26
|
+
|
|
27
|
+
## Environment schema
|
|
28
|
+
|
|
29
|
+
{% openapi-schemas spec="environment" schemas="Environment" grouped="true" %}
|
|
30
|
+
paths:
|
|
31
|
+
/v1/environments:
|
|
32
|
+
get:
|
|
33
|
+
x-internal: false
|
|
34
|
+
summary: List environments
|
|
35
|
+
operationId: listEnvironments
|
|
36
|
+
tags:
|
|
37
|
+
- Environments
|
|
38
|
+
description: |-
|
|
39
|
+
Returns all environments in the account. Requires the environments
|
|
40
|
+
feature to be enabled -- accounts without it receive
|
|
41
|
+
`feature_not_enabled`. Every account with the feature has at least
|
|
42
|
+
one environment (Production). The full list is returned in a single
|
|
43
|
+
unpaginated response.
|
|
44
|
+
responses:
|
|
45
|
+
'200':
|
|
46
|
+
description: List of environments.
|
|
47
|
+
x-celigo-ai-guidance:
|
|
48
|
+
- Successfully retrieved list of environments
|
|
49
|
+
content:
|
|
50
|
+
application/json:
|
|
51
|
+
schema:
|
|
52
|
+
type: array
|
|
53
|
+
items:
|
|
54
|
+
$ref: '#/components/schemas/Environment'
|
|
55
|
+
examples:
|
|
56
|
+
default:
|
|
57
|
+
value:
|
|
58
|
+
- _id: 68f76c67f7876d161ffb9c52
|
|
59
|
+
_envUserId: 624cb0346309dc3a543733a2
|
|
60
|
+
name: Production
|
|
61
|
+
enabled: true
|
|
62
|
+
lastModified: '2025-10-21T11:20:07.448Z'
|
|
63
|
+
createdAt: '2025-10-21T11:20:07.448Z'
|
|
64
|
+
- _id: 69150a05578417f9fa40dbe4
|
|
65
|
+
_envUserId: 69150a05578417f9fa40dbe6
|
|
66
|
+
name: Sandbox
|
|
67
|
+
description: Pre-production testing environment
|
|
68
|
+
enabled: true
|
|
69
|
+
lastModified: '2025-11-12T22:28:22.433Z'
|
|
70
|
+
createdAt: '2025-11-12T22:28:22.433Z'
|
|
71
|
+
'204':
|
|
72
|
+
description: No environments exist in the account
|
|
73
|
+
'401':
|
|
74
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
75
|
+
post:
|
|
76
|
+
x-internal: false
|
|
77
|
+
summary: Create an environment
|
|
78
|
+
operationId: createEnvironment
|
|
79
|
+
tags:
|
|
80
|
+
- Environments
|
|
81
|
+
description: |-
|
|
82
|
+
Creates a new environment. The environment starts disabled; use the
|
|
83
|
+
toggle endpoint to enable it. `name` is the only required field and
|
|
84
|
+
must be unique within the account.
|
|
85
|
+
requestBody:
|
|
86
|
+
required: true
|
|
87
|
+
content:
|
|
88
|
+
application/json:
|
|
89
|
+
schema:
|
|
90
|
+
$ref: '#/components/schemas/Request'
|
|
91
|
+
examples:
|
|
92
|
+
minimal:
|
|
93
|
+
summary: Minimal create
|
|
94
|
+
value:
|
|
95
|
+
name: Staging
|
|
96
|
+
withDescription:
|
|
97
|
+
summary: With description
|
|
98
|
+
value:
|
|
99
|
+
name: Staging
|
|
100
|
+
description: Pre-production testing environment
|
|
101
|
+
responses:
|
|
102
|
+
'201':
|
|
103
|
+
description: Environment created.
|
|
104
|
+
x-celigo-ai-guidance:
|
|
105
|
+
- environment created successfully
|
|
106
|
+
content:
|
|
107
|
+
application/json:
|
|
108
|
+
schema:
|
|
109
|
+
$ref: '#/components/schemas/Environment'
|
|
110
|
+
examples:
|
|
111
|
+
default:
|
|
112
|
+
value:
|
|
113
|
+
_id: 60a2c4e6f321d800129a1a3c
|
|
114
|
+
_envUserId: 60a2c4e6f321d800129a1a3e
|
|
115
|
+
name: Staging
|
|
116
|
+
description: Pre-production testing environment
|
|
117
|
+
enabled: false
|
|
118
|
+
apim: {}
|
|
119
|
+
lastModified: '2025-08-10T14:22:33.000Z'
|
|
120
|
+
createdAt: '2025-08-10T14:22:33.000Z'
|
|
121
|
+
'400':
|
|
122
|
+
$ref: '#/components/responses/400-bad-request'
|
|
123
|
+
'401':
|
|
124
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
125
|
+
'422':
|
|
126
|
+
$ref: '#/components/responses/422-unprocessable-entity'
|
|
127
|
+
/v1/environments/{_id}:
|
|
128
|
+
get:
|
|
129
|
+
x-internal: false
|
|
130
|
+
summary: Get an environment
|
|
131
|
+
operationId: getEnvironment
|
|
132
|
+
tags:
|
|
133
|
+
- Environments
|
|
134
|
+
description: Retrieves a single environment by ID.
|
|
135
|
+
parameters:
|
|
136
|
+
- name: _id
|
|
137
|
+
in: path
|
|
138
|
+
required: true
|
|
139
|
+
description: Environment ID.
|
|
140
|
+
schema:
|
|
141
|
+
type: string
|
|
142
|
+
format: objectId
|
|
143
|
+
x-celigo-refModel: environments
|
|
144
|
+
responses:
|
|
145
|
+
'200':
|
|
146
|
+
description: Environment details.
|
|
147
|
+
content:
|
|
148
|
+
application/json:
|
|
149
|
+
schema:
|
|
150
|
+
$ref: '#/components/schemas/Environment'
|
|
151
|
+
examples:
|
|
152
|
+
production:
|
|
153
|
+
summary: Production environment
|
|
154
|
+
value:
|
|
155
|
+
_id: 68f76c67f7876d161ffb9c52
|
|
156
|
+
_envUserId: 624cb0346309dc3a543733a2
|
|
157
|
+
name: Production
|
|
158
|
+
enabled: true
|
|
159
|
+
lastModified: '2025-10-21T11:20:07.448Z'
|
|
160
|
+
createdAt: '2025-10-21T11:20:07.448Z'
|
|
161
|
+
sandbox:
|
|
162
|
+
summary: Sandbox with APIM
|
|
163
|
+
value:
|
|
164
|
+
_id: 69150a05578417f9fa40dbe4
|
|
165
|
+
_envUserId: 69150a05578417f9fa40dbe6
|
|
166
|
+
name: Sandbox
|
|
167
|
+
description: Pre-production testing environment
|
|
168
|
+
enabled: true
|
|
169
|
+
apim:
|
|
170
|
+
environmentId: 0b893522-51b3-482f-8935-2251b3b82f28
|
|
171
|
+
environmentHRID: sandbox
|
|
172
|
+
groupId: 0b37df28-5543-40dc-b7df-28554310dc1b
|
|
173
|
+
lastModified: '2025-11-12T22:28:22.433Z'
|
|
174
|
+
createdAt: '2025-11-12T22:28:22.433Z'
|
|
175
|
+
'401':
|
|
176
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
177
|
+
'404':
|
|
178
|
+
$ref: '#/components/responses/404-not-found'
|
|
179
|
+
put:
|
|
180
|
+
x-internal: false
|
|
181
|
+
summary: Update an environment
|
|
182
|
+
operationId: updateEnvironment
|
|
183
|
+
tags:
|
|
184
|
+
- Environments
|
|
185
|
+
description: |-
|
|
186
|
+
Replaces an environment's mutable fields (`name`, `description`,
|
|
187
|
+
`apim`). To enable or disable an environment, use the toggle
|
|
188
|
+
endpoint instead.
|
|
189
|
+
parameters:
|
|
190
|
+
- name: _id
|
|
191
|
+
in: path
|
|
192
|
+
required: true
|
|
193
|
+
description: Environment ID.
|
|
194
|
+
schema:
|
|
195
|
+
type: string
|
|
196
|
+
format: objectId
|
|
197
|
+
x-celigo-refModel: environments
|
|
198
|
+
requestBody:
|
|
199
|
+
required: true
|
|
200
|
+
content:
|
|
201
|
+
application/json:
|
|
202
|
+
schema:
|
|
203
|
+
$ref: '#/components/schemas/Request'
|
|
204
|
+
examples:
|
|
205
|
+
rename:
|
|
206
|
+
summary: Rename an environment
|
|
207
|
+
value:
|
|
208
|
+
name: Staging
|
|
209
|
+
updateDescription:
|
|
210
|
+
summary: Update description
|
|
211
|
+
value:
|
|
212
|
+
name: Sandbox
|
|
213
|
+
description: Updated environment description
|
|
214
|
+
responses:
|
|
215
|
+
'200':
|
|
216
|
+
description: Updated environment.
|
|
217
|
+
content:
|
|
218
|
+
application/json:
|
|
219
|
+
schema:
|
|
220
|
+
$ref: '#/components/schemas/Environment'
|
|
221
|
+
examples:
|
|
222
|
+
updated:
|
|
223
|
+
summary: Sandbox environment after a description update
|
|
224
|
+
value:
|
|
225
|
+
_id: 69150a05578417f9fa40dbe4
|
|
226
|
+
_envUserId: 69150a05578417f9fa40dbe6
|
|
227
|
+
name: Sandbox
|
|
228
|
+
description: Updated environment description
|
|
229
|
+
enabled: true
|
|
230
|
+
apim:
|
|
231
|
+
environmentId: 0b893522-51b3-482f-8935-2251b3b82f28
|
|
232
|
+
environmentHRID: sandbox
|
|
233
|
+
groupId: 0b37df28-5543-40dc-b7df-28554310dc1b
|
|
234
|
+
createdAt: '2025-11-12T22:28:22.433Z'
|
|
235
|
+
lastModified: '2026-06-09T17:45:12.882Z'
|
|
236
|
+
'400':
|
|
237
|
+
$ref: '#/components/responses/400-bad-request'
|
|
238
|
+
'401':
|
|
239
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
240
|
+
'404':
|
|
241
|
+
$ref: '#/components/responses/404-not-found'
|
|
242
|
+
'422':
|
|
243
|
+
$ref: '#/components/responses/422-unprocessable-entity'
|
|
244
|
+
/v1/environments/{_id}/enable:
|
|
245
|
+
put:
|
|
246
|
+
x-internal: false
|
|
247
|
+
operationId: toggleEnvironment
|
|
248
|
+
tags:
|
|
249
|
+
- Environments
|
|
250
|
+
summary: Toggle an environment on or off
|
|
251
|
+
description: |-
|
|
252
|
+
Toggles the enabled state of an environment -- a disabled environment
|
|
253
|
+
becomes enabled and vice versa. The Production environment cannot be
|
|
254
|
+
disabled, and pending user invitations must be resolved before
|
|
255
|
+
disabling any environment.
|
|
256
|
+
|
|
257
|
+
Requires a `Content-Type: application/json` header even though no
|
|
258
|
+
request body is needed.
|
|
259
|
+
parameters:
|
|
260
|
+
- name: _id
|
|
261
|
+
in: path
|
|
262
|
+
required: true
|
|
263
|
+
description: Environment ID.
|
|
264
|
+
schema:
|
|
265
|
+
type: string
|
|
266
|
+
format: objectId
|
|
267
|
+
x-celigo-refModel: environments
|
|
268
|
+
responses:
|
|
269
|
+
'204':
|
|
270
|
+
description: Environment state toggled.
|
|
271
|
+
'400':
|
|
272
|
+
description: The Production environment cannot be disabled.
|
|
273
|
+
content:
|
|
274
|
+
application/json:
|
|
275
|
+
schema:
|
|
276
|
+
$ref: '#/components/schemas/Error'
|
|
277
|
+
example:
|
|
278
|
+
errors:
|
|
279
|
+
- code: disable_not_allowed
|
|
280
|
+
message: Production environment cannot be disabled.
|
|
281
|
+
'401':
|
|
282
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
283
|
+
'404':
|
|
284
|
+
$ref: '#/components/responses/404-not-found'
|
|
285
|
+
'422':
|
|
286
|
+
description: Pending user invitations must be resolved before disabling.
|
|
287
|
+
content:
|
|
288
|
+
application/json:
|
|
289
|
+
schema:
|
|
290
|
+
$ref: '#/components/schemas/Error'
|
|
291
|
+
example:
|
|
292
|
+
errors:
|
|
293
|
+
- code: resolve_pending_invitation
|
|
294
|
+
message: Please resolve pending invitations before disabling this environment.
|
|
295
|
+
components:
|
|
296
|
+
securitySchemes:
|
|
297
|
+
bearerAuth:
|
|
298
|
+
type: http
|
|
299
|
+
scheme: bearer
|
|
300
|
+
schemas:
|
|
301
|
+
EnvironmentBase:
|
|
302
|
+
type: object
|
|
303
|
+
description: Writable fields shared by the request and response schemas.
|
|
304
|
+
properties:
|
|
305
|
+
name:
|
|
306
|
+
type: string
|
|
307
|
+
minLength: 1
|
|
308
|
+
maxLength: 100
|
|
309
|
+
description: Display name for the environment. Must be unique within the account.
|
|
310
|
+
x-celigo-ai-guidance:
|
|
311
|
+
- |-
|
|
312
|
+
Enter a clear and distinguishable name.
|
|
313
|
+
A unique identifier will prove helpful later when selecting it from a list of
|
|
314
|
+
environments in your account.
|
|
315
|
+
examples:
|
|
316
|
+
- Sandbox
|
|
317
|
+
description:
|
|
318
|
+
type:
|
|
319
|
+
- string
|
|
320
|
+
- 'null'
|
|
321
|
+
description: |-
|
|
322
|
+
Free-text description of the environment's purpose. Null on environments
|
|
323
|
+
provisioned automatically by the platform; descriptions set through the
|
|
324
|
+
UI or API are strings. When writing, send a string or omit the field.
|
|
325
|
+
x-celigo-ai-guidance:
|
|
326
|
+
- |-
|
|
327
|
+
Enter a clear description of the environment.
|
|
328
|
+
You can include details like who should use the environment,
|
|
329
|
+
the purpose of the environment, and common usage examples.
|
|
330
|
+
examples:
|
|
331
|
+
- Pre-production testing environment
|
|
332
|
+
apim:
|
|
333
|
+
type: object
|
|
334
|
+
description: API Management metadata linking this environment to its APIM counterpart. Typically managed by APIM workflows.
|
|
335
|
+
x-celigo-ai-guidance:
|
|
336
|
+
- |-
|
|
337
|
+
This links the integrator.io environment to its corresponding environment and
|
|
338
|
+
configuration in the API management system.
|
|
339
|
+
In most cases these values are created/managed by APIM workflows;
|
|
340
|
+
only set them if you are explicitly configuring APIM integration for the environment.
|
|
341
|
+
properties:
|
|
342
|
+
environmentId:
|
|
343
|
+
type: string
|
|
344
|
+
description: APIM environment identifier.
|
|
345
|
+
x-celigo-ai-guidance:
|
|
346
|
+
- The APIM environment identifier associated with this integrator.io environment.
|
|
347
|
+
examples:
|
|
348
|
+
- 0b893522-51b3-482f-8935-2251b3b82f28
|
|
349
|
+
environmentHRID:
|
|
350
|
+
type: string
|
|
351
|
+
description: Human-readable APIM environment slug used in URLs.
|
|
352
|
+
examples:
|
|
353
|
+
- sandbox
|
|
354
|
+
groupId:
|
|
355
|
+
type: string
|
|
356
|
+
description: APIM group identifier for access control.
|
|
357
|
+
x-celigo-ai-guidance:
|
|
358
|
+
- The APIM group identifier used for access control/role assignments within this environment.
|
|
359
|
+
examples:
|
|
360
|
+
- 0b37df28-5543-40dc-b7df-28554310dc1b
|
|
361
|
+
ResourceResponse:
|
|
362
|
+
type: object
|
|
363
|
+
description: Response
|
|
364
|
+
x-celigo-ai-guidance:
|
|
365
|
+
- Core response fields shared by all Celigo resources
|
|
366
|
+
properties:
|
|
367
|
+
_id:
|
|
368
|
+
type: string
|
|
369
|
+
format: objectId
|
|
370
|
+
readOnly: true
|
|
371
|
+
description: Unique identifier for the resource. Format is a 24-character hexadecimal string.
|
|
372
|
+
x-celigo-ai-guidance:
|
|
373
|
+
- |-
|
|
374
|
+
The _id is used in:
|
|
375
|
+
- API endpoints that operate on a specific resource (e.g., GET, PUT, DELETE)
|
|
376
|
+
- References from other resources (e.g., flows that use this resource)
|
|
377
|
+
- Job history and error tracking
|
|
378
|
+
examples:
|
|
379
|
+
- 5f8d43a1b9e5a80011a35f2c
|
|
380
|
+
createdAt:
|
|
381
|
+
type: string
|
|
382
|
+
format: date-time
|
|
383
|
+
readOnly: true
|
|
384
|
+
description: Timestamp when the resource was created. Set automatically and cannot be modified.
|
|
385
|
+
x-celigo-ai-guidance:
|
|
386
|
+
- Recorded in ISO 8601 with a UTC timezone (Z suffix).
|
|
387
|
+
examples:
|
|
388
|
+
- '2023-04-01T09:15:32Z'
|
|
389
|
+
lastModified:
|
|
390
|
+
type: string
|
|
391
|
+
format: date-time
|
|
392
|
+
readOnly: true
|
|
393
|
+
description: Timestamp when the resource was last updated. Changes whenever any property is modified.
|
|
394
|
+
x-celigo-ai-guidance:
|
|
395
|
+
- Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
|
|
396
|
+
examples:
|
|
397
|
+
- '2023-04-15T14:30:15Z'
|
|
398
|
+
deletedAt:
|
|
399
|
+
type:
|
|
400
|
+
- string
|
|
401
|
+
- 'null'
|
|
402
|
+
format: date-time
|
|
403
|
+
readOnly: true
|
|
404
|
+
description: Timestamp when the resource was soft-deleted. When null or absent, the resource is active.
|
|
405
|
+
x-celigo-ai-guidance:
|
|
406
|
+
- Non-null means the resource is soft-deleted (in the recycle bin) — recoverable within the retention period before permanent removal.
|
|
407
|
+
examples:
|
|
408
|
+
- '2023-05-20T11:45:32Z'
|
|
409
|
+
required:
|
|
410
|
+
- _id
|
|
411
|
+
Environment:
|
|
412
|
+
type: object
|
|
413
|
+
required:
|
|
414
|
+
- _id
|
|
415
|
+
- _envUserId
|
|
416
|
+
- name
|
|
417
|
+
- enabled
|
|
418
|
+
- createdAt
|
|
419
|
+
- lastModified
|
|
420
|
+
description: Environment object as returned by the API.
|
|
421
|
+
allOf:
|
|
422
|
+
- $ref: '#/components/schemas/EnvironmentBase'
|
|
423
|
+
- $ref: '#/components/schemas/ResourceResponse'
|
|
424
|
+
- type: object
|
|
425
|
+
properties:
|
|
426
|
+
_envUserId:
|
|
427
|
+
type: string
|
|
428
|
+
format: objectId
|
|
429
|
+
readOnly: true
|
|
430
|
+
description: Account user ID that owns this environment.
|
|
431
|
+
x-celigo-refModel: users
|
|
432
|
+
examples:
|
|
433
|
+
- 624cb0346309dc3a543733a2
|
|
434
|
+
enabled:
|
|
435
|
+
type: boolean
|
|
436
|
+
readOnly: true
|
|
437
|
+
description: When true, the environment is currently enabled. Controlled via the toggle endpoint, not create/update.
|
|
438
|
+
x-celigo-ai-guidance:
|
|
439
|
+
- Whether the environment is enabled. This is managed via the UI (and/or a dedicated enable/disable operation), not via the standard create/update request body.
|
|
440
|
+
isMigrated:
|
|
441
|
+
type: boolean
|
|
442
|
+
readOnly: true
|
|
443
|
+
description: When true, the environment has been migrated from legacy sandbox. Present only on enterprise accounts.
|
|
444
|
+
Request:
|
|
445
|
+
type: object
|
|
446
|
+
description: Fields for creating or updating an environment.
|
|
447
|
+
x-celigo-ai-guidance:
|
|
448
|
+
- Fields that can be sent when creating or updating a environment
|
|
449
|
+
required:
|
|
450
|
+
- name
|
|
451
|
+
allOf:
|
|
452
|
+
- $ref: '#/components/schemas/EnvironmentBase'
|
|
453
|
+
Error:
|
|
454
|
+
type: object
|
|
455
|
+
description: Standard error response envelope returned by integrator.io APIs.
|
|
456
|
+
properties:
|
|
457
|
+
errors:
|
|
458
|
+
type: array
|
|
459
|
+
description: List of errors that occurred while processing the request.
|
|
460
|
+
items:
|
|
461
|
+
type: object
|
|
462
|
+
properties:
|
|
463
|
+
code:
|
|
464
|
+
oneOf:
|
|
465
|
+
- type: string
|
|
466
|
+
- type: integer
|
|
467
|
+
description: |-
|
|
468
|
+
Machine-readable error code. Usually a string like
|
|
469
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
470
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
471
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
472
|
+
and adaptor-proxy responses.
|
|
473
|
+
message:
|
|
474
|
+
type: string
|
|
475
|
+
description: Human-readable description of the error.
|
|
476
|
+
field:
|
|
477
|
+
type: string
|
|
478
|
+
description: |-
|
|
479
|
+
Optional pointer to the document field that caused the error.
|
|
480
|
+
Used by structural validation errors (`missing_required_field`,
|
|
481
|
+
`invalid_ref`) to indicate which field is at fault
|
|
482
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
483
|
+
source:
|
|
484
|
+
type: string
|
|
485
|
+
description: |-
|
|
486
|
+
Optional origin layer for the error — e.g. `application` when
|
|
487
|
+
the error came from the remote system the adaptor called,
|
|
488
|
+
`connector` when the adaptor itself rejected the request.
|
|
489
|
+
required:
|
|
490
|
+
- message
|
|
491
|
+
required:
|
|
492
|
+
- errors
|
|
493
|
+
responses:
|
|
494
|
+
401-unauthorized:
|
|
495
|
+
description: |-
|
|
496
|
+
Unauthorized. The request lacks a valid bearer token, or the provided token
|
|
497
|
+
failed to authenticate.
|
|
498
|
+
|
|
499
|
+
Note: the 401 response is produced by the auth middleware **before** the
|
|
500
|
+
request reaches the endpoint handler, so it does **not** follow the
|
|
501
|
+
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
502
|
+
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
503
|
+
handling 401s should key off the HTTP status and the `message` string,
|
|
504
|
+
not try to destructure an `errors[]`.
|
|
505
|
+
content:
|
|
506
|
+
application/json:
|
|
507
|
+
schema:
|
|
508
|
+
type: object
|
|
509
|
+
properties:
|
|
510
|
+
message:
|
|
511
|
+
type: string
|
|
512
|
+
description: |-
|
|
513
|
+
Human-readable description of the auth failure. Known values:
|
|
514
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
515
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
516
|
+
is invalid, revoked, or expired.
|
|
517
|
+
required:
|
|
518
|
+
- message
|
|
519
|
+
examples:
|
|
520
|
+
missing_token:
|
|
521
|
+
summary: No Authorization header sent
|
|
522
|
+
value:
|
|
523
|
+
message: Unauthorized
|
|
524
|
+
invalid_token:
|
|
525
|
+
summary: Bearer token invalid or revoked
|
|
526
|
+
value:
|
|
527
|
+
message: Bearer Authentication Failed
|
|
528
|
+
400-bad-request:
|
|
529
|
+
description: |
|
|
530
|
+
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
|
531
|
+
content:
|
|
532
|
+
application/json:
|
|
533
|
+
schema:
|
|
534
|
+
$ref: '#/components/schemas/Error'
|
|
535
|
+
examples:
|
|
536
|
+
default:
|
|
537
|
+
value:
|
|
538
|
+
errors:
|
|
539
|
+
- code: invalid_request
|
|
540
|
+
message: The request body failed validation.
|
|
541
|
+
422-unprocessable-entity:
|
|
542
|
+
description: |
|
|
543
|
+
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
|
544
|
+
content:
|
|
545
|
+
application/json:
|
|
546
|
+
schema:
|
|
547
|
+
$ref: '#/components/schemas/Error'
|
|
548
|
+
examples:
|
|
549
|
+
default:
|
|
550
|
+
value:
|
|
551
|
+
errors:
|
|
552
|
+
- code: unprocessable_entity
|
|
553
|
+
message: The request could not be processed due to a semantic error.
|
|
554
|
+
404-not-found:
|
|
555
|
+
description: |
|
|
556
|
+
Not found. The requested resource does not exist or is not visible to the caller.
|
|
557
|
+
content:
|
|
558
|
+
application/json:
|
|
559
|
+
schema:
|
|
560
|
+
$ref: '#/components/schemas/Error'
|
|
561
|
+
examples:
|
|
562
|
+
default:
|
|
563
|
+
value:
|
|
564
|
+
errors:
|
|
565
|
+
- code: not_found
|
|
566
|
+
message: The requested resource was not found.
|
|
567
|
+
x-enable-proxy: true
|
|
568
|
+
x-internal: false
|