Stara Credentials

Form of a Stara Credentials resource:

{
"status": "str",
"apiKey": "str",
"accessToken": "str",
"accessTokenClient": "str",
"refreshToken": "str"
}

Endpoints

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

Stara Credentials Endpoints

Get the Stara credentials

 GET /users/{leafUserId}/stara-credentials

Get the Stara 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}/stara-credentials'

Response

A Stara credentials resource as a JSON.

Create a Stara credentials

 POST /users/{leafUserId}/stara-credentials
Create a Stara credential for the Leaf User.

Request examples

A Stara credential.

{
"apiKey": "str",
"accessToken": "str",
"accessTokenClient": "str",
"refreshToken": "str"
}
curl -X POST \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"apiKey": "str", "accessToken": "str", "accessTokenClient": "str", "refreshToken": "str"}' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/stara-credentials'

Response

A Stara Credentials with status.

Delete Stara credentials

 DELETE /users/{leafUserId}/stara-credentials
Delete Leaf User's Stara credentials.

Request examples

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