Skip to main content
POST
/
auth
/
connections
/
{id}
/
submit
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});

const submitFieldsResponse = await client.auth.connections.submit('id', {
  fields: { email: 'user@example.com', password: 'secret' },
});

console.log(submitFieldsResponse.accepted);
{
  "accepted": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Auth connection ID

Body

application/json

Request to submit field values for login

fields
object
required

Map of field name to value

Example:
{
"email": "user@example.com",
"password": "secret"
}
sso_button_selector
string

Optional XPath selector if user chose to click an SSO button instead

Example:

"xpath=//button[contains(text(), 'Continue with Google')]"

mfa_option_id
string

Optional MFA option ID if user selected an MFA method

Example:

"sms"

Response

Submission accepted for processing

Response from submitting field values

accepted
boolean
required

Whether the submission was accepted for processing