With the Learn365 API, you can get a list of pending invitations that an admin has sent to a learner asking them to activate their Flow365 account. You can also see this information in the Learn365 Admin Center > Users.
In this article, we describe the steps you should follow to get a list of pending invitations via the API.
NOTE
The list of pending invitations contains only invitations with the Invite Sent status. These are the invitations that an admin has already sent but learners haven’t accepted yet. Once the learner accepts the invitation and registers their account, the invitation gets the Accepted status and will no longer be displayed in the list of pending invitations.
To get a list of pending invitations via API:
1. Go to https://api.365.systems/ and make sure you are authorized with the relevant API key.
2. In the Invitations section, select the GET /services/users/Invitations endpoint and select Try it out in the top right-hand corner.
3. Select Execute to run the request.
4. Go to the Response block to check the results:
- 200 code with a list of pending invitations in its body indicates a successful response.
- 200 code with an empty body means there are no invitations to display.
- In case of an error, the response body contains the error object with the code and message keys explaining the issue.
Comments
Article is closed for comments.