Skip to main content
You're reading Identity & Access Management 7.2.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

User credential management API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:9443/t/carbon.super/api/server/v1

The WSO2 Identity Server - User Credential Management Rest API (version 1.0).

Download the OpenAPI definition (YAML)

Security schemes​

BasicAuth: HTTP basic

OAuth2: oauth2

authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize

2 scopes
ScopeDescription
readinternal_user_credential_mgt_view
deleteinternal_user_credential_mgt_delete

List User Credentials​

List end-user enrolled credentials​

GET /users/{user-id}/credentials

Retrieves a list of all user-enrolled credentials. This API currently supports passkey and push authentication credentials.

Scope (Permission) required: internal_user_credential_mgt_view

Parameters

NameInTypeRequiredDescription
user-idpathstringYes

The unique identifier of the user.

Responses

CodeDescriptionSchema
200

OK

array of Credential
400

Bad Request.

Error
401

Unauthorized.

Error
403

Forbidden.

Error
404

User Not Found.

Error
500

Internal Server Error.

Error

Delete User Credential​

Delete a user-enrolled credential.​

DEL /users/{user-id}/credentials/{type}/{credential-id}

Deletes a specific enrolled credential for a user.

Scope (Permission) required: internal_user_credential_mgt_delete

Parameters

NameInTypeRequiredDescription
user-idpathstringYes

The unique identifier of the user.

typepathstringYes

The type of the credential.

Allowed values: passkey, push-auth

credential-idpathstringYes

The unique identifier of the device to be deleted.

Responses

CodeDescriptionSchema
204

User Credential Deleted.

400

Bad Request.

Error
401

Unauthorized.

Error
403

Forbidden.

Error
500

Internal Server Error.

Error

Schemas​

Credential​

Type: object

3 properties
NameTypeRequiredDescription
credentialIdstring

The unique identifier for the credential.

displayNamestring

A user-friendly name for the credential.

typestring

The type of the credential.

Allowed values: passkey, push-auth

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestring

Some error description.

messagestring

Some error message.

descriptionstring

A more detailed explanation of the error.

traceIdstring

The unique identifier for the request.

Was this page helpful?