@workos/openapi-spec 0.177.0 → 0.178.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.
@@ -13209,6 +13209,42 @@ paths:
13209
13209
  summary: Update a Radar attempt
13210
13210
  tags:
13211
13211
  - radar
13212
+ /radar/detections/{id}:
13213
+ get:
13214
+ description: >-
13215
+ Get a Radar detection from the last 30 days, including the evidence for
13216
+ why Radar fired.
13217
+ operationId: RadarDetectionsController_find
13218
+ parameters:
13219
+ - name: id
13220
+ required: true
13221
+ in: path
13222
+ description: The unique ID of the Radar detection.
13223
+ schema:
13224
+ example: detection_01HZBC6N1EB1ZY7KG32X
13225
+ type: string
13226
+ responses:
13227
+ '200':
13228
+ description: OK
13229
+ content:
13230
+ application/json:
13231
+ schema:
13232
+ $ref: '#/components/schemas/RadarDetection'
13233
+ '402':
13234
+ description: ''
13235
+ content:
13236
+ application/json:
13237
+ schema:
13238
+ $ref: '#/components/schemas/ErrorBodyWithCode'
13239
+ '404':
13240
+ description: Not Found
13241
+ content:
13242
+ application/json:
13243
+ schema:
13244
+ $ref: '#/components/schemas/ErrorBody'
13245
+ summary: Get a Radar detection
13246
+ tags:
13247
+ - radar
13212
13248
  /radar/lists/{type}/{action}:
13213
13249
  post:
13214
13250
  description: Add an entry to a Radar list.
@@ -32347,7 +32383,10 @@ components:
32347
32383
  type: string
32348
32384
  description: >-
32349
32385
  The ID of the Radar detection that blocked the
32350
- authentication. Only set on `policy_denied` errors.
32386
+ authentication. Retrieve the detection with `GET
32387
+ /radar/detections/:id` to see why Radar acted. Only
32388
+ set on `policy_denied` errors that a Radar detection
32389
+ caused.
32351
32390
  example: detection_01HZBC6N1EB1ZY7KG32X
32352
32391
  required:
32353
32392
  - code
@@ -32499,7 +32538,10 @@ components:
32499
32538
  type: string
32500
32539
  description: >-
32501
32540
  The ID of the Radar detection that blocked the
32502
- authentication. Only set on `policy_denied` errors.
32541
+ authentication. Retrieve the detection with `GET
32542
+ /radar/detections/:id` to see why Radar acted. Only
32543
+ set on `policy_denied` errors that a Radar detection
32544
+ caused.
32503
32545
  example: detection_01HZBC6N1EB1ZY7KG32X
32504
32546
  required:
32505
32547
  - code
@@ -32651,7 +32693,10 @@ components:
32651
32693
  type: string
32652
32694
  description: >-
32653
32695
  The ID of the Radar detection that blocked the
32654
- authentication. Only set on `policy_denied` errors.
32696
+ authentication. Retrieve the detection with `GET
32697
+ /radar/detections/:id` to see why Radar acted. Only
32698
+ set on `policy_denied` errors that a Radar detection
32699
+ caused.
32655
32700
  example: detection_01HZBC6N1EB1ZY7KG32X
32656
32701
  required:
32657
32702
  - code
@@ -32803,7 +32848,10 @@ components:
32803
32848
  type: string
32804
32849
  description: >-
32805
32850
  The ID of the Radar detection that blocked the
32806
- authentication. Only set on `policy_denied` errors.
32851
+ authentication. Retrieve the detection with `GET
32852
+ /radar/detections/:id` to see why Radar acted. Only
32853
+ set on `policy_denied` errors that a Radar detection
32854
+ caused.
32807
32855
  example: detection_01HZBC6N1EB1ZY7KG32X
32808
32856
  required:
32809
32857
  - code
@@ -32965,7 +33013,10 @@ components:
32965
33013
  type: string
32966
33014
  description: >-
32967
33015
  The ID of the Radar detection that blocked the
