auth
Version 0.1.028 opérations
Log in with email and password (and TOTP when enabled); sets the session cookie
POST/auth/login
401 invalid_credentials, 403 totp_required when 2FA is on and the code is missing or wrong, 429 too_many_attempts.
Paramètres
Aucun paramètre.
Corps de la requête application/json
emailstringobligatoirepasswordstring (password)obligatoiretotpstringSix digit TOTP code, required when 2FA is enabled
Réponses
200
userMeUserDtoobligatoireidstring (uuid)obligatoireemailstringobligatoirefirstNamestringobligatoirelastNamestringobligatoirephonestring | nullobligatoireplatformRolestringobligatoire- enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
totpEnabledbooleanobligatoireemailVerifiedbooleanobligatoireONB-1: the e-mail address was proven by a code or a link
phoneVerifiedbooleanobligatoireONB-1: the phone number was proven by an SMS code
passkeyCountnumberobligatoireNumber of passkeys of the account (lot 1.2b)
sessionSessionInfoDtoobligatoireauthMethodstringobligatoire- enum: "password", "password_totp", "passkey", "google", "apple", "facebook", "social_totp"
strongbooleanobligatoireOpened or confirmed by a passkey or a TOTP code
membershipsMembershipSummaryDto[]obligatoireorganisationIdstring (uuid)obligatoireorganisationNamestringobligatoireroleIdstring (uuid)obligatoirerolestring | nullobligatoirePredefined role key, null for a custom role
roleNamestringobligatoireisOwnerbooleanobligatoirepermissionsstring[]obligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoirePayment account ids when scope is "accounts"
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/login" \
-H "Content-Type: application/json" \
-d '{
"email": "demo@konnect.test",
"password": "password",
"totp": "totp"
}'Exemple : corps de la requête
{
"email": "demo@konnect.test",
"password": "password",
"totp": "totp"
}Exemple : 200
{
"user": {
"id": "id",
"email": "buyer@example.com",
"firstName": "Salma",
"lastName": "Example",
"phone": "phone",
"platformRole": "merchant",
"totpEnabled": true,
"emailVerified": true,
"phoneVerified": true,
"passkeyCount": 1
},
"session": {
"authMethod": "password",
"strong": true
},
"memberships": [
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"organisationName": "organisationName",
"roleId": "roleId",
"role": "role",
"roleName": "roleName",
"isOwner": true,
"permissions": [
"payments.view"
],
"scope": "all",
"accountIds": [
"string"
]
}
]
}End the current session and clear the cookie
POST/auth/logoutClé API
Paramètres
Aucun paramètre.
Réponses
204
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/logout" \
-H "Authorization: Bearer $KONNECT_API_KEY"Current user and memberships with role, permissions and scope
GET/auth/meClé API
Paramètres
Aucun paramètre.
Réponses
200
userMeUserDtoobligatoireidstring (uuid)obligatoireemailstringobligatoirefirstNamestringobligatoirelastNamestringobligatoirephonestring | nullobligatoireplatformRolestringobligatoire- enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
totpEnabledbooleanobligatoireemailVerifiedbooleanobligatoireONB-1: the e-mail address was proven by a code or a link
phoneVerifiedbooleanobligatoireONB-1: the phone number was proven by an SMS code
passkeyCountnumberobligatoireNumber of passkeys of the account (lot 1.2b)
sessionSessionInfoDtoobligatoireauthMethodstringobligatoire- enum: "password", "password_totp", "passkey", "google", "apple", "facebook", "social_totp"
strongbooleanobligatoireOpened or confirmed by a passkey or a TOTP code
membershipsMembershipSummaryDto[]obligatoireorganisationIdstring (uuid)obligatoireorganisationNamestringobligatoireroleIdstring (uuid)obligatoirerolestring | nullobligatoirePredefined role key, null for a custom role
roleNamestringobligatoireisOwnerbooleanobligatoirepermissionsstring[]obligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoirePayment account ids when scope is "accounts"
Exemples de code
curl -X GET "$KONNECT_API_URL/auth/me" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
{
"user": {
"id": "id",
"email": "buyer@example.com",
"firstName": "Salma",
"lastName": "Example",
"phone": "phone",
"platformRole": "merchant",
"totpEnabled": true,
"emailVerified": true,
"phoneVerified": true,
"passkeyCount": 1
},
"session": {
"authMethod": "password",
"strong": true
},
"memberships": [
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"organisationName": "organisationName",
"roleId": "roleId",
"role": "role",
"roleName": "roleName",
"isOwner": true,
"permissions": [
"payments.view"
],
"scope": "all",
"accountIds": [
"string"
]
}
]
}Re-authenticate with the password or a TOTP code; valid for 10 minutes
POST/auth/reauthClé API
Paramètres
Aucun paramètre.
Corps de la requête application/json
passwordstring (password)totpstringSix digit TOTP code
Réponses
200
reauthenticatedUntilstring (date-time)obligatoire
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/reauth" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"password": "password",
"totp": "totp"
}'Exemple : corps de la requête
{
"password": "password",
"totp": "totp"
}Exemple : 200
{
"reauthenticatedUntil": "2026-10-01T09:30:00.000Z"
}Send a one-time password reset link (always 202, whether the email exists or not)
POST/auth/password/forgot
Paramètres
Aucun paramètre.
Corps de la requête application/json
emailstringobligatoire
Réponses
202
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/password/forgot" \
-H "Content-Type: application/json" \
-d '{
"email": "demo@konnect.test"
}'Exemple : corps de la requête
{
"email": "demo@konnect.test"
}Set a new password with a reset token; ends every session
POST/auth/password/reset
Paramètres
Aucun paramètre.
Corps de la requête application/json
tokenstringobligatoirepasswordstring (password)obligatoire- minLength: 10
Réponses
204
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/password/reset" \
-H "Content-Type: application/json" \
-d '{
"token": "token",
"password": "password"
}'Exemple : corps de la requête
{
"token": "token",
"password": "password"
}Start TOTP enrolment (requires re-authentication)
POST/auth/totp/setupClé API
Paramètres
Aucun paramètre.
Réponses
200
secretstringobligatoireBase32 secret, shown once for manual entry
otpauthUrlstringobligatoireotpauth:// URL for a QR code
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/totp/setup" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
{
"secret": "secret",
"otpauthUrl": "otpauthUrl"
}Confirm TOTP enrolment with a first code
POST/auth/totp/enableClé API
Paramètres
Aucun paramètre.
Corps de la requête application/json
codestringobligatoireSix digit TOTP code
Réponses
204
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/totp/enable" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "code"
}'Exemple : corps de la requête
{
"code": "code"
}Turn TOTP off (requires re-authentication and a current code)
POST/auth/totp/disableClé API
Paramètres
Aucun paramètre.
Corps de la requête application/json
codestringobligatoireSix digit TOTP code
Réponses
204
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/totp/disable" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "code"
}'Exemple : corps de la requête
{
"code": "code"
}Identity of the API key used for the request
GET/auth/api-keyClé API
Paramètres
Aucun paramètre.
Réponses
200
organisationIdstring (uuid)obligatoireapiKeyIdstring (uuid)obligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/auth/api-key" \
-H "x-api-key: $KONNECT_API_KEY"Exemple : 200
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"apiKeyId": "apiKeyId"
}Mobile app: log in with email and password (and TOTP when enabled)
POST/auth/mobile/login
401 invalid_credentials, 403 totp_required when 2FA is on and the code is missing or wrong, 429 too_many_attempts.
Paramètres
Aucun paramètre.
Corps de la requête application/json
deviceNamestring- maxLength: 100
emailstringobligatoirepasswordstring (password)obligatoiretotpstringSix digit TOTP code, required when 2FA is enabled
Réponses
200
accessTokenstringobligatoireSend as
Authorization: Bearer <accessToken>; lives one houraccessTokenExpiresAtstring (date-time)obligatoirerefreshTokenstringobligatoireSingle use: each refresh answers the next one
refreshTokenExpiresAtstring (date-time)obligatoiremeMeDtoobligatoireuserMeUserDtoobligatoireidstring (uuid)obligatoireemailstringobligatoirefirstNamestringobligatoirelastNamestringobligatoirephonestring | nullobligatoireplatformRolestringobligatoire- enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
totpEnabledbooleanobligatoireemailVerifiedbooleanobligatoireONB-1: the e-mail address was proven by a code or a link
phoneVerifiedbooleanobligatoireONB-1: the phone number was proven by an SMS code
passkeyCountnumberobligatoireNumber of passkeys of the account (lot 1.2b)
sessionSessionInfoDtoobligatoireauthMethodstringobligatoire- enum: "password", "password_totp", "passkey", "google", "apple", "facebook", "social_totp"
strongbooleanobligatoireOpened or confirmed by a passkey or a TOTP code
membershipsMembershipSummaryDto[]obligatoireorganisationIdstring (uuid)obligatoireorganisationNamestringobligatoireroleIdstring (uuid)obligatoirerolestring | nullobligatoirePredefined role key, null for a custom role
roleNamestringobligatoireisOwnerbooleanobligatoirepermissionsstring[]obligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoirePayment account ids when scope is "accounts"
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/mobile/login" \
-H "Content-Type: application/json" \
-d '{
"deviceName": "iPhone de Nour",
"email": "demo@konnect.test",
"password": "password",
"totp": "totp"
}'Exemple : corps de la requête
{
"deviceName": "iPhone de Nour",
"email": "demo@konnect.test",
"password": "password",
"totp": "totp"
}Exemple : 200
{
"accessToken": "accessToken",
"accessTokenExpiresAt": "2026-10-01T09:30:00.000Z",
"refreshToken": "refreshToken",
"refreshTokenExpiresAt": "2026-10-01T09:30:00.000Z",
"me": {
"user": {
"id": "id",
"email": "buyer@example.com",
"firstName": "Salma",
"lastName": "Example",
"phone": "phone",
"platformRole": "merchant",
"totpEnabled": true,
"emailVerified": true,
"phoneVerified": true,
"passkeyCount": 1
},
"session": {
"authMethod": "password",
"strong": true
},
"memberships": [
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"organisationName": "organisationName",
"roleId": "roleId",
"role": "role",
"roleName": "roleName",
"isOwner": true,
"permissions": [
"payments.view"
],
"scope": "all",
"accountIds": [
"string"
]
}
]
}
}Mobile app: trade the refresh token for a new access token and the next refresh token
POST/auth/mobile/refresh
401 invalid_refresh_token (unknown, expired or revoked, or the user is no longer active), 401 refresh_token_reused (a used token presented again: every token of its family is revoked).
Paramètres
Aucun paramètre.
Corps de la requête application/json
refreshTokenstringobligatoire
Réponses
200
accessTokenstringobligatoireSend as
Authorization: Bearer <accessToken>; lives one houraccessTokenExpiresAtstring (date-time)obligatoirerefreshTokenstringobligatoireSingle use: each refresh answers the next one
refreshTokenExpiresAtstring (date-time)obligatoiremeMeDtoobligatoireuserMeUserDtoobligatoireidstring (uuid)obligatoireemailstringobligatoirefirstNamestringobligatoirelastNamestringobligatoirephonestring | nullobligatoireplatformRolestringobligatoire- enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
totpEnabledbooleanobligatoireemailVerifiedbooleanobligatoireONB-1: the e-mail address was proven by a code or a link
phoneVerifiedbooleanobligatoireONB-1: the phone number was proven by an SMS code
passkeyCountnumberobligatoireNumber of passkeys of the account (lot 1.2b)
sessionSessionInfoDtoobligatoireauthMethodstringobligatoire- enum: "password", "password_totp", "passkey", "google", "apple", "facebook", "social_totp"
strongbooleanobligatoireOpened or confirmed by a passkey or a TOTP code
membershipsMembershipSummaryDto[]obligatoireorganisationIdstring (uuid)obligatoireorganisationNamestringobligatoireroleIdstring (uuid)obligatoirerolestring | nullobligatoirePredefined role key, null for a custom role
roleNamestringobligatoireisOwnerbooleanobligatoirepermissionsstring[]obligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoirePayment account ids when scope is "accounts"
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/mobile/refresh" \
-H "Content-Type: application/json" \
-d '{
"refreshToken": "refreshToken"
}'Exemple : corps de la requête
{
"refreshToken": "refreshToken"
}Exemple : 200
{
"accessToken": "accessToken",
"accessTokenExpiresAt": "2026-10-01T09:30:00.000Z",
"refreshToken": "refreshToken",
"refreshTokenExpiresAt": "2026-10-01T09:30:00.000Z",
"me": {
"user": {
"id": "id",
"email": "buyer@example.com",
"firstName": "Salma",
"lastName": "Example",
"phone": "phone",
"platformRole": "merchant",
"totpEnabled": true,
"emailVerified": true,
"phoneVerified": true,
"passkeyCount": 1
},
"session": {
"authMethod": "password",
"strong": true
},
"memberships": [
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"organisationName": "organisationName",
"roleId": "roleId",
"role": "role",
"roleName": "roleName",
"isOwner": true,
"permissions": [
"payments.view"
],
"scope": "all",
"accountIds": [
"string"
]
}
]
}
}Mobile app: end the access token and revoke its refresh tokens
POST/auth/mobile/logoutClé API
Paramètres
Aucun paramètre.
Corps de la requête application/json
refreshTokenstringRevokes this token family too
Réponses
204
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/mobile/logout" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"refreshToken": "refreshToken"
}'Exemple : corps de la requête
{
"refreshToken": "refreshToken"
}Passkeys of the signed-in user
GET/auth/passkeysClé API
Paramètres
Aucun paramètre.
Réponses
200
idstring (uuid)obligatoirenamestringobligatoireauthenticatorstring | nullobligatoireProvider of the passkey when its AAGUID is known (iCloud Keychain, Windows Hello)
deviceTypestringobligatoiremultiDevice: synced across the devices of the user
- enum: "singleDevice", "multiDevice"
backedUpbooleanobligatoiretransportsstring[]obligatoirecreatedAtstring (date-time)obligatoirelastUsedAtstring (date-time) | nullobligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/auth/passkeys" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
[
{
"id": "id",
"name": "name",
"authenticator": "authenticator",
"deviceType": "singleDevice",
"backedUp": true,
"transports": [
"string"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"lastUsedAt": "2026-10-01T09:30:00.000Z"
}
]Start adding a passkey (requires re-authentication)
POST/auth/passkeys/registration/optionsClé API
409 too_many_passkeys, 503 passkeys_misconfigured.
Paramètres
Aucun paramètre.
Réponses
200
challengeIdstring (uuid)obligatoireSend it back with the response; single use, 5 minutes
optionsobjectobligatoireOptions for navigator.credentials (JSON form), to pass to @simplewebauthn/browser
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/passkeys/registration/options" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
{
"challengeId": "challengeId",
"options": {}
}Finish adding a passkey; e-mails the user (requires re-authentication)
POST/auth/passkeys/registration/verifyClé API
400 invalid_challenge or passkey_verification_failed, 401 unknown_passkey or passkey_counter_regression, 503 passkeys_misconfigured. 409 passkey_already_registered.
Paramètres
Aucun paramètre.
Corps de la requête application/json
challengeIdstring (uuid)obligatoireresponseobjectobligatoireThe credential returned by the browser (JSON form)
namestring- maxLength: 64
Réponses
201
idstring (uuid)obligatoirenamestringobligatoireauthenticatorstring | nullobligatoireProvider of the passkey when its AAGUID is known (iCloud Keychain, Windows Hello)
deviceTypestringobligatoiremultiDevice: synced across the devices of the user
- enum: "singleDevice", "multiDevice"
backedUpbooleanobligatoiretransportsstring[]obligatoirecreatedAtstring (date-time)obligatoirelastUsedAtstring (date-time) | nullobligatoire
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/passkeys/registration/verify" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"challengeId": "challengeId",
"response": {},
"name": "MacBook de Leila"
}'Exemple : corps de la requête
{
"challengeId": "challengeId",
"response": {},
"name": "MacBook de Leila"
}Exemple : 201
{
"id": "id",
"name": "name",
"authenticator": "authenticator",
"deviceType": "singleDevice",
"backedUp": true,
"transports": [
"string"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"lastUsedAt": "2026-10-01T09:30:00.000Z"
}Start signing in with a passkey (discoverable credentials, no e-mail needed)
POST/auth/passkeys/login/options
429 too_many_attempts, 503 passkeys_misconfigured.
Paramètres
Aucun paramètre.
Réponses
200
challengeIdstring (uuid)obligatoireSend it back with the response; single use, 5 minutes
optionsobjectobligatoireOptions for navigator.credentials (JSON form), to pass to @simplewebauthn/browser
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/passkeys/login/options"Exemple : 200
{
"challengeId": "challengeId",
"options": {}
}Sign in with a passkey; sets the session cookie (no TOTP step: strong sign-in)
POST/auth/passkeys/login/verify
400 invalid_challenge or passkey_verification_failed, 401 unknown_passkey or passkey_counter_regression, 503 passkeys_misconfigured. 429 too_many_attempts.
Paramètres
Aucun paramètre.
Corps de la requête application/json
challengeIdstring (uuid)obligatoireresponseobjectobligatoireThe credential returned by the browser (JSON form)
Réponses
200
userMeUserDtoobligatoireidstring (uuid)obligatoireemailstringobligatoirefirstNamestringobligatoirelastNamestringobligatoirephonestring | nullobligatoireplatformRolestringobligatoire- enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
totpEnabledbooleanobligatoireemailVerifiedbooleanobligatoireONB-1: the e-mail address was proven by a code or a link
phoneVerifiedbooleanobligatoireONB-1: the phone number was proven by an SMS code
passkeyCountnumberobligatoireNumber of passkeys of the account (lot 1.2b)
sessionSessionInfoDtoobligatoireauthMethodstringobligatoire- enum: "password", "password_totp", "passkey", "google", "apple", "facebook", "social_totp"
strongbooleanobligatoireOpened or confirmed by a passkey or a TOTP code
membershipsMembershipSummaryDto[]obligatoireorganisationIdstring (uuid)obligatoireorganisationNamestringobligatoireroleIdstring (uuid)obligatoirerolestring | nullobligatoirePredefined role key, null for a custom role
roleNamestringobligatoireisOwnerbooleanobligatoirepermissionsstring[]obligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoirePayment account ids when scope is "accounts"
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/passkeys/login/verify" \
-H "Content-Type: application/json" \
-d '{
"challengeId": "challengeId",
"response": {}
}'Exemple : corps de la requête
{
"challengeId": "challengeId",
"response": {}
}Exemple : 200
{
"user": {
"id": "id",
"email": "buyer@example.com",
"firstName": "Salma",
"lastName": "Example",
"phone": "phone",
"platformRole": "merchant",
"totpEnabled": true,
"emailVerified": true,
"phoneVerified": true,
"passkeyCount": 1
},
"session": {
"authMethod": "password",
"strong": true
},
"memberships": [
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"organisationName": "organisationName",
"roleId": "roleId",
"role": "role",
"roleName": "roleName",
"isOwner": true,
"permissions": [
"payments.view"
],
"scope": "all",
"accountIds": [
"string"
]
}
]
}Start a re-authentication with a passkey
POST/auth/passkeys/reauth/optionsClé API
409 no_passkey, 503 passkeys_misconfigured.
Paramètres
Aucun paramètre.
Réponses
200
challengeIdstring (uuid)obligatoireSend it back with the response; single use, 5 minutes
optionsobjectobligatoireOptions for navigator.credentials (JSON form), to pass to @simplewebauthn/browser
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/passkeys/reauth/options" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
{
"challengeId": "challengeId",
"options": {}
}Re-authenticate with a passkey; valid for 10 minutes, makes the session strong
POST/auth/passkeys/reauth/verifyClé API
400 invalid_challenge or passkey_verification_failed, 401 unknown_passkey or passkey_counter_regression, 503 passkeys_misconfigured. 429 too_many_attempts.
Paramètres
Aucun paramètre.
Corps de la requête application/json
challengeIdstring (uuid)obligatoireresponseobjectobligatoireThe credential returned by the browser (JSON form)
Réponses
200
reauthenticatedUntilstring (date-time)obligatoire
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/passkeys/reauth/verify" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"challengeId": "challengeId",
"response": {}
}'Exemple : corps de la requête
{
"challengeId": "challengeId",
"response": {}
}Exemple : 200
{
"reauthenticatedUntil": "2026-10-01T09:30:00.000Z"
}Rename a passkey
PATCH/auth/passkeys/{passkeyId}Clé API
404 passkey_not_found.
Paramètres
passkeyIdstringpathobligatoire
Corps de la requête application/json
namestringobligatoire- minLength: 1
- maxLength: 64
Réponses
200
idstring (uuid)obligatoirenamestringobligatoireauthenticatorstring | nullobligatoireProvider of the passkey when its AAGUID is known (iCloud Keychain, Windows Hello)
deviceTypestringobligatoiremultiDevice: synced across the devices of the user
- enum: "singleDevice", "multiDevice"
backedUpbooleanobligatoiretransportsstring[]obligatoirecreatedAtstring (date-time)obligatoirelastUsedAtstring (date-time) | nullobligatoire
Exemples de code
curl -X PATCH "$KONNECT_API_URL/auth/passkeys/passkeyId" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Téléphone"
}'Exemple : corps de la requête
{
"name": "Téléphone"
}Exemple : 200
{
"id": "id",
"name": "name",
"authenticator": "authenticator",
"deviceType": "singleDevice",
"backedUp": true,
"transports": [
"string"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"lastUsedAt": "2026-10-01T09:30:00.000Z"
}Delete a passkey (requires re-authentication)
DELETE/auth/passkeys/{passkeyId}Clé API
404 passkey_not_found, 409 last_strong_factor.
Paramètres
passkeyIdstringpathobligatoire
Réponses
204
Exemples de code
curl -X DELETE "$KONNECT_API_URL/auth/passkeys/passkeyId" \
-H "Authorization: Bearer $KONNECT_API_KEY"Public sign up settings: open or not, bot check, phone country code
GET/auth/signup/config
Paramètres
Aucun paramètre.
Réponses
200
enabledbooleanobligatoirecaptchaCaptchaConfigDtoobligatoireproviderstringobligatoire- enum: "turnstile", "disabled"
siteKeystring | nullobligatoirePublic Turnstile site key
defaultCountryCodestringobligatoirepasswordMinLengthnumberobligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/auth/signup/config"Exemple : 200
{
"enabled": true,
"captcha": {
"provider": "turnstile",
"siteKey": "siteKey"
},
"defaultCountryCode": "+216",
"passwordMinLength": 1
}Create a merchant account (ONB-1); sets the session cookie and sends both codes
POST/auth/signup
400 validation_failed, invalid_phone, disposable_email; 403 captcha_failed, signup_disabled; 409 email_taken; 429 too_many_attempts; 503 captcha_not_configured.
Paramètres
Aucun paramètre.
Corps de la requête application/json
firstNamestringobligatoirelastNamestringobligatoireemailstringobligatoirephonestringobligatoireAny format; +216 when no country code
passwordstring (password)Absent: the account is opened for a passkey, registered right after (lot 1.2b)
- minLength: 10
captchaTokenstringCloudflare Turnstile token of the sign up form
localestringLanguage of the codes sent
- enum: "fr", "en", "ar"
acquisitionobjectWhere the visitor came from (
ref,utm_source...), journal only
Réponses
201
meMeDtoobligatoireuserMeUserDtoobligatoireidstring (uuid)obligatoireemailstringobligatoirefirstNamestringobligatoirelastNamestringobligatoirephonestring | nullobligatoireplatformRolestringobligatoire- enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
totpEnabledbooleanobligatoireemailVerifiedbooleanobligatoireONB-1: the e-mail address was proven by a code or a link
phoneVerifiedbooleanobligatoireONB-1: the phone number was proven by an SMS code
passkeyCountnumberobligatoireNumber of passkeys of the account (lot 1.2b)
sessionSessionInfoDtoobligatoireauthMethodstringobligatoire- enum: "password", "password_totp", "passkey", "google", "apple", "facebook", "social_totp"
strongbooleanobligatoireOpened or confirmed by a passkey or a TOTP code
membershipsMembershipSummaryDto[]obligatoireorganisationIdstring (uuid)obligatoireorganisationNamestringobligatoireroleIdstring (uuid)obligatoirerolestring | nullobligatoirePredefined role key, null for a custom role
roleNamestringobligatoireisOwnerbooleanobligatoirepermissionsstring[]obligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoirePayment account ids when scope is "accounts"
verificationVerificationStateDtoobligatoireemailChannelStateDtoobligatoireverifiedbooleanobligatoiretargetstring | nullobligatoireMasked address or number
resendAfterSecondsnumberobligatoire
phoneChannelStateDtoobligatoireverifiedbooleanobligatoiretargetstring | nullobligatoireMasked address or number
resendAfterSecondsnumberobligatoire
devCodesanyDevelopment and tests only (IDENTITY_LINKS_EXPOSED), never in production
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/signup" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Amira",
"lastName": "Ben Salah",
"email": "amira@example.tn",
"phone": "+216 20 123 456",
"password": "password",
"captchaToken": "captchaToken",
"locale": "fr",
"acquisition": {}
}'Exemple : corps de la requête
{
"firstName": "Amira",
"lastName": "Ben Salah",
"email": "amira@example.tn",
"phone": "+216 20 123 456",
"password": "password",
"captchaToken": "captchaToken",
"locale": "fr",
"acquisition": {}
}Exemple : 201
{
"me": {
"user": {
"id": "id",
"email": "buyer@example.com",
"firstName": "Salma",
"lastName": "Example",
"phone": "phone",
"platformRole": "merchant",
"totpEnabled": true,
"emailVerified": true,
"phoneVerified": true,
"passkeyCount": 1
},
"session": {
"authMethod": "password",
"strong": true
},
"memberships": [
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"organisationName": "organisationName",
"roleId": "roleId",
"role": "role",
"roleName": "roleName",
"isOwner": true,
"permissions": [
"payments.view"
],
"scope": "all",
"accountIds": [
"string"
]
}
]
},
"verification": {
"email": "buyer@example.com",
"phone": {
"verified": true,
"target": "target",
"resendAfterSeconds": 1
}
},
"devCodes": {
"email": "buyer@example.com",
"phone": "phone"
}
}Whether the e-mail and the phone of the account are verified
GET/auth/verificationsClé API
Paramètres
Aucun paramètre.
Réponses
200
emailChannelStateDtoobligatoireverifiedbooleanobligatoiretargetstring | nullobligatoireMasked address or number
resendAfterSecondsnumberobligatoire
phoneChannelStateDtoobligatoireverifiedbooleanobligatoiretargetstring | nullobligatoireMasked address or number
resendAfterSecondsnumberobligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/auth/verifications" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
{
"email": "buyer@example.com",
"phone": {
"verified": true,
"target": "target",
"resendAfterSeconds": 1
}
}Send a new six digit code; the address or number may be corrected first
POST/auth/verifications/{channel}/sendClé API
400 invalid_phone, disposable_email; 409 already_verified, email_taken; 429 resend_too_soon, too_many_attempts.
Paramètres
channelstringpathobligatoire- enum: "email", "phone"
Corps de la requête application/json
emailstringCorrected e-mail address (email channel, unverified only)
phonestringCorrected phone number (phone channel, unverified only)
localestring- enum: "fr", "en", "ar"
Réponses
202
channelstringobligatoire- enum: "email", "phone"
targetstringobligatoireMasked address or number
expiresAtstring (date-time)obligatoireresendAfterSecondsnumberobligatoiredevCodestringDevelopment and tests only, never in production
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/verifications/email/send" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "buyer@example.com",
"phone": "phone",
"locale": "fr"
}'Exemple : corps de la requête
{
"email": "buyer@example.com",
"phone": "phone",
"locale": "fr"
}Exemple : 202
{
"channel": "email",
"target": "target",
"expiresAt": "2026-10-01T09:30:00.000Z",
"resendAfterSeconds": 1,
"devCode": "devCode"
}Confirm the code received
POST/auth/verifications/{channel}/confirmClé API
400 invalid_code (attemptsLeft), code_expired; 409 already_verified; 429 too_many_attempts.
Paramètres
channelstringpathobligatoire- enum: "email", "phone"
Corps de la requête application/json
codestringobligatoire
Réponses
200
emailChannelStateDtoobligatoireverifiedbooleanobligatoiretargetstring | nullobligatoireMasked address or number
resendAfterSecondsnumberobligatoire
phoneChannelStateDtoobligatoireverifiedbooleanobligatoiretargetstring | nullobligatoireMasked address or number
resendAfterSecondsnumberobligatoire
Exemples de code
curl -X POST "$KONNECT_API_URL/auth/verifications/email/confirm" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "123456"
}'Exemple : corps de la requête
{
"code": "123456"
}Exemple : 200
{
"email": "buyer@example.com",
"phone": {
"verified": true,
"target": "target",
"resendAfterSeconds": 1
}
}