@workos/openapi-spec 0.161.0 → 0.163.0

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.
@@ -9107,6 +9107,374 @@ paths:
9107
9107
  summary: List Directories
9108
9108
  tags:
9109
9109
  - directories
9110
+ /directories/{directoryId}/groups:
9111
+ get:
9112
+ description: >-
9113
+ Get a list of the Directory Groups in a Directory, optionally filtered
9114
+ to the groups a Directory User belongs to.
9115
+ operationId: DirectoriesGroupsController_list
9116
+ parameters:
9117
+ - name: directoryId
9118
+ required: true
9119
+ in: path
9120
+ description: Unique identifier of the Directory.
9121
+ schema:
9122
+ type: string
9123
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9124
+ - name: before
9125
+ required: false
9126
+ in: query
9127
+ description: >-
9128
+ An object ID that defines your place in the list. When the ID is not
9129
+ present, you are at the end of the list. For example, if you make a
9130
+ list request and receive 100 objects, ending with `"obj_123"`, your
9131
+ subsequent call can include `before="obj_123"` to fetch a new batch
9132
+ of objects before `"obj_123"`.
9133
+ schema:
9134
+ example: xxx_01HXYZ123456789ABCDEFGHIJ
9135
+ type: string
9136
+ - name: after
9137
+ required: false
9138
+ in: query
9139
+ description: >-
9140
+ An object ID that defines your place in the list. When the ID is not
9141
+ present, you are at the end of the list. For example, if you make a
9142
+ list request and receive 100 objects, ending with `"obj_123"`, your
9143
+ subsequent call can include `after="obj_123"` to fetch a new batch
9144
+ of objects after `"obj_123"`.
9145
+ schema:
9146
+ example: xxx_01HXYZ987654321KJIHGFEDCBA
9147
+ type: string
9148
+ - name: limit
9149
+ required: false
9150
+ in: query
9151
+ description: >-
9152
+ Upper limit on the number of objects to return, between `1` and
9153
+ `100`.
9154
+ schema:
9155
+ minimum: 1
9156
+ maximum: 100
9157
+ default: 10
9158
+ example: 10
9159
+ type: integer
9160
+ - name: order
9161
+ required: false
9162
+ in: query
9163
+ description: >-
9164
+ Order the results by the creation time. Supported values are `"asc"`
9165
+ (ascending), `"desc"` (descending), and `"normal"` (descending with
9166
+ reversed cursor semantics where `before` fetches older records and
9167
+ `after` fetches newer records). Defaults to `normal`.
9168
+ schema:
9169
+ $ref: '#/components/schemas/PaginationOrder'
9170
+ - name: user
9171
+ required: false
9172
+ in: query
9173
+ description: Filter Directory Groups to those this Directory User belongs to.
9174
+ schema:
9175
+ example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
9176
+ type: string
9177
+ responses:
9178
+ '200':
9179
+ description: OK
9180
+ content:
9181
+ application/json:
9182
+ schema:
9183
+ allOf:
9184
+ - type: object
9185
+ properties:
9186
+ object:
9187
+ type: string
9188
+ description: Indicates this is a list response.
9189
+ const: list
9190
+ list_metadata:
9191
+ type: object
9192
+ properties:
9193
+ before:
9194
+ type:
9195
+ - string
9196
+ - 'null'
9197
+ description: >-
9198
+ An object ID that defines your place in the list.
9199
+ When the ID is not present, you are at the start
9200
+ of the list.
9201
+ example: directory_group_01HXYZ123456789ABCDEFGHIJ
9202
+ after:
9203
+ type:
9204
+ - string
9205
+ - 'null'
9206
+ description: >-
9207
+ An object ID that defines your place in the list.
9208
+ When the ID is not present, you are at the end of
9209
+ the list.
9210
+ example: directory_group_01HXYZ987654321KJIHGFEDCBA
9211
+ required:
9212
+ - before
9213
+ - after
9214
+ description: >-
9215
+ Pagination cursors for navigating between pages of
9216
+ results.
9217
+ - type: object
9218
+ properties:
9219
+ data:
9220
+ type: array
9221
+ description: The list of records for the current page.
9222
+ items:
9223
+ $ref: '#/components/schemas/DirectoryGroup'
9224
+ '403':
9225
+ description: Forbidden
9226
+ content:
9227
+ application/json:
9228
+ schema:
9229
+ $ref: '#/components/schemas/ErrorBody'
9230
+ '404':
9231
+ description: Not Found
9232
+ content:
9233
+ application/json:
9234
+ schema:
9235
+ $ref: '#/components/schemas/ErrorBody'
9236
+ '422':
9237
+ description: Unprocessable Entity
9238
+ content:
9239
+ application/json:
9240
+ schema:
9241
+ $ref: '#/components/schemas/ErrorBody'
9242
+ summary: List Groups for a Directory
9243
+ tags:
9244
+ - directory-groups
9245
+ /directories/{directoryId}/groups/{groupId}:
9246
+ get:
9247
+ description: Get the details of a Directory Group in a Directory.
9248
+ operationId: DirectoriesGroupsController_find
9249
+ parameters:
9250
+ - name: directoryId
9251
+ required: true
9252
+ in: path
9253
+ description: Unique identifier of the Directory.
9254
+ schema:
9255
+ type: string
9256
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9257
+ - name: groupId
9258
+ required: true
9259
+ in: path
9260
+ description: Unique identifier for the Directory Group.
9261
+ schema:
9262
+ example: directory_group_01E1JJS84MFPPQ3G655FHTKX6Z
9263
+ type: string
9264
+ responses:
9265
+ '200':
9266
+ description: OK
9267
+ content:
9268
+ application/json:
9269
+ schema:
9270
+ $ref: '#/components/schemas/DirectoryGroup'
9271
+ '403':
9272
+ description: Forbidden
9273
+ content:
9274
+ application/json:
9275
+ schema:
9276
+ $ref: '#/components/schemas/ErrorBody'
9277
+ '404':
9278
+ description: Not Found
9279
+ content:
9280
+ application/json:
9281
+ schema:
9282
+ $ref: '#/components/schemas/ErrorBody'
9283
+ summary: Get a Group for a Directory
9284
+ tags:
9285
+ - directory-groups
9286
+ /directories/{directoryId}/users:
9287
+ get:
9288
+ description: >-
9289
+ Get a list of the Directory Users in a Directory, optionally filtered to
9290
+ the members of a Directory Group.
9291
+ operationId: DirectoriesUsersController_list
9292
+ parameters:
9293
+ - name: directoryId
9294
+ required: true
9295
+ in: path
9296
+ description: Unique identifier of the Directory.
9297
+ schema:
9298
+ type: string
9299
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9300
+ - name: before
9301
+ required: false
9302
+ in: query
9303
+ description: >-
9304
+ An object ID that defines your place in the list. When the ID is not
9305
+ present, you are at the end of the list. For example, if you make a
9306
+ list request and receive 100 objects, ending with `"obj_123"`, your
9307
+ subsequent call can include `before="obj_123"` to fetch a new batch
9308
+ of objects before `"obj_123"`.
9309
+ schema:
9310
+ example: xxx_01HXYZ123456789ABCDEFGHIJ
9311
+ type: string
9312
+ - name: after
9313
+ required: false
9314
+ in: query
9315
+ description: >-
9316
+ An object ID that defines your place in the list. When the ID is not
9317
+ present, you are at the end of the list. For example, if you make a
9318
+ list request and receive 100 objects, ending with `"obj_123"`, your
9319
+ subsequent call can include `after="obj_123"` to fetch a new batch
9320
+ of objects after `"obj_123"`.
9321
+ schema:
9322
+ example: xxx_01HXYZ987654321KJIHGFEDCBA
9323
+ type: string
9324
+ - name: limit
9325
+ required: false
9326
+ in: query
9327
+ description: >-
9328
+ Upper limit on the number of objects to return, between `1` and
9329
+ `100`.
9330
+ schema:
9331
+ minimum: 1
9332
+ maximum: 100
9333
+ default: 10
9334
+ example: 10
9335
+ type: integer
9336
+ - name: order
9337
+ required: false
9338
+ in: query
9339
+ description: >-
9340
+ Order the results by the creation time. Supported values are `"asc"`
9341
+ (ascending), `"desc"` (descending), and `"normal"` (descending with
9342
+ reversed cursor semantics where `before` fetches older records and
9343
+ `after` fetches newer records). Defaults to `normal`.
9344
+ schema:
9345
+ $ref: '#/components/schemas/PaginationOrder'
9346
+ - name: group
9347
+ required: false
9348
+ in: query
9349
+ description: Filter Directory Users to the members of this Directory Group.
9350
+ schema:
9351
+ example: directory_group_01E64QTDNS0EGJ0FMCVY9BWGZT
9352
+ type: string
9353
+ - name: idp_id
9354
+ required: false
9355
+ in: query
9356
+ description: >-
9357
+ Filter Directory Users by the identity provider's unique identifier
9358
+ (`idp_id`).
9359
+ schema:
9360
+ example: '2836'
9361
+ type: string
9362
+ - name: email
9363
+ required: false
9364
+ in: query
9365
+ description: Filter Directory Users by their primary email address.
9366
+ schema:
9367
+ example: jane.doe@example.com
9368
+ type: string
9369
+ responses:
9370
+ '200':
9371
+ description: OK
9372
+ content:
9373
+ application/json:
9374
+ schema:
9375
+ allOf:
9376
+ - type: object
9377
+ properties:
9378
+ object:
9379
+ type: string
9380
+ description: Indicates this is a list response.
9381
+ const: list
9382
+ list_metadata:
9383
+ type: object
9384
+ properties:
9385
+ before:
9386
+ type:
9387
+ - string
9388
+ - 'null'
9389
+ description: >-
9390
+ An object ID that defines your place in the list.
9391
+ When the ID is not present, you are at the start
9392
+ of the list.
9393
+ example: directory_user_01HXYZ123456789ABCDEFGHIJ
9394
+ after:
9395
+ type:
9396
+ - string
9397
+ - 'null'
9398
+ description: >-
9399
+ An object ID that defines your place in the list.
9400
+ When the ID is not present, you are at the end of
9401
+ the list.
9402
+ example: directory_user_01HXYZ987654321KJIHGFEDCBA
9403
+ required:
9404
+ - before
9405
+ - after
9406
+ description: >-
9407
+ Pagination cursors for navigating between pages of
9408
+ results.
9409
+ - type: object
9410
+ properties:
9411
+ data:
9412
+ type: array
9413
+ description: The list of records for the current page.
9414
+ items:
9415
+ $ref: '#/components/schemas/DirectoryUser'
9416
+ '403':
9417
+ description: Forbidden
9418
+ content:
9419
+ application/json:
9420
+ schema:
9421
+ $ref: '#/components/schemas/ErrorBody'
9422
+ '404':
9423
+ description: Not Found
9424
+ content:
9425
+ application/json:
9426
+ schema:
9427
+ $ref: '#/components/schemas/ErrorBody'
9428
+ '422':
9429
+ description: Unprocessable Entity
9430
+ content:
9431
+ application/json:
9432
+ schema:
9433
+ $ref: '#/components/schemas/ErrorBody'
9434
+ summary: List Users for a Directory
9435
+ tags:
9436
+ - directory-users
9437
+ /directories/{directoryId}/users/{userId}:
9438
+ get:
9439
+ description: Get the details of a Directory User in a Directory.
9440
+ operationId: DirectoriesUsersController_find
9441
+ parameters:
9442
+ - name: directoryId
9443
+ required: true
9444
+ in: path
9445
+ description: Unique identifier of the Directory.
9446
+ schema:
9447
+ type: string
9448
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9449
+ - name: userId
9450
+ required: true
9451
+ in: path
9452
+ description: Unique identifier for the Directory User.
9453
+ schema:
9454
+ example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
9455
+ type: string
9456
+ responses:
9457
+ '200':
9458
+ description: OK
9459
+ content:
9460
+ application/json:
9461
+ schema:
9462
+ $ref: '#/components/schemas/DirectoryUser'
9463
+ '403':
9464
+ description: Forbidden
9465
+ content:
9466
+ application/json:
9467
+ schema:
9468
+ $ref: '#/components/schemas/ErrorBody'
9469
+ '404':
9470
+ description: Not Found
9471
+ content:
9472
+ application/json:
9473
+ schema:
9474
+ $ref: '#/components/schemas/ErrorBody'
9475
+ summary: Get a User for a Directory
9476
+ tags:
9477
+ - directory-users
9110
9478
  /directories/{id}:
