added
API: New POST /users and DELETE /users/{id} Endpoints
about 3 years ago by Pierre Guilhou
Invite a new team member to your workspace
We're delighted to announce that you can now invite new team members to your Livestorm workspace using the new POST /users
API endpoint. Automating the onboarding of your new colleagues just got simpler. Simply send the email address and the role of the person you want to invite, and let us do the rest!
curl --request POST \
--url https://api.livestorm.co/v1/users \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json' \
--header 'Authorization: YOUR_API_TOKEN' \
--data '
{
"data": {
"type": "users",
"attributes": {
"email": "[email protected]",
"role": "moderator" # can also be "host"
}
}
}
Check how this endpoint works →
Remove a team member from your workspace
Similarly, you can now remove team members from your workspace using the new DELETE /users/{id}
API endpoint. Here's how it works:
curl --request DELETE \
--url https://api.livestorm.co/v1/users/USER_ID \
--header 'Accept: application/json' \
--header 'Authorization: YOUR_API_TOKEN'
Check how this endpoint works →
That's pretty much it for today!