Sentera Credentials

Form of an Sentera Credentials resource:

{
"username": "str",
"password": "str",
"organizationName": "str"
}

Endpoints

DescriptionEndpoints
Get the Sentera credentialsGET /users/{leafUserId}/sentera-credentials
Create a Sentera credentialsPOST /users/{leafUserId}/sentera-credentials
Delete Sentera credentialsDELETE /users/{leafUserId}/sentera-credentials

Sentera Credentials Endpoints

Get the Sentera credentials

 GET /users/{leafUserId}/sentera-credentials

Get the Sentera credentials of the Leaf User based on its id and returns a JSON with the credentials.

Request examples

curl -X GET \
-H 'Authorization: Bearer YOUR_TOKEN' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/sentera-credentials'

Response

A Sentera credentials resources as a JSON.

Create a Sentera credentials

 POST /users/{leafUserId}/sentera-credentials

Create a Sentera credentials for the Leaf User.

Request examples

A Sentera credentials.

{
"username":"Username",
"password":"Password",
"organizationName":"NameOfTheOrganizationInTheFieldAgent"
}
curl -X POST \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{ "accessToken": "str","refreshToken": "str","privateKey":"str", "publicKey":"str"}' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/sentera-credentials'

Response

A Sentera Credentials with status.

Delete Sentera credentials

 DELETE /users/{leafUserId}/sentera-credentials

Delete Leaf User's Sentera credentials.

Request examples

curl -X DELETE \
-H 'Authorization: Bearer YOUR_TOKEN' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/sentera-credentials'