Managing your users
This page will help you get started with the User resource
One of the most common thing you will want to do is manage your users. Let's look at how to do this with Cakemail Account API.
Create a user
Let's create your first user. For that, you will need to call the Create a user endpoint along with the user's information.
shell
This will return you the user ID which you can use in future API calls.
Update a user
Now, let's say you made a typo inputting the first name while creating the user. You can fix it by calling the Update a user endpoint along with the corrected first name.
shell
Your user's first name is now correct.
Show all users
If you want to list all the users that are part of your account. You can call the Show all users in my account endpoint.
shell
This will return the lists of all users that are in your account.
Suspend a user
Let's say you want to restrict access of a specific user to your account. You can call the Suspend a user endpoint.
shell
The user no longer has access to Cakemail.
Unsuspend a user
Now, you want to restore the access of that user. Simply call the Unsuspend a user endpoint.
shell
The user is active again.
Delete a user
After a while, you need to completely remove the user from your account. You can do so by calling the Delete a user endpoint.
shell
The user is no longer part of your account.
You can explore the full API reference for more advanced features in the Account API.