9111
9479
  get:
9112
9480
  description: Get the details of an existing directory.
@@ -9241,9 +9609,11 @@ paths:
9241
9609
  - directories
9242
9610
  /directory_groups:
9243
9611
  get:
9612
+ deprecated: true
9244
9613
  description: >-
9245
9614
  Get a list of all of existing directory groups matching the criteria
9246
- specified.
9615
+ specified. Deprecated: use `GET /directories/{directoryId}/groups`
9616
+ instead.
9247
9617
  operationId: DirectoryGroupsController_list
9248
9618
  parameters:
9249
9619
  - name: before
@@ -9340,7 +9710,10 @@ paths:
9340
9710
  - directory-groups
9341
9711
  /directory_groups/{id}:
9342
9712
  get:
9343
- description: Get the details of an existing Directory Group.
9713
+ deprecated: true
9714
+ description: >-
9715
+ Get the details of an existing Directory Group. Deprecated: use `GET
9716
+ /directories/{directoryId}/groups/{groupId}` instead.
9344
9717
  operationId: DirectoryGroupsController_find
9345
9718
  parameters:
9346
9719
  - name: id
@@ -9374,9 +9747,11 @@ paths:
9374
9747
  - directory-groups
9375
9748
  /directory_users:
9376
9749
  get:
