-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrulioo-configuration-api-openapi.yml
More file actions
294 lines (294 loc) · 8.69 KB
/
Copy pathtrulioo-configuration-api-openapi.yml
File metadata and controls
294 lines (294 loc) · 8.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
openapi: 3.1.0
info:
title: Trulioo Configuration API
description: >
Discovery endpoints for the Trulioo GlobalGateway. Use these endpoints to
learn which countries, datasources, fields, document types, and consents
are available for a configured product/package before submitting a Verify
request. Returns metadata that drives client-side form generation and
dynamic field selection.
version: "3.0"
contact:
name: Trulioo Support
url: https://developer.trulioo.com
email: support@trulioo.com
license:
name: Trulioo Terms of Service
url: https://www.trulioo.com/legal/terms-of-service
externalDocs:
description: Configuration API guide
url: https://developer.trulioo.com/reference/configuration-1
servers:
- url: https://api.trulioo.com
description: Production
security:
- BasicAuth: []
- OAuth2: []
tags:
- name: Configuration
description: Discover packages, countries, datasources, fields, and consents.
paths:
/v3/configuration/packages:
get:
summary: Get List Of Packages
description: List all configured product packages available to the authenticated customer.
operationId: getPackages
tags:
- Configuration
responses:
"200":
description: List of packages.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Package'
/v3/configuration/countrycodes/{configurationName}:
get:
summary: Get Country Codes
description: Get the list of country codes supported by a given product configuration.
operationId: getCountryCodes
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/ConfigurationName'
responses:
"200":
description: List of ISO 3166 two-letter country codes.
content:
application/json:
schema:
type: array
items:
type: string
/v3/configuration/countrysubdivisions/{countryCode}:
get:
summary: Get Country Subdivisions
description: Get the list of subdivisions (states/provinces) for a country.
operationId: getCountrySubdivisions
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: List of subdivisions.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CountrySubdivision'
/v3/configuration/fields/{configurationName}/{countryCode}:
get:
summary: Get Fields
description: Get the full set of accepted input fields for a country/product.
operationId: getFields
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/ConfigurationName'
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: JSON Schema describing accepted fields.
content:
application/json:
schema:
type: object
additionalProperties: true
/v3/configuration/fields/{configurationName}/{countryCode}/recommended:
get:
summary: Get Recommended Fields
description: Get the recommended (most likely to match) field combination for a country/product.
operationId: getRecommendedFields
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/ConfigurationName'
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: Recommended field set.
content:
application/json:
schema:
type: object
additionalProperties: true
/v3/configuration/datasources/{configurationName}/{countryCode}:
get:
summary: Get Datasources
description: Get the list of available datasources for a country/product.
operationId: getDatasources
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/ConfigurationName'
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: List of datasource groups.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DatasourceGroup'
/v3/configuration/consents/{configurationName}/{countryCode}:
get:
summary: Get Consents
description: List datasources that require end-user consent for a country/product.
operationId: getConsents
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/ConfigurationName'
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: List of consent strings.
content:
application/json:
schema:
type: array
items:
type: string
/v3/configuration/consents/{configurationName}/{countryCode}/detail:
get:
summary: Get Detailed Consents
description: Detailed consent metadata including text to present to end-users.
operationId: getDetailedConsents
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/ConfigurationName'
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: List of detailed consents.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Consent'
/v3/configuration/testentities/{configurationName}/{countryCode}:
get:
summary: Get Test Entities
description: Pre-canned test entities that resolve deterministically in sandbox mode.
operationId: getTestEntities
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/ConfigurationName'
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: List of test entities.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TestEntity'
/v3/configuration/documentTypes/{countryCode}:
get:
summary: Get Document Types
description: Document types supported for identity document verification per country.
operationId: getDocumentTypes
tags:
- Configuration
parameters:
- $ref: '#/components/parameters/CountryCode'
responses:
"200":
description: List of document type identifiers.
content:
application/json:
schema:
type: array
items:
type: string
components:
securitySchemes:
BasicAuth:
type: http
scheme: basic
OAuth2:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://auth-api.trulioo.com/connect/token
scopes: {}
parameters:
ConfigurationName:
name: configurationName
in: path
required: true
description: Configured product/package name (e.g. "Identity Verification").
schema:
type: string
CountryCode:
name: countryCode
in: path
required: true
description: Two-letter ISO 3166 country code.
schema:
type: string
minLength: 2
maxLength: 2
schemas:
Package:
type: object
properties:
ConfigurationName:
type: string
Description:
type: string
CountrySubdivision:
type: object
properties:
Name:
type: string
Code:
type: string
DatasourceGroup:
type: object
properties:
GroupName:
type: string
GroupCountry:
type: string
Datasources:
type: array
items:
$ref: '#/components/schemas/Datasource'
Datasource:
type: object
properties:
DatasourceName:
type: string
DatasourceFields:
type: array
items:
type: string
Consent:
type: object
properties:
Name:
type: string
Text:
type: string
TextSummary:
type: string
TestEntity:
type: object
properties:
Profile:
type: string
Description:
type: string
Fields:
type: object
additionalProperties: true