Raven Credentials

Form of a Raven Credentials resource:

{
"accessToken": "str",
"refreshToken": "str",
"clientId": "str",
"clientSecret": "str",
"status": "str"
}

Endpoints

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

Raven Credentials Endpoints

Get the Raven credentials

 GET /users/{leafUserId}/raven-credentials
Get the Raven credentials of the Leaf User based on its id and returns a JSON with the credentials.

Response

A Raven credentials resource as a JSON.

Request examples

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

Create a Raven credentials

 POST /users/{leafUserId}/raven-credentials

Create a Raven credentials for the Leaf User.

Request examples

A Raven credentials.

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

Response

A Raven Credentials with status.

Delete Raven credentials

 DELETE /users/{leafUserId}/raven-credentials

Delete Leaf User's Raven credentials.

Request examples

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