9750
+ deprecated: true
9377
9751
  description: >-
9378
9752
  Get a list of all of existing Directory Users matching the criteria
9379
- specified.
9753
+ specified. Deprecated: use `GET /directories/{directoryId}/users`
9754
+ instead.
9380
9755
  operationId: DirectoryUsersController_list
9381
9756
  parameters:
9382
9757
  - name: before
@@ -9498,7 +9873,10 @@ paths:
9498
9873
  - directory-users
9499
9874
  /directory_users/{id}:
9500
9875
  get:
9501
- description: Get the details of an existing Directory User.
9876
+ deprecated: true
9877
+ description: >-
9878
+ Get the details of an existing Directory User. Deprecated: use `GET
9879
+ /directories/{directoryId}/users/{userId}` instead.
9502
9880
  operationId: DirectoryUsersController_find
9503
9881
  parameters:
9504
9882
  - name: id
@@ -10796,6 +11174,20 @@ paths:
10796
11174
  schema:
10797
11175
  example: org_01EHZNVPK3SFK441A1RGBFSHRT
10798
11176
  type: string
11177
+ - name: ownership
11178
+ required: false
11179
+ in: query
11180
+ description: >-
11181
+ Select the provider configuration for `user` connections or
11182
+ `organization` shared connections. Defaults to `user`; never falls
11183
+ back to the other ownership.
11184
+ schema:
11185
+ default: user
11186
+ example: user
11187
+ enum:
11188
+ - user
11189
+ - organization
11190
+ type: string
10799
11191
  responses:
10800
11192
  '200':
10801
11193
  description: A list of provider configurations for the organization.
@@ -10811,6 +11203,12 @@ paths:
10811
11203
  application/json:
10812
11204
  schema:
10813
11205
  $ref: '#/components/schemas/ErrorBody'
11206
+ '422':
11207
+ description: The ownership selector is invalid.
11208
+ content:
11209
+ application/json:
11210
+ schema:
11211
+ $ref: '#/components/schemas/ErrorBody'
10814
11212
  summary: List providers for an organization
10815
11213
  tags:
10816
11214
  - pipes.provider
@@ -10840,6 +11238,20 @@ paths:
10840
11238
  schema:
10841
11239
  example: github
10842
11240
  type: string
11241
+ - name: ownership
11242
+ required: false
11243
+ in: query
11244
+ description: >-
11245
+ Select the provider configuration for `user` connections or
11246
+ `organization` shared connections. Defaults to `user`; never falls
11247
+ back to the other ownership.
11248
+ schema:
11249
+ default: user
11250
+ example: user
11251
+ enum:
11252
+ - user
11253
+ - organization
11254
+ type: string
10843
11255
  requestBody:
10844
11256
  required: true
10845
11257
  content:
@@ -10870,15 +11282,15 @@ paths:
10870
11282
  '401':
10871
11283
  description: The request is missing a valid API key.
10872
11284
  '404':
10873
- description: The organization or provider was not found.
11285
+ description: The organization or selected provider was not found.
10874
11286
  content:
10875
11287
  application/json:
10876
11288
  schema:
10877
11289
  $ref: '#/components/schemas/ErrorBody'
10878
11290
  '422':
10879
11291
  description: >-
10880
- One or more of the supplied `scopes` are not valid for the provider.
10881
- Only scopes configured on the provider may be used.
11292
+ The ownership selector is invalid, or one or more of the supplied
11293
+ `scopes` are not valid for the provider.
10882
11294
  content:
10883
11295
  application/json:
10884
11296
  schema:
@@ -24302,7 +24714,7 @@ components:
24302
24714
  - message
24303
24715
  AuthMethodMismatchErrorBody:
24304
24716
  type: object
24305
- properties: &ref_50
24717
+ properties: &ref_49
24306
24718
  code:
24307
24719
  type: string
24308
24720
  const: auth_method_mismatch
@@ -24316,13 +24728,13 @@ components:
24316
24728
  example: >-
24317
24729
  This installation uses oauth authentication. Use the POST
24318
24730
  /:slug/token endpoint instead.
24319
- required: &ref_51
24731
+ required: &ref_50
24320
24732
  - code
24321
24733
  - message
24322
24734
  x-component-name: AuthMethodMismatchError
24323
24735
  AccountSelectionRequiredErrorBody:
24324
24736
  type: object
24325
- properties: &ref_52
24737
+ properties: &ref_51
24326
24738
  code:
24327
24739
  type: string
24328
24740
  const: account_selection_required
@@ -24336,7 +24748,7 @@ components:
24336
24748
  example: >-
24337
24749
  Several connected accounts match this user for this provider. Name
24338
24750
  one with a connected account id.
24339
- required: &ref_53
24751
+ required: &ref_52
24340
24752
  - code
24341
24753
  - message
24342
24754
  x-component-name: AccountSelectionRequiredError
@@ -28412,6 +28824,141 @@ components:
28412
28824
  - data
28413
28825
  - list_metadata
28414
28826
  - list_metadata
