We are launching all new Klivolks 3.0See what is new

Apps

Create and list apps, and read or change their sign-in and multi-factor settings.

An App represents one of your products or integrations registered with KPass — every user, client, and permission in KPass is scoped to an app's owning organisation. Creating an app also creates its default settings and a default membership group automatically.

Every api/v1 call requires an X-Client-Id / X-Api-Secret header pair from one of the app's API clients — see Clients to create one. Replace YOUR_CLIENT_ID/YOUR_API_SECRET with real values.

Create an app — apps created via the API are linked back to your own product record via referenceId (a 24-character hex id) and are automatically marked as managed by your organisation:

curl -X POST https://kpass.one/api/v1/apps \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Api-Secret: YOUR_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Product",
    "appURL": "https://myproduct.example.com",
    "referenceId": "YOUR_PRODUCT_REFERENCE_ID"
  }'

List apps in your organisation:

curl https://kpass.one/api/v1/apps \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Api-Secret: YOUR_API_SECRET"

Get a single app by id:

curl https://kpass.one/api/v1/apps/APP_ID \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Api-Secret: YOUR_API_SECRET"

App settings decide how an app's users sign in and whether they need a second step. Read them with GET /api/v1/apps/APP_ID/settings and change them with PUT. A PUT replaces the whole object, so send everything you want to keep.

  • Settings.AuthMethods: BasicAuth (KPass checks the password), Ldap (the password is checked against your directory over LDAPS or StartTLS), Okta or MicrosoftAD (users sign in at the identity provider; register https://kpass.one/auth/sso/callback as the redirect URI). Users must already exist in KPass.
  • Settings.Mfa: Mode is disabled, optional (asked only once the user has set up an authenticator app or passkey) or strict (everyone is asked; users with no factor set one up when they sign in). Factors lists what the app accepts: totp, passkey and email.
  • Secrets (ClientSecret, Ldap.BindPassword) are stored encrypted and returned as ********. Send ******** or an empty value to keep the stored secret.
curl -X PUT https://kpass.one/api/v1/apps/APP_ID/settings \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Api-Secret: YOUR_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "Settings": {
      "AuthMethods": "Ldap",
      "Ldap": {
        "Host": "ldap.example.com", "Port": 636, "Security": "ldaps",
        "BaseDn": "ou=people,dc=example,dc=com",
        "BindDn": "cn=kpass,ou=service,dc=example,dc=com",
        "BindPassword": "YOUR_BIND_PASSWORD",
        "UsernameAttribute": "uid"
      },
      "Mfa": { "Mode": "strict", "Factors": ["totp", "passkey", "email"] }
    },
    "UserData": { "UserDataSourceType": "internal" },
    "UserTypes": ["customer"]
  }'

Invalid settings (for example strict MFA with no factor, or plain unencrypted LDAP) are rejected with 400.