AgLeader Credentials
Form of an AgLeader Credentials resource:
All HTTP methods should be prepended by this service's endpoint:
See below the REST resources and their endpoints available in this service.
Endpoints
Description | Endpoints |
---|---|
Get the AgLeader credentials | GET /users/{leafUserId}/ag-leader-credentials |
Create a AgLeader credentials | POST /users/{leafUserId}/ag-leader-credentials |
Delete AgLeader credentials | DELETE /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. If during background processing we detect that this credential is no longer valid, the value of the status will be changed.
Request examples
- cURL
- Python
- JavaScript
Response
Create a AgLeader credentials
 POST /users/{leafUserId}/ag-leader-credentials
Create a AgLeader credentials for the Leaf User.
Request body
Request examples
- cURL
- Python
- JavaScript
Response
A AgLeader Credentials with status.
Delete AgLeader credentials
 DELETE /users/{leafUserId}/ag-leader-credentials
Delete Leaf User's AgLeader credentials.
Request examples
- cURL
- JavaScript
- Python
Troubleshooting
With these endpoints, you can do some troubleshooting to see your credential's health.
Events
 GET /users/{leafUserId}/ag-leader-credentials/events
Get the logs of the provider credential based on the LeafUserId sent.
Request examples
- cURL
- Python
- JavaScript
Response
warning
The logs are available only for 30 days and once the credential is deleted or disassociated with the Leaf User, the logs are no longer available.