Managed Auth
Create auth connection
Creates an auth connection for a profile and domain combination. If the provided profile_name does not exist, it is created automatically. Returns 409 Conflict if an auth connection already exists for the given profile and domain.
post/auth/connections
Request body
Example request
{
"domain": "netflix.com",
"profile_name": "user-123",
"login_url": "https://netflix.com/login",
"credential": {
"name": "my-netflix-creds",
"provider": "my-1p",
"path": "Personal/Netflix",
"auto": true
},
"allowed_domains": [
"login.netflix.com",
"auth.netflix.com"
],
"health_check_interval": 3600,
"health_checks": true,
"auto_reauth": true,
"save_credentials": true
}Response
Auth connection created
Example response
{
"id": "ma_abc123xyz",
"profile_name": "my-netflix-profile",
"domain": "netflix.com",
"status": "AUTHENTICATED",
"last_auth_check_at": "2025-01-15T10:30:00Z",
"last_auth_at": "2025-01-15T10:30:00Z",
"credential": {
"name": "my-netflix-creds",
"provider": "my-1p",
"path": "Personal/Netflix",
"auto": true
},
"can_reauth": true,
"can_reauth_reason": "has_credential",
"allowed_domains": [
"login.netflix.com",
"auth.netflix.com"
],
"login_url": "https://example.com/login",
"post_login_url": "https://www.netflix.com/browse",
"flow_status": "IN_PROGRESS",
"flow_step": "AWAITING_INPUT",
"flow_type": "LOGIN",
"flow_expires_at": "2025-11-05T20:00:00Z",
"fields": [
{
"id": "field_email",
"ref": "email",
"type": "identifier",
"label": "Email address",
"observed_selector": "input[name=\"identifier\"]"
}
],
"choices": [
{
"id": "google",
"type": "sso_provider",
"label": "Google",
"observed_selector": "button:has-text(\"Google\")"
}
],
"discovered_fields": [
{
"name": "email",
"type": "email",
"label": "Email address",
"placeholder": "you@example.com",
"required": true,
"selector": "input#email",
"linked_mfa_type": "sms",
"hint": "Enter the phone ending in (***) ***-**92"
}
],
"mfa_options": [
{
"type": "sms",
"label": "Text me a code",
"target": "***-***-5678",
"description": "We'll send a 6-digit code to your phone"
}
],
"sign_in_options": [
{
"id": "work-account",
"label": "Work Account (user@company.com)",
"description": "user@company.com"
}
],
"pending_sso_buttons": [
{
"selector": "xpath=//button[contains(text(), 'Continue with Google')]",
"provider": "google",
"label": "Continue with Google"
}
],
"external_action_message": "Tap 'Yes' on the Google prompt on your phone",
"sso_provider": "google",
"error_message": "Invalid password",
"hosted_url": "https://auth.kernel.com/login/abc123xyz",
"live_view_url": "https://live.kernel.com/abc123xyz",
"browser_session_id": "bs_abc123xyz",
"health_check_interval": 3600,
"health_checks": true,
"auto_reauth": true,
"save_credentials": true
}