You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: You can configure webhooks to be notified about various events that happen on your instance.
126
126
externalDocs:
@@ -863,7 +863,7 @@ paths:
863
863
summary: Refresh a session
864
864
description: |-
865
865
Refreshes a session by creating a new session token. A 401 is returned when there
866
-
are validation errors, which signals the SDKs to fallback to the handshake flow.
866
+
are validation errors, which signals the SDKs to fall back to the handshake flow.
867
867
parameters:
868
868
- name: session_id
869
869
in: path
@@ -955,7 +955,7 @@ paths:
955
955
- Sessions
956
956
summary: Verify a session
957
957
description: |-
958
-
Returns the session if it is authenticated, otherwise returns an error.
958
+
Returns the session if it is authenticated; otherwise, returns an error.
959
959
WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens,
960
960
which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)).
961
961
For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens).
@@ -1013,7 +1013,7 @@ paths:
1013
1013
type: object
1014
1014
properties:
1015
1015
expires_in_seconds:
1016
-
type: number
1016
+
type: integer
1017
1017
minimum: 30
1018
1018
maximum: 315360000
1019
1019
description: Use this parameter to override the default session token lifetime.
@@ -1065,7 +1065,7 @@ paths:
1065
1065
type: object
1066
1066
properties:
1067
1067
expires_in_seconds:
1068
-
type: number
1068
+
type: integer
1069
1069
minimum: 30
1070
1070
maximum: 315360000
1071
1071
description: Use this parameter to override the JWT token lifetime.
@@ -1669,7 +1669,7 @@ paths:
1669
1669
type: string
1670
1670
description: |-
1671
1671
The plaintext password to give the user.
1672
-
Must be at least 8 characters long, and can not be in any list of hacked passwords.
1672
+
Must be at least 8 characters long, and cannot be in any list of hacked passwords.
1673
1673
nullable: true
1674
1674
password_digest:
1675
1675
type: string
@@ -2057,7 +2057,7 @@ paths:
2057
2057
type: string
2058
2058
description: |-
2059
2059
The plaintext password to give the user.
2060
-
Must be at least 8 characters long, and can not be in any list of hacked passwords.
2060
+
Must be at least 8 characters long, and cannot be in any list of hacked passwords.
2061
2061
nullable: true
2062
2062
password_digest:
2063
2063
type: string
@@ -3144,7 +3144,7 @@ paths:
3144
3144
type: string
3145
3145
description: |-
3146
3146
The identifier to be added in the allow-list.
3147
-
This can be an email address, a phone number or a web3 wallet.
3147
+
This can be an email address, a phone number, or a web3 wallet.
3148
3148
notify:
3149
3149
type: boolean
3150
3150
description: |-
@@ -3220,7 +3220,7 @@ paths:
3220
3220
type: string
3221
3221
description: |-
3222
3222
The identifier to be added in the block-list.
3223
-
This can be an email address, a phone number or a web3 wallet.
3223
+
This can be an email address, a phone number, or a web3 wallet.
3224
3224
required:
3225
3225
- identifier
3226
3226
responses:
@@ -3621,7 +3621,7 @@ paths:
3621
3621
type: array
3622
3622
items:
3623
3623
type: string
3624
-
description: For browser-like stacks such as browser extensions, Electron (not officially supported), or Capacitor.js (not officially supported), the instance allowed origins need to be updated with the request origin value. For Chrome extensions popup, background, or service worker pages, the origin is chrome-extension://extension_uiid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost.
3624
+
description: For browser-like stacks such as browser extensions, Electron (not officially supported), or Capacitor.js (not officially supported), the instance allowed origins need to be updated with the request origin value. For Chrome extensions popup, background, or service worker pages, the origin is chrome-extension://extension_uuid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost.
3625
3625
cookieless_dev:
3626
3626
type: boolean
3627
3627
description: |-
@@ -3843,13 +3843,13 @@ paths:
3843
3843
description: JWT template claims in JSON format
3844
3844
nullable: false
3845
3845
lifetime:
3846
-
type: number
3846
+
type: integer
3847
3847
minimum: 30
3848
3848
maximum: 315360000
3849
3849
description: JWT token lifetime
3850
3850
nullable: true
3851
3851
allowed_clock_skew:
3852
-
type: number
3852
+
type: integer
3853
3853
minimum: 0
3854
3854
maximum: 300
3855
3855
description: JWT token allowed clock skew
@@ -3928,13 +3928,13 @@ paths:
3928
3928
description: JWT template claims in JSON format
3929
3929
nullable: false
3930
3930
lifetime:
3931
-
type: number
3931
+
type: integer
3932
3932
minimum: 30
3933
3933
maximum: 315360000
3934
3934
description: JWT token lifetime
3935
3935
nullable: true
3936
3936
allowed_clock_skew:
3937
-
type: number
3937
+
type: integer
3938
3938
minimum: 0
3939
3939
maximum: 300
3940
3940
description: JWT token allowed clock skew
@@ -4092,9 +4092,15 @@ paths:
4092
4092
type: string
4093
4093
description: Array of machine IDs that this machine will have access to. Maximum of 25 scopes per machine.
4094
4094
maxItems: 25
4095
+
default_token_ttl:
4096
+
type: integer
4097
+
description: The default time-to-live (TTL) in seconds for tokens created by this machine. Must be at least 1 second.
4098
+
minimum: 1
4099
+
maximum: 315360000
4100
+
default: 3600
4095
4101
responses:
4096
4102
'200':
4097
-
$ref: '#/components/responses/Machine'
4103
+
$ref: '#/components/responses/Machine.Created'
4098
4104
'400':
4099
4105
$ref: '#/components/responses/ClerkErrors'
4100
4106
'401':
@@ -4160,6 +4166,11 @@ paths:
4160
4166
description: The name of the machine
4161
4167
minLength: 1
4162
4168
maxLength: 255
4169
+
default_token_ttl:
4170
+
type: integer
4171
+
description: The default time-to-live (TTL) in seconds for tokens created by this machine. Must be at least 1 second.
0 commit comments