AgLeader Credentials

Form of an AgLeader Credentials resource:

{
"accessToken": "str",
"refreshToken": "str",
"privateKey": "str",
"publicKey": "str",
"status": "str"
}

Endpoints

DescriptionEndpoints
Get the AgLeader credentialsGET /users/{leafUserId}/ag-leader-credentials
Create a AgLeader credentialsPOST /users/{leafUserId}/ag-leader-credentials
Delete AgLeader credentialsDELETE /users/{leafUserId}/ag-leader-credentials

AgLeader Credentials Endpoints

Get the AgLeader credentials

 GET /users/{leafUserId}/ag-leader-credentials

Get the AgLeader 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}/ag-leader-credentials'

Response

A AgLeader credentials resources as a JSON.

Create a AgLeader credentials

 POST /users/{leafUserId}/ag-leader-credentials

Create a AgLeader credentials for the Leaf User.

Request examples

A AgLeader credentials.

{
"accessToken": "str",
"refreshToken": "str",
"publicKey": "str",
"privateKey": "str"
}
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}/ag-leader-credentials'

Response

A AgLeader Credentials with status.

Delete AgLeader credentials

 DELETE /users/{leafUserId}/ag-leader-credentials

Delete Leaf User's AgLeader credentials.

Request examples

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