28827
+ DirectoryUser:
28828
+ type: object
28829
+ properties:
28830
+ object:
28831
+ type: string
28832
+ description: Distinguishes the Directory User object.
28833
+ const: directory_user
28834
+ id:
28835
+ type: string
28836
+ description: Unique identifier for the Directory User.
28837
+ example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
28838
+ directory_id:
28839
+ type: string
28840
+ description: The identifier of the Directory the Directory User belongs to.
28841
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
28842
+ organization_id:
28843
+ type: string
28844
+ description: The identifier for the Organization in which the Directory resides.
28845
+ example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y
28846
+ idp_id:
28847
+ type: string
28848
+ description: >-
28849
+ Unique identifier for the user, assigned by the Directory Provider.
28850
+ Different Directory Providers use different ID formats.
28851
+ example: '2836'
28852
+ email:
28853
+ type:
28854
+ - string
28855
+ - 'null'
28856
+ description: The email address of the user.
28857
+ example: marcelina.davis@example.com
28858
+ first_name:
28859
+ type:
28860
+ - string
28861
+ - 'null'
28862
+ description: The first name of the user.
28863
+ example: Marcelina
28864
+ last_name:
28865
+ type:
28866
+ - string
28867
+ - 'null'
28868
+ description: The last name of the user.
28869
+ example: Davis
28870
+ name:
28871
+ type:
28872
+ - string
28873
+ - 'null'
28874
+ description: The full name of the user.
28875
+ example: Marcelina Davis
28876
+ emails:
28877
+ type: array
28878
+ items:
28879
+ type: object
28880
+ properties:
28881
+ primary:
28882
+ type: boolean
28883
+ description: Whether this is the primary email address.
28884
+ example: true
28885
+ type:
28886
+ type: string
28887
+ description: The type of email address.
28888
+ example: work
28889
+ value:
28890
+ type:
28891
+ - string
28892
+ - 'null'
28893
+ description: The email address value.
28894
+ example: marcelina.davis@example.com
28895
+ description: A list of email addresses for the user.
28896
+ deprecated: true
28897
+ job_title:
28898
+ type:
28899
+ - string
28900
+ - 'null'
28901
+ description: The job title of the user.
28902
+ example: Software Engineer
28903
+ deprecated: true
28904
+ username:
28905
+ type:
28906
+ - string
28907
+ - 'null'
28908
+ description: The username of the user.
28909
+ example: mdavis
28910
+ deprecated: true
28911
+ state:
28912
+ type: string
28913
+ enum:
28914
+ - active
28915
+ - suspended
28916
+ - inactive
28917
+ description: The state of the user.
28918
+ example: active
28919
+ raw_attributes:
28920
+ type: object
28921
+ additionalProperties: {}
28922
+ description: The raw attributes received from the directory provider.
28923
+ deprecated: true
28924
+ custom_attributes:
28925
+ type: object
28926
+ additionalProperties: {}
28927
+ description: >-
28928
+ An object containing the custom attribute mapping for the Directory
28929
+ Provider.
28930
+ example:
28931
+ department: Engineering
28932
+ job_title: Software Engineer
28933
+ role:
28934
+ $ref: '#/components/schemas/SlimRole'
28935
+ roles:
28936
+ type: array
28937
+ items:
28938
+ $ref: '#/components/schemas/SlimRole'
28939
+ description: All roles assigned to the user.
28940
+ created_at:
28941
+ format: date-time
28942
+ type: string
28943
+ description: An ISO 8601 timestamp.
28944
+ example: '2026-01-15T12:00:00.000Z'
28945
+ updated_at:
28946
+ format: date-time
28947
+ type: string
28948
+ description: An ISO 8601 timestamp.
28949
+ example: '2026-01-15T12:00:00.000Z'
28950
+ required:
28951
+ - object
28952
+ - id
28953
+ - directory_id
28954
+ - organization_id
28955
+ - idp_id
28956
+ - email
28957
+ - state
28958
+ - raw_attributes
28959
+ - custom_attributes
28960
+ - created_at
28961
+ - updated_at
28415
28962
  DirectoryUserWithGroups:
28416
28963
  type: object
28417
28964
  properties:
@@ -28540,14 +29087,8 @@ components:
28540
29087
  items:
28541
29088
  $ref: '#/components/schemas/DirectoryGroup'
28542
29089
  description: >-
28543
- The directory groups the user belongs to. Deprecated: starting May
28544
- 1, 2026, this field returns an empty array by default for newly
28545
- created teams. Existing teams currently depending on this field
28546
- should migrate to the new access pattern for better throughput
28547
- performance — the field is unbounded by user, so users with many
28548
- group memberships produce large, slow response payloads. Use the
28549
- List Directory Groups endpoint with a `user` filter to fetch a
28550
- user's group memberships.
29090
+ The directory groups the user belongs to. Deprecated: use `GET
29091
+ /directories/{directoryId}/groups?user={userId}` instead.
28551
29092
  deprecated: true
28552
29093
  required:
28553
29094
  - object
@@ -28860,141 +29401,6 @@ components:
28860
29401
  additionalProperties: {}
28861
29402
  description: Attributes that changed from their previous values.
28862
29403
  description: Additional context about the event.
