cURL
curl --request GET \ --url https://management.stytch.com/pwa/v3/projects/:project_slug/environments/:environment_slug/sdk/b2b \ --header 'Authorization: Basic <encoded-value>'
{ "request_id": "<string>", "config": { "basic": { "enabled": true, "allow_self_onboarding": true, "enable_member_permissions": true, "domains": [ { "domain": "<string>", "slug_pattern": "<string>" } ], "bundle_ids": [ "<string>" ] }, "sessions": { "max_session_duration_minutes": 123 }, "magic_links": { "enabled": true, "pkce_required": true }, "oauth": { "enabled": true, "pkce_required": true }, "totps": { "create_totps": true, "enabled": true }, "sso": { "enabled": true, "pkce_required": true }, "otps": { "sms_enabled": true, "sms_autofill_metadata": [ { "metadata_type": "domain", "metadata_value": "<string>", "bundle_id": "<string>" } ], "email_enabled": true }, "dfppa": { "enabled": "ENABLED", "on_challenge": "ALLOW" }, "passwords": { "enabled": true, "pkce_required_for_password_resets": true }, "cookies": { "http_only": "DISABLED" } }, "status_code": 123 }
GetB2BConfig retrieves the SDK configuration for a B2B project environment
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Successful response
Response type
Show child attributes