32968
- authentication. Only set on `policy_denied` errors.
33016
+ authentication. Retrieve the detection with `GET
33017
+ /radar/detections/:id` to see why Radar acted. Only
33018
+ set on `policy_denied` errors that a Radar detection
33019
+ caused.
32969
33020
  example: detection_01HZBC6N1EB1ZY7KG32X
32970
33021
  required:
32971
33022
  - code
@@ -33117,7 +33168,10 @@ components:
33117
33168
  type: string
33118
33169
  description: >-
33119
33170
  The ID of the Radar detection that blocked the
33120
- authentication. Only set on `policy_denied` errors.
33171
+ authentication. Retrieve the detection with `GET
33172
+ /radar/detections/:id` to see why Radar acted. Only
33173
+ set on `policy_denied` errors that a Radar detection
33174
+ caused.
33121
33175
  example: detection_01HZBC6N1EB1ZY7KG32X
33122
33176
  required:
33123
33177
  - code
@@ -33237,14 +33291,14 @@ components:
33237
33291
  type:
33238
33292
  - string
33239
33293
  - 'null'
33240
- description: The control action taken for the detected risk.
33241
- example: block
33294
+ description: The Radar control that detected the risk.
33295
+ example: bot_detection
33242
33296
  blocklist_type:
33243
33297
  type:
33244
33298
  - string
33245
33299
  - 'null'
33246
33300
  description: The type of blocklist that triggered the risk detection.
33247
- example: ip
33301
+ example: ip_address
33248
33302
  ip_address:
33249
33303
  type:
33250
33304
  - string
@@ -33269,7 +33323,8 @@ components:
33269
33323
  type: string
33270
33324
  description: >-
33271
33325
  The ID of the Radar detection that challenged the
33272
- authentication.
33326
+ authentication. Retrieve the detection with `GET
33327
+ /radar/detections/:id` to see why Radar acted.
33273
33328
  example: detection_01HZBC6N1EB1ZY7KG32X
33274
33329
  required:
33275
33330
  - auth_method
@@ -33444,7 +33499,10 @@ components:
33444
33499
  type: string
33445
33500
  description: >-
33446
33501
  The ID of the Radar detection that blocked the
33447
- authentication. Only set on `policy_denied` errors.
33502
+ authentication. Retrieve the detection with `GET
33503
+ /radar/detections/:id` to see why Radar acted. Only
33504
+ set on `policy_denied` errors that a Radar detection
33505
+ caused.
33448
33506
  example: detection_01HZBC6N1EB1ZY7KG32X
33449
33507
  required:
33450
33508
  - code
@@ -33746,7 +33804,10 @@ components:
33746
33804
  type: string
33747
33805
  description: >-
33748
33806
  The ID of the Radar detection that blocked the
33749
- authentication. Only set on `policy_denied` errors.
33807
+ authentication. Retrieve the detection with `GET
33808
+ /radar/detections/:id` to see why Radar acted. Only
33809
+ set on `policy_denied` errors that a Radar detection
33810
+ caused.
33750
33811
  example: detection_01HZBC6N1EB1ZY7KG32X
33751
33812
  required:
33752
33813
  - code
@@ -44304,6 +44365,746 @@ components:
44304
44365
  required:
44305
44366
  - verification_id
44306
44367
  - phone_number
44368
+ RadarDetectionList:
44369
+ type: object
44370
+ properties:
44371
+ type:
44372
+ type: string
44373
+ enum:
44374
+ - ip_address
44375
+ - domain
44376
+ - email
44377
+ - device
44378
+ - user_agent
44379
+ - device_fingerprint
44380
+ - country
44381
+ description: The type of values the list holds.
44382
+ example: domain
44383
+ action:
44384
+ description: >-
44385
+ The action the list applies to matching values. `null` for
44386
+ WorkOS-managed lists.
44387
+ example: block
44388
+ oneOf:
44389
+ - type: string
44390
+ enum:
44391
+ - allow
44392
+ - block
44393
+ - challenge
44394
+ - log
44395
+ - type: 'null'
44396
+ name:
44397
+ type:
44398
+ - string
44399
+ - 'null'
44400
+ description: The name of the list.
44401
+ example: Disposable email domains
44402
+ workos_managed:
44403
+ type: boolean
44404
+ description: Whether WorkOS maintains the list.
44405
+ example: true
44406
+ required:
44407
+ - type
44408
+ - action
44409
+ - name
44410
+ - workos_managed
44411
+ RadarDetectionAllowedBy:
44412
+ type: object
44413
+ properties:
44414
+ list_id:
44415
+ type: string
44416
+ description: The ID of the matched list.
44417
+ example: radar_list_01HZBC6N1EB1ZY7KG32X
44418
+ list:
44419
+ description: The list as it is now. `null` if the list has since been deleted.
44420
+ oneOf:
44421
+ - $ref: '#/components/schemas/RadarDetectionList'
44422
+ - type: 'null'
44423
+ entry:
44424
+ type: string
44425
+ description: The list entry that matched.
44426
+ example: example.com
44427
+ required:
44428
+ - list_id
44429
+ - list
44430
+ RadarDetectionBotDetectionSignal:
44431
+ type: object
44432
+ properties:
44433
+ signal:
44434
+ type: string
44435
+ enum:
44436
+ - risky_ip
44437
+ - anomalous_ip
44438
+ - excessive_domain_sign_ups
44439
+ - suspicious_browser_signals
44440
+ - missing_device_fingerprint
44441
+ - suspicious_email_pattern
44442
+ - automated_client
44443
+ - workos_risk_model
44444
+ action:
44445
+ type: string
44446
+ enum:
44447
+ - block
44448
+ - challenge
44449
+ description: The action this signal would take on its own.
44450
+ required:
44451
+ - signal
44452
+ RadarDetectionIpSignUps:
44453
+ type: object
44454
+ properties:
44455
+ count:
44456
+ type: integer
44457
+ description: The number of sign-ups.
44458
+ example: 6
44459
+ window_minutes:
44460
+ type: integer
44461
+ description: The window the sign-ups were counted in.
44462
+ example: 5
44463
+ required:
44464
+ - count
44465
+ - window_minutes
44466
+ RadarDetectionDomainSignUps:
44467
+ type: object
44468
+ properties:
44469
+ root_domain:
44470
+ type: string
44471
+ description: The root domain of the email address.
44472
+ example: example.com
44473
+ count:
44474
+ type: integer
44475
+ description: The number of sign-ups.
44476
+ example: 44
44477
+ required:
44478
+ - root_domain
44479
+ RadarDetectionBotDetectionDetails:
44480
+ type: object
44481
+ properties:
44482
+ signals:
44483
+ type: array
44484
+ items:
44485
+ $ref: '#/components/schemas/RadarDetectionBotDetectionSignal'
44486
+ description: Every bot detection signal that fired.
44487
+ decided_by:
44488
+ type: string
44489
+ enum:
44490
+ - risky_ip
44491
+ - anomalous_ip
44492
+ - excessive_domain_sign_ups
44493
+ - suspicious_browser_signals
44494
+ - missing_device_fingerprint
44495
+ - suspicious_email_pattern
44496
+ - automated_client
44497
+ - workos_risk_model
44498
+ description: The signal that determined the verdict.
44499
+ ip_risk:
44500
+ type: array
44501
+ items:
44502
+ type: string
44503
+ enum:
44504
+ - abuser
44505
+ - anonymous
44506
+ - vpn
44507
+ - tor
44508
+ - proxy
44509
+ description: Why the IP address is risky.
44510
+ email_pattern:
44511
+ type: array
44512
+ items:
44513
+ type: string
44514
+ enum:
44515
+ - generated_looking
44516
+ - repeated_format
44517
+ - suspicious_domain
44518
+ description: Why the email address looks suspicious.
44519
+ browser_signals:
44520
+ type: array
44521
+ items:
44522
+ type: string
44523
+ enum:
44524
+ - automation_framework
44525
+ - headless_browser
44526
+ - tampered_signals
44527
+ - inconsistent_hardware
44528
+ - missing_signals
44529
+ description: Why the browser looks automated.
44530
+ ip_sign_ups:
44531
+ $ref: '#/components/schemas/RadarDetectionIpSignUps'
44532
+ description: Recent sign-ups from this IP address.
44533
+ domain_sign_ups:
44534
+ $ref: '#/components/schemas/RadarDetectionDomainSignUps'
44535
+ description: Recent sign-ups from this email domain.
44536
+ required:
44537
+ - signals
44538
+ RadarDetectionBruteForceAttackDetails:
44539
+ type: object
44540
+ properties:
44541
+ attempts:
44542
+ type: integer
44543
+ description: The number of sign-in attempts.
44544
+ example: 11
44545
+ window_minutes:
44546
+ type: integer
44547
+ description: The window the attempts were counted in.
44548
+ example: 1
44549
+ matched_on:
44550
+ type: string
44551
+ enum:
44552
+ - device_fingerprint_and_email
44553
+ - ip_and_email
44554
+ required:
44555
+ - attempts
44556
+ - window_minutes
44557
+ - matched_on
44558
+ RadarDetectionDomainProtectionsDetails:
44559
+ type: object
44560
+ properties:
44561
+ list_id:
44562
+ type: string
44563
+ description: The ID of the matched list.
44564
+ example: radar_list_01HZBC6N1EB1ZY7KG32X
44565
+ list:
44566
+ description: The list as it is now. `null` if the list has since been deleted.
44567
+ oneOf:
44568
+ - $ref: '#/components/schemas/RadarDetectionList'
44569
+ - type: 'null'
44570
+ also_matched_list_ids:
44571
+ type: array
44572
+ items:
44573
+ type: string
44574
+ description: The ID of another matched list.
44575
+ example: radar_list_01HZBC6N1EB1ZY7KG32Y
44576
+ description: The IDs of other lists the domain is on.
44577
+ also_matched_lists:
44578
+ type: array
44579
+ items:
44580
+ description: The list as it is now. `null` if the list has since been deleted.
44581
+ oneOf:
44582
+ - $ref: '#/components/schemas/RadarDetectionList'
44583
+ - type: 'null'
44584
+ description: Other lists the domain is on.
44585
+ matched_domain:
44586
+ type: string
44587
+ description: The domain that matched the list.
44588
+ example: example.com
44589
+ required:
44590
+ - list_id
44591
+ - list
44592
+ RadarDetectionPreviousAttempt:
44593
+ type: object
44594
+ properties:
44595
+ attempt_id:
44596
+ type: string
44597
+ description: The ID of the authentication attempt.
44598
+ example: radar_att_01HZBC6N1EB1ZY7KG32X
44599
+ ip_address:
44600
+ type: string
44601
+ description: The IP address of the earlier attempt.
44602
+ example: 198.51.100.7
44603
+ user_agent:
44604
+ type:
44605
+ - string
44606
+ - 'null'
44607
+ description: The user agent of the earlier attempt.
44608
+ example: Mozilla/5.0
44609
+ location:
44610
+ type: object
44611
+ properties:
44612
+ city:
44613
+ type:
44614
+ - string
44615
+ - 'null'
44616
+ description: The city the IP address is located in.
44617
+ example: San Francisco
44618
+ country:
44619
+ type:
44620
+ - string
44621
+ - 'null'
44622
+ description: ISO 3166-1 alpha-2 country code.
44623
+ example: US
44624
+ required:
44625
+ - city
44626
+ - country
44627
+ description: Where the IP address of the earlier attempt is located.
44628
+ created_at:
44629
+ type: string
44630
+ description: When that earlier sign-in happened.
44631
+ example: '2026-01-15T12:00:00.000Z'
44632
+ format: date-time
44633
+ required:
44634
+ - attempt_id
44635
+ - location
44636
+ - created_at
44637
+ RadarDetectionImpossibleTravelDetails:
44638
+ type: object
44639
+ properties:
44640
+ previous:
44641
+ $ref: '#/components/schemas/RadarDetectionPreviousAttempt'
44642
+ description: The previous successful sign-in.
44643
+ distance_km:
44644
+ type: number
44645
+ description: The distance from the previous sign-in, in kilometers.
44646
+ example: 8543
44647
+ speed_km_per_s:
44648
+ type: number
44649
+ description: The speed needed to travel that distance, in km per second.
44650
+ example: 4.07
44651
+ required:
44652
+ - previous
44653
+ - distance_km
44654
+ - speed_km_per_s
44655
+ RadarDetectionRepeatSignUpDetails:
44656
+ allOf:
44657
+ - type: object
44658
+ properties: {}
44659
+ - discriminator:
44660
+ propertyName: matched_on
44661
+ oneOf:
44662
+ - type: object
44663
+ properties:
44664
+ matched_on:
44665
+ type: string
44666
+ const: email
44667
+ prior_sign_ups:
44668
+ type: integer
44669
+ description: The number of earlier sign-ups.
44670
+ example: 8
44671
+ window_days:
44672
+ type: integer
44673
+ description: The window the sign-ups were counted in.
44674
+ example: 60
44675
+ required:
44676
+ - matched_on
44677
+ - prior_sign_ups
44678
+ - window_days
44679
+ - type: object
44680
+ properties:
44681
+ matched_on:
44682
+ type: string
44683
+ const: normalized_email
44684
+ matched_user_id:
44685
+ type: string
44686
+ description: The existing user whose email this sign-up is an alias of.
44687
+ example: user_01E4ZCR3C56J083X43JQXF3JK5
44688
+ required:
44689
+ - matched_on
44690
+ - matched_user_id
44691
+ RadarDetectionStaleAccountDetails:
44692
+ type: object
44693
+ properties:
44694
+ last_activity_at:
44695
+ type:
44696
+ - string
44697
+ - 'null'
44698
+ description: When the user was last active. `null` if unknown.
44699
+ example: '2026-01-15T12:00:00.000Z'
44700
+ format: date-time
44701
+ required:
44702
+ - last_activity_at
44703
+ RadarDetectionUnrecognizedDeviceDetails:
44704
+ type: object
44705
+ properties:
44706
+ previous_device:
44707
+ description: The device the user last signed in from.
44708
+ oneOf:
44709
+ - $ref: '#/components/schemas/RadarDetectionPreviousAttempt'
44710
+ - type: 'null'
44711
+ required:
44712
+ - previous_device
44713
+ RadarDetectionRestrictionDetails:
44714
+ allOf:
44715
+ - type: object
44716
+ properties: {}
44717
+ - discriminator:
44718
+ propertyName: type
44719
+ oneOf:
44720
+ - type: object
44721
+ properties:
44722
+ type:
44723
+ type: string
44724
+ const: list
44725
+ list_id:
44726
+ type: string
44727
+ description: The ID of the matched list.
44728
+ example: radar_list_01HZBC6N1EB1ZY7KG32X
44729
+ list:
44730
+ description: >-
44731
+ The list as it is now. `null` if the list has since been
44732
+ deleted.
44733
+ oneOf:
44734
+ - $ref: '#/components/schemas/RadarDetectionList'
44735
+ - type: 'null'
44736
+ entry:
44737
+ type: string
44738
+ description: The list entry that matched.
44739
+ example: example.com
44740
+ required:
44741
+ - type
44742
+ - list_id
44743
+ - list
44744
+ - type: object
44745
+ properties:
44746
+ type:
44747
+ type: string
44748
+ const: blocked_tld
44749
+ required:
44750
+ - type
44751
+ - type: object
44752
+ properties:
44753
+ type:
44754
+ type: string
44755
+ const: sign_up
44756
+ required:
44757
+ - type
44758
+ - type: object
44759
+ properties:
44760
+ type:
44761
+ type: string
44762
+ const: sms_sign_in
44763
+ trigger:
44764
+ type: string
44765
+ enum:
44766
+ - country_mismatch
44767
+ - non_mobile_line
44768
+ - previously_selected
44769
+ - unknown_line_type
44770
+ - missing_signals
44771
+ description: Why SMS sign-in was restricted.
44772
+ phone_country:
44773
+ type: string
44774
+ description: >-
44775
+ The country of the phone number. Only when `trigger` is
44776
+ `country_mismatch`.
44777
+ example: US
44778
+ line_type:
44779
+ type: string
44780
+ description: >-
44781
+ The line type of the phone number. Only when `trigger` is
44782
+ `non_mobile_line`.
44783
+ example: voip
44784
+ masked_phone_number:
44785
+ type: string
44786
+ description: The phone number, masked to its last four digits.
44787
+ example: ••••0123
44788
+ required:
44789
+ - type
44790
+ - trigger
44791
+ RadarDetectionEvidence:
44792
+ allOf:
44793
+ - type: object
44794
+ properties:
44795
+ summary:
44796
+ type: string
44797
+ description: A human-readable explanation of why Radar fired.
44798
+ example: >-
44799
+ Sign-up from a Tor exit node with an email format shared by many
44800
+ recent sign-ups. The action was decided by the risky IP. The
44801
+ email pattern would also have challenged.
44802
+ allowed_by:
44803
+ $ref: '#/components/schemas/RadarDetectionAllowedBy'
44804
+ description: >-
44805
+ The allowlist that overrode the verdict. Only present when an
44806
+ allowlist allowed the attempt.
44807
+ required:
44808
+ - summary
44809
+ - discriminator:
44810
+ propertyName: control
44811
+ oneOf:
44812
+ - type: object
44813
+ properties:
44814
+ control:
44815
+ type: string
44816
+ description: >-
44817
+ The control the evidence is for. Always the same as the
44818
+ detection's `control`.
44819
+ const: bot_detection
44820
+ details:
44821
+ $ref: '#/components/schemas/RadarDetectionBotDetectionDetails'
44822
+ description: >-
44823
+ Facts specific to the control. See the [Radar detection
44824
+ object](/reference/radar/detections#evidence-details) for
44825
+ the fields each control reports.
44826
+ required:
44827
+ - control
44828
+ - details
44829
+ - type: object
44830
+ properties:
44831
+ control:
44832
+ type: string
44833
+ description: >-
44834
+ The control the evidence is for. Always the same as the
44835
+ detection's `control`.
44836
+ const: brute_force_attack
44837
+ details:
44838
+ $ref: '#/components/schemas/RadarDetectionBruteForceAttackDetails'
44839
+ description: >-
44840
+ Facts specific to the control. See the [Radar detection
44841
+ object](/reference/radar/detections#evidence-details) for
44842
+ the fields each control reports.
44843
+ required:
44844
+ - control
44845
+ - details
44846
+ - type: object
44847
+ properties:
44848
+ control:
44849
+ type: string
44850
+ description: >-
44851
+ The control the evidence is for. Always the same as the
44852
+ detection's `control`.
44853
+ const: domain_protections
44854
+ details:
44855
+ $ref: '#/components/schemas/RadarDetectionDomainProtectionsDetails'
44856
+ description: >-
44857
+ Facts specific to the control. See the [Radar detection
44858
+ object](/reference/radar/detections#evidence-details) for
44859
+ the fields each control reports.
44860
+ required:
44861
+ - control
44862
+ - details
44863
+ - type: object
44864
+ properties:
44865
+ control:
44866
+ type: string
44867
+ description: >-
44868
+ The control the evidence is for. Always the same as the
44869
+ detection's `control`.
44870
+ const: impossible_travel
44871
+ details:
44872
+ $ref: '#/components/schemas/RadarDetectionImpossibleTravelDetails'
44873
+ description: >-
44874
+ Facts specific to the control. See the [Radar detection
44875
+ object](/reference/radar/detections#evidence-details) for
44876
+ the fields each control reports.
44877
+ required:
44878
+ - control
44879
+ - details
44880
+ - type: object
44881
+ properties:
44882
+ control:
44883
+ type: string
44884
+ description: >-
44885
+ The control the evidence is for. Always the same as the
44886
+ detection's `control`.
44887
+ const: repeat_sign_up
44888
+ details:
44889
+ $ref: '#/components/schemas/RadarDetectionRepeatSignUpDetails'
44890
+ description: >-
44891
+ Facts specific to the control. See the [Radar detection
44892
+ object](/reference/radar/detections#evidence-details) for
44893
+ the fields each control reports.
44894
+ required:
44895
+ - control
44896
+ - details
44897
+ - type: object
44898
+ properties:
44899
+ control:
44900
+ type: string
44901
+ description: >-
44902
+ The control the evidence is for. Always the same as the
44903
+ detection's `control`.
44904
+ const: stale_account
44905
+ details:
44906
+ $ref: '#/components/schemas/RadarDetectionStaleAccountDetails'
44907
+ description: >-
44908
+ Facts specific to the control. See the [Radar detection
44909
+ object](/reference/radar/detections#evidence-details) for
44910
+ the fields each control reports.
44911
+ required:
44912
+ - control
44913
+ - details
44914
+ - type: object
44915
+ properties:
44916
+ control:
44917
+ type: string
44918
+ description: >-
44919
+ The control the evidence is for. Always the same as the
44920
+ detection's `control`.
44921
+ const: unrecognized_device
44922
+ details:
44923
+ $ref: '#/components/schemas/RadarDetectionUnrecognizedDeviceDetails'
44924
+ description: >-
44925
+ Facts specific to the control. See the [Radar detection
44926
+ object](/reference/radar/detections#evidence-details) for
44927
+ the fields each control reports.
44928
+ required:
44929
+ - control
44930
+ - details
44931
+ - type: object
44932
+ properties:
44933
+ control:
44934
+ type: string
44935
+ description: >-
44936
+ The control the evidence is for. Always the same as the
44937
+ detection's `control`.
44938
+ const: restriction
44939
+ details:
44940
+ $ref: '#/components/schemas/RadarDetectionRestrictionDetails'
44941
+ description: >-
44942
+ Facts specific to the control. See the [Radar detection
44943
+ object](/reference/radar/detections#evidence-details) for
44944
+ the fields each control reports.
44945
+ required:
44946
+ - control
44947
+ - details
44948
+ example:
44949
+ control: bot_detection
44950
+ summary: >-
44951
+ Sign-up from a Tor exit node with an email format shared by many
44952
+ recent sign-ups. The action was decided by the risky IP. The email
44953
+ pattern would also have challenged.
44954
+ details:
44955
+ signals:
44956
+ - signal: risky_ip
44957
+ action: challenge
44958
+ - signal: suspicious_email_pattern
44959
+ action: challenge
44960
+ decided_by: risky_ip
44961
+ ip_risk:
44962
+ - tor
44963
+ email_pattern:
44964
+ - repeated_format
44965
+ RadarDetection:
44966
+ type: object
44967
+ properties:
44968
+ object:
44969
+ type: string
44970
+ description: Distinguishes the Radar detection object.
44971
+ const: radar_detection
44972
+ id:
44973
+ type: string
44974
+ description: The unique ID of the detection.
44975
+ example: detection_01HZBC6N1EB1ZY7KG32X
44976
+ attempt_id:
44977
+ type: string
44978
+ description: The ID of the authentication attempt.
44979
+ example: radar_att_01HZBC6N1EB1ZY7KG32X
44980
+ control:
44981
+ type: string
44982
+ enum:
44983
+ - bot_detection
44984
+ - brute_force_attack
44985
+ - domain_protections
44986
+ - impossible_travel
44987
+ - repeat_sign_up
44988
+ - stale_account
44989
+ - unrecognized_device
44990
+ - restriction
44991
+ description: The Radar control that determined the verdict.
44992
+ example: bot_detection
44993
+ verdict:
44994
+ type: string
44995
+ enum:
44996
+ - allow
44997
+ - block
44998
+ - challenge
44999
+ - log
45000
+ description: The verdict Radar reached for the attempt.
45001
+ example: challenge
45002
+ challenge_type:
45003
+ description: The challenge Radar issued, if the verdict is `challenge`.
45004
+ example: email
45005
+ oneOf:
45006
+ - type: string
45007
+ enum:
45008
+ - email
45009
+ - sms
45010
+ - type: 'null'
45011
+ evidence:
45012
+ description: >-
45013
+ Why Radar fired. `null` for detections recorded before evidence was
45014
+ captured.
45015
+ oneOf:
45016
+ - $ref: '#/components/schemas/RadarDetectionEvidence'
45017
+ - type: 'null'
45018
+ ip_address:
45019
+ type: string
45020
+ description: The IP address of the attempt.
45021
+ example: 203.0.113.42
45022
+ location:
45023
+ type: object
45024
+ properties:
45025
+ city:
45026
+ type:
45027
+ - string
45028
+ - 'null'
45029
+ description: The city the IP address is located in.
45030
+ example: San Francisco
45031
+ country:
45032
+ type:
45033
+ - string
45034
+ - 'null'
45035
+ description: ISO 3166-1 alpha-2 country code.
45036
+ example: US
45037
+ required:
45038
+ - city
45039
+ - country
45040
+ description: Where the IP address is located.
45041
+ user_agent:
45042
+ type: string
45043
+ description: The user agent of the attempt.
45044
+ example: Mozilla/5.0
45045
+ email:
45046
+ type: string
45047
+ description: The email address used in the attempt.
45048
+ example: user@example.com
45049
+ user_id:
45050
+ type:
45051
+ - string
45052
+ - 'null'
45053
+ description: The ID of the user, if one exists.
45054
+ example: user_01E4ZCR3C56J083X43JQXF3JK5
45055
+ action:
45056
+ description: >-
45057
+ Whether the attempt was a sign-up or a sign-in, as on the
45058
+ `authentication.radar_risk_detected` event. `null` if unknown.
45059
+ example: signup
45060
+ oneOf:
45061
+ - type: string
45062
+ enum:
45063
+ - signup
45064
+ - login
45065
+ - type: 'null'
45066
+ auth_method:
45067
+ description: The authentication method used for the attempt.
45068
+ example: password
45069
+ oneOf:
45070
+ - type: string
45071
+ enum:
45072
+ - password
45073
+ - passkey
45074
+ - magic_auth
45075
+ - oauth
45076
+ - sso
45077
+ - authenticator
45078
+ - sms_otp
45079
+ - other
45080
+ - type: 'null'
45081
+ created_at:
45082
+ format: date-time
45083
+ type: string
45084
+ description: An ISO 8601 timestamp.
45085
+ example: '2026-01-15T12:00:00.000Z'
45086
+ updated_at:
45087
+ format: date-time
45088
+ type: string
45089
+ description: An ISO 8601 timestamp.
45090
+ example: '2026-01-15T12:00:00.000Z'
45091
+ required:
45092
+ - object
45093
+ - id
45094
+ - attempt_id
45095
+ - control
45096
+ - verdict
45097
+ - challenge_type
45098
+ - evidence
45099
+ - ip_address
45100
+ - location
45101
+ - user_agent
45102
+ - email
45103
+ - user_id
45104
+ - action
45105
+ - auth_method
45106
+ - created_at
45107
+ - updated_at
44307
45108
  RadarStandaloneResponse:
44308
45109
  type: object
44309
45110
  properties: