Manage Users with APIs
Create your own user management system with APIs
Users
- Create user - All you need is an email address and to select an authentication method
- Get user - Use a unique identifier or an email address to retrieve information about a user
- Change a user’s password - Update a user’s password using their email, old password, and new password
- Update user - Use a unique identifier or an email address to update a user’s authentication requirements
- Delete a user - Delete a user with just an email address
Example - Create a user
Use the user/create endpoint to make an API call and create a user. The only required body parameters are:
emailauthenticatormethod
POST/v1/lookup
cURL
curl -sSLX POST 'https://authn.'"$PANGEA_DOMAIN"'/v2/user/create' \
-H 'Authorization: Bearer '"$PANGEA_AUTHN_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"email":"joe.user@email.com","profile":{"first_name":"Joe","last_name":"User"}}'
Invites
tip:
Invites expire 48 hours after their creation.
- Invite a user - Invite a user to your application
- List invites - Get a list of invites and their details
- Cancel an invite - Cancel a user’s invitation
Example - Invite a user
Use the user/invite endpoint to make an API call and invite a user. The required body parameters are:
inviteremailcallbackstate
POST/v1/lookup
cURL
curl -sSLX POST 'https://authn.'"$PANGEA_DOMAIN"'/v2/user/invite' \
-H 'Authorization: Bearer '"$PANGEA_AUTHN_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"inviter":"admin@email.com","email":"joe.user@email.com","callback":"https://www.myserver.com/callback","state":"pcb_zurr3l...k4zgm7"}'
tip:
To learn about these endpoints, check out the AuthN API Reference.
Was this article helpful?