28863
- DirectoryUser:
28864
- type: object
28865
- properties:
28866
- object:
28867
- type: string
28868
- description: Distinguishes the Directory User object.
28869
- const: directory_user
28870
- id:
28871
- type: string
28872
- description: Unique identifier for the Directory User.
28873
- example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
28874
- directory_id:
28875
- type: string
28876
- description: The identifier of the Directory the Directory User belongs to.
28877
- example: directory_01ECAZ4NV9QMV47GW873HDCX74
28878
- organization_id:
28879
- type: string
28880
- description: The identifier for the Organization in which the Directory resides.
28881
- example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y
28882
- idp_id:
28883
- type: string
28884
- description: >-
28885
- Unique identifier for the user, assigned by the Directory Provider.
28886
- Different Directory Providers use different ID formats.
28887
- example: '2836'
28888
- email:
28889
- type:
28890
- - string
28891
- - 'null'
28892
- description: The email address of the user.
28893
- example: marcelina.davis@example.com
28894
- first_name:
28895
- type:
28896
- - string
28897
- - 'null'
28898
- description: The first name of the user.
28899
- example: Marcelina
28900
- last_name:
28901
- type:
28902
- - string
28903
- - 'null'
28904
- description: The last name of the user.
28905
- example: Davis
28906
- name:
28907
- type:
28908
- - string
28909
- - 'null'
28910
- description: The full name of the user.
28911
- example: Marcelina Davis
28912
- emails:
28913
- type: array
28914
- items:
28915
- type: object
28916
- properties:
28917
- primary:
28918
- type: boolean
28919
- description: Whether this is the primary email address.
28920
- example: true
28921
- type:
28922
- type: string
28923
- description: The type of email address.
28924
- example: work
28925
- value:
28926
- type:
28927
- - string
28928
- - 'null'
28929
- description: The email address value.
28930
- example: marcelina.davis@example.com
28931
- description: A list of email addresses for the user.
28932
- deprecated: true
28933
- job_title:
28934
- type:
28935
- - string
28936
- - 'null'
28937
- description: The job title of the user.
28938
- example: Software Engineer
28939
- deprecated: true
28940
- username:
28941
- type:
28942
- - string
28943
- - 'null'
28944
- description: The username of the user.
28945
- example: mdavis
28946
- deprecated: true
28947
- state:
28948
- type: string
28949
- enum:
28950
- - active
28951
- - suspended
28952
- - inactive
28953
- description: The state of the user.
28954
- example: active
28955
- raw_attributes:
28956
- type: object
28957
- additionalProperties: {}
28958
- description: The raw attributes received from the directory provider.
28959
- deprecated: true
28960
- custom_attributes:
28961
- type: object
28962
- additionalProperties: {}
28963
- description: >-
28964
- An object containing the custom attribute mapping for the Directory
28965
- Provider.
28966
- example: &ref_43
28967
- department: Engineering
28968
- job_title: Software Engineer
28969
- role:
28970
- $ref: '#/components/schemas/SlimRole'
28971
- roles:
28972
- type: array
28973
- items:
28974
- $ref: '#/components/schemas/SlimRole'
28975
- description: All roles assigned to the user.
28976
- created_at:
28977
- format: date-time
28978
- type: string
28979
- description: An ISO 8601 timestamp.
28980
- example: '2026-01-15T12:00:00.000Z'
28981
- updated_at:
28982
- format: date-time
28983
- type: string
28984
- description: An ISO 8601 timestamp.
28985
- example: '2026-01-15T12:00:00.000Z'
28986
- required:
28987
- - object
28988
- - id
28989
- - directory_id
28990
- - organization_id
28991
- - idp_id
28992
- - email
28993
- - state
28994
- - raw_attributes
28995
- - custom_attributes
28996
- - created_at
28997
- - updated_at
28998
29404
  FlagRule:
28999
29405
  type: object
29000
29406
  properties:
@@ -29451,7 +29857,7 @@ components:
29451
29857
  - data
29452
29858
  - created_at
29453
29859
  description: An event emitted by WorkOS.
29454
- example: &ref_49
29860
+ example: &ref_48
29455
29861
  object: event
29456
29862
  id: event_01EHZNVPK3SFK441A1RGBFSHRT
29457
29863
  event: dsync.user.created
@@ -34106,7 +34512,9 @@ components:
34106
34512
  description: >-
34107
34513
  An object containing the custom attribute mapping for
34108
34514
  the Directory Provider.
34109
- example: *ref_43
34515
+ example:
34516
+ department: Engineering
34517
+ job_title: Software Engineer
34110
34518
  role:
34111
34519
  $ref: '#/components/schemas/SlimRole'
34112
34520
  roles:
@@ -34296,7 +34704,7 @@ components:
34296
34704
  description: >-
34297
34705
  Labels assigned to the Feature Flag for categorizing and
34298
34706
  filtering.
34299
- example: &ref_44
34707
+ example: &ref_43
34300
34708
  - reports
34301
34709
  enabled:
34302
34710
  type: boolean
@@ -34457,7 +34865,7 @@ components:
34457
34865
  description: >-
34458
34866
  Labels assigned to the Feature Flag for categorizing and
34459
34867
  filtering.
34460
- example: *ref_44
34868
+ example: *ref_43
34461
34869
  enabled:
34462
34870
  type: boolean
34463
34871
  description: >-
@@ -34821,7 +35229,7 @@ components:
34821
35229
  description: >-
34822
35230
  Labels assigned to the Feature Flag for categorizing and
34823
35231
  filtering.
34824
- example: *ref_44
35232
+ example: *ref_43
34825
35233
  enabled:
34826
35234
  type: boolean
34827
35235
  description: >-
@@ -34917,7 +35325,7 @@ components:
34917
35325
  items:
34918
35326
  type: string
34919
35327
  description: The previous tags of the flag.
34920
- example: &ref_45
35328
+ example: &ref_44
34921
35329
  - beta
34922
35330
  - release
34923
35331
  owner:
@@ -35043,7 +35451,7 @@ components:
35043
35451
  description: >-
35044
35452
  Labels assigned to the Feature Flag for categorizing and
35045
35453
  filtering.
35046
- example: *ref_44
35454
+ example: *ref_43
35047
35455
  enabled:
35048
35456
  type: boolean
35049
35457
  description: >-
@@ -35203,7 +35611,7 @@ components:
35203
35611
  description: >-
35204
35612
  Labels assigned to the Feature Flag for categorizing and
35205
35613
  filtering.
35206
- example: *ref_44
35614
+ example: *ref_43
35207
35615
  enabled:
35208
35616
  type: boolean
35209
35617
  description: >-
@@ -35363,7 +35771,7 @@ components:
35363
35771
  description: >-
35364
35772
  Labels assigned to the Feature Flag for categorizing and
35365
35773
  filtering.
35366
- example: *ref_44
35774
+ example: *ref_43
35367
35775
  enabled:
35368
35776
  type: boolean
35369
35777
  description: >-
@@ -35773,7 +36181,7 @@ components:
35773
36181
  description: >-
35774
36182
  Labels assigned to the Feature Flag for categorizing and
35775
36183
  filtering.
35776
- example: *ref_44
36184
+ example: *ref_43
35777
36185
  enabled:
35778
36186
  type: boolean
35779
36187
  description: >-
@@ -35869,7 +36277,7 @@ components:
35869
36277
  items:
35870
36278
  type: string
35871
36279
  description: The previous tags of the flag.
35872
- example: *ref_45
36280
+ example: *ref_44
35873
36281
  owner:
35874
36282
  description: >-
35875
36283
  The previous owner of the flag, or `null` if it
@@ -36787,7 +37195,7 @@ components:
36787
37195
  description: >-
36788
37196
  Object containing [metadata](/authkit/metadata)
36789
37197
  key/value pairs associated with the Organization.
36790
- example: &ref_46
37198
+ example: &ref_45
36791
37199
  tier: diamond
36792
37200
  propertyNames:
36793
37201
  maxLength: 40
@@ -36937,7 +37345,7 @@ components:
36937
37345
  description: >-
36938
37346
  Object containing [metadata](/authkit/metadata)
36939
37347
  key/value pairs associated with the Organization.
36940
- example: *ref_46
37348
+ example: *ref_45
36941
37349
  propertyNames:
36942
37350
  maxLength: 40
36943
37351
  maxProperties: 50
@@ -37764,7 +38172,7 @@ components:
37764
38172
  items:
37765
38173
  type: string
37766
38174
  description: The permissions granted by the role.
37767
- example: &ref_47
38175
+ example: &ref_46
37768
38176
  - users:read
37769
38177
  - users:write
37770
38178
  created_at:
@@ -37848,7 +38256,7 @@ components:
37848
38256
  items:
37849
38257
  type: string
37850
38258
  description: The permissions granted by the role.
37851
- example: *ref_47
38259
+ example: *ref_46
37852
38260
  created_at:
37853
38261
  format: date-time
37854
38262
  type: string
@@ -37930,7 +38338,7 @@ components:
37930
38338
  items:
37931
38339
  type: string
37932
38340
  description: The permissions granted by the role.
37933
- example: *ref_47
38341
+ example: *ref_46
37934
38342
  created_at:
37935
38343
  format: date-time
37936
38344
  type: string
@@ -38067,7 +38475,7 @@ components:
38067
38475
  description: >-
38068
38476
  Object containing [metadata](/authkit/metadata)
38069
38477
  key/value pairs associated with the Organization.
38070
- example: *ref_46
38478
+ example: *ref_45
38071
38479
  propertyNames:
38072
38480
  maxLength: 40
38073
38481
  maxProperties: 50
@@ -39271,7 +39679,7 @@ components:
39271
39679
  items:
39272
39680
  type: string
39273
39681
  description: The permissions granted by the role.
39274
- example: &ref_48
39682
+ example: &ref_47
39275
39683
  - users:read
39276
39684
  - users:write
39277
39685
  created_at:
@@ -39337,7 +39745,7 @@ components:
39337
39745
  items:
39338
39746
  type: string
39339
39747
  description: The permissions granted by the role.
39340
- example: *ref_48
39748
+ example: *ref_47
39341
39749
  created_at:
39342
39750
  format: date-time
39343
39751
  type: string
@@ -39401,7 +39809,7 @@ components:
39401
39809
  items:
39402
39810
  type: string
39403
39811
  description: The permissions granted by the role.
39404
- example: *ref_48
39812
+ example: *ref_47
39405
39813
  created_at:
39406
39814
  format: date-time
39407
39815
  type: string
@@ -40603,7 +41011,7 @@ components:
40603
41011
  - data
40604
41012
  - created_at
40605
41013
  - object
40606
- example: *ref_49
41014
+ example: *ref_48
40607
41015
  description: An event emitted by WorkOS.
40608
41016
  EventList:
40609
41017
  type: object
@@ -40638,7 +41046,7 @@ components:
40638
41046
  example:
40639
41047
  object: list
40640
41048
  data:
40641
- - *ref_49
41049
+ - *ref_48
40642
41050
  list_metadata:
40643
41051
  after: event_01EHZNVPK3SFK441A1RGBFSHRT
40644
41052
  JwtTemplate:
@@ -42187,8 +42595,8 @@ components:
42187
42595
  - state
42188
42596
  AuthMethodMismatchError:
42189
42597
  type: object
42190
- properties: *ref_50
42191
- required: *ref_51
42598
+ properties: *ref_49
42599
+ required: *ref_50
42192
42600
  DataIntegrationAccessTokenResponse:
42193
42601
  oneOf:
42194
42602
  - type: object
@@ -42271,8 +42679,8 @@ components:
42271
42679
  - error
42272
42680
  AccountSelectionRequiredError:
42273
42681
  type: object
42274
- properties: *ref_52
42275
- required: *ref_53
42682
+ properties: *ref_51
42683
+ required: *ref_52
42276
42684
  DataIntegrationVendedCredential:
42277
42685
  discriminator:
42278
42686
  propertyName: auth_method
@@ -42339,7 +42747,7 @@ components:
42339
42747
  each `client_credentials` mint. A field a later OAuth refresh
42340
42748
  omits keeps its stored value. Present for `oauth` and
42341
42749
  `client_credentials` credentials; absent for `api_key`.
42342
- example: &ref_55
42750
+ example: &ref_54
42343
42751
  instance_url: https://acme.my.salesforce.com
42344
42752
  config:
42345
42753
  type: object
@@ -42355,7 +42763,7 @@ components:
42355
42763
  integration or organization pins require reconnecting or
42356
42764
  explicitly rebinding the connection. Defaults are live and can
42357
42765
  differ from a cached token's audience until refresh or re-mint.
42358
- example: &ref_54
42766
+ example: &ref_53
42359
42767
  account: myorg-myaccount
42360
42768
  required:
42361
42769
  - object
@@ -42401,7 +42809,7 @@ components:
42401
42809
  integration or organization pins require reconnecting or
42402
42810
  explicitly rebinding the connection. Defaults are live and can
42403
42811
  differ from a cached token's audience until refresh or re-mint.
42404
- example: *ref_54
42812
+ example: *ref_53
42405
42813
  required:
42406
42814
  - object
42407
42815
  - auth_method
@@ -42465,7 +42873,7 @@ components:
42465
42873
  each `client_credentials` mint. A field a later OAuth refresh
42466
42874
  omits keeps its stored value. Present for `oauth` and
42467
42875
  `client_credentials` credentials; absent for `api_key`.
42468
- example: *ref_55
42876
+ example: *ref_54
42469
42877
  config:
42470
42878
  type: object
42471
42879
  additionalProperties:
@@ -42480,7 +42888,7 @@ components:
42480
42888
  integration or organization pins require reconnecting or
42481
42889
  explicitly rebinding the connection. Defaults are live and can
42482
42890
  differ from a cached token's audience until refresh or re-mint.
42483
- example: *ref_54
42891
+ example: *ref_53
42484
42892
  required:
42485
42893
  - object
42486
42894
  - auth_method
@@ -42650,7 +43058,7 @@ components:
42650
43058
  deprecated: true
42651
43059
  description: Use updated_at instead.
42652
43060
  connected_account:
42653
- example: &ref_58
43061
+ example: &ref_57
42654
43062
  object: connected_account
42655
43063
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
42656
43064
  connection_role: compatibility
@@ -42739,7 +43147,7 @@ components:
42739
43147
  items:
42740
43148
  type: string
42741
43149
  description: The OAuth scopes granted for this connection.
42742
- example: &ref_56
43150
+ example: &ref_55
42743
43151
  - repo
42744
43152
  - user:email
42745
43153
  auth_method:
@@ -42789,7 +43197,7 @@ components:
42789
43197
  `installation` scope, excluding secret and undeclared
42790
43198
  fields. Returned for every authentication method;
42791
43199
  empty when no stored values can be disclosed.
42792
- example: &ref_57
43200
+ example: &ref_56
42793
43201
  instance_url: https://example.my.salesforce.com
42794
43202
  state:
42795
43203
  type: string
@@ -42974,7 +43382,7 @@ components:
42974
43382
  items:
42975
43383
  type: string
42976
43384
  description: The OAuth scopes granted for this connection.
42977
- example: *ref_56
43385
+ example: *ref_55
42978
43386
  auth_method:
42979
43387
  type: string
42980
43388
  enum:
@@ -43021,7 +43429,7 @@ components:
43021
43429
  `installation` scope, excluding secret and undeclared
43022
43430
  fields. Returned for every authentication method; empty
43023
43431
  when no stored values can be disclosed.
43024
- example: *ref_57
43432
+ example: *ref_56
43025
43433
  state:
43026
43434
  type: string
43027
43435
  enum:
@@ -43139,7 +43547,7 @@ components:
43139
43547
  - organizationId
43140
43548
  - createdAt
43141
43549
  - updatedAt
43142
- example: *ref_58
43550
+ example: *ref_57
43143
43551
  description: >-
43144
43552
  The user's connected accounts for this provider in the
43145
43553
  requested ownership context. This contains only the