Get or Create a Client Session
Get a client session with specific characteristics or create it if it does not yet exist
Gets a client session with specific characteristics or create a new client session with these characteristics if it does not yet exist.
Request
Specify any combination of desired client session characteristics by including the corresponding parameters in the request body.
Request Body Parameters
user_identifier_key
String Optional
Your own internal user ID for the user to associate with the client session (or that is already associated with the existing client session)
connect_webview_ids
Array of strings Optional
Array of IDs of the Connect Webviews to associate with the client session (or that are already associated with the existing client session)
connected_account_ids
Array of strings Optional
Array of IDs of the connected accounts to associate with the client session (or that are already associated with the existing client session)
user_identity_ids
Array of strings Optional
Array of IDs of the user identities to associate with the client session (or that are already associated with the existing client session)
expires_at
String Optional
Date and time at which the client session should expire (or at which the existing client session expires)
Sample Request
Response
Returns a client_session
containing the following properties:
token
Client session token associated with the client session
workspace_id
ID of the workspace that contains the client session
user_identifier_key
Your own internal user ID for the user
client_session_id
ID of the client session
created_at
Date and time at which the client session was created
This response also includes a Boolean ok
status indicator.
Sample Response
Last updated