Create an auth session
Changed onTo launch the authentication flow, create an auth session and pass the returned session's authFlowUrl to the client for your end-user to visit in their browser. Demo: https://connect.conductor.is/qbd/demo
post/auth-sessions
Request
- Base URLhttps://api.conductor.is/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"publishableKey": "{{YOUR_PUBLISHABLE_KEY}}",
"endUserId": "end_usr_1234567abcdefg",
"redirectUrl": "https://example.com/auth/conductor-callback"
}Response
Returns the auth session object.
Example response
{
"id": "auth_sess_1234567abcdefg",
"objectType": "auth_session",
"createdAt": "2024-01-01T12:34:56.789Z",
"endUserId": "end_usr_1234567abcdefg",
"clientSecret": "auth_sess_client_secret_1234567abcdefg",
"authFlowUrl": "https://connect.conductor.is/qbd/auth_sess_client_secret_1234567abcdefg?key={{YOUR_PUBLISHABLE_KEY}}",
"expiresAt": "2024-01-01T12:34:56.789Z",
"redirectUrl": "https://myapp.com/auth/callback"
}Changes
- breaking
response property
redirectUrllist-of-types was widened by adding typesnullto media typeapplication/jsonof response200
- breaking
- breaking
the response property
became nullable for the status - info
response property
redirectUrllist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200
- breaking