User Management

Overview

User management APIs in Akto allow you to manage access control and team membership within your organization. You can use these APIs to retrieve team details, invite new users, and remove existing users.

Available Endpoints

Method
Endpoint
Description

POST

/api/getTeamData

Retrieves information about the current team, including user roles and details

POST

/api/inviteUsers

Sends invitations to new users to join your Akto workspace

POST

/api/removeUser

Removes an existing user from your Akto workspace

POST request for endpoint /api/getTeamData

post
Header parameters
content-typestringOptionalExample: application/json
X-API-KEYstringOptionalExample: YOUR_API_KEY from Settings > Integrations > Akto APIs
Body
objectOptional

No request parameters required

Responses
chevron-right
200

Successfully fetched team data

application/json

List of users and pending invitations

idinteger · int32OptionalExample: 1001
loginstringOptionalExample: [email protected]
namestringOptionalExample: John Doe
rolestringOptional

User role in the account

Example: ADMIN
post
/api/getTeamData
200

Successfully fetched team data

POST request for endpoint /api/inviteUsers

post
Header parameters
content-typestringOptionalExample: application/json
X-API-KEYstringOptionalExample: YOUR_API_KEY from Settings > Integrations > Akto APIs
Body

User invitation request with email and role

inviteeEmailstringRequired

Email address of the user to invite. Must be valid email format and belong to same organization domain

Example: [email protected]
inviteeNamestringOptional

Name of the user being invited

Example: there
inviteeRolestringRequired

Role to assign to invited user. Valid values: ADMIN, MEMBER, DEVELOPER, VIEWER, or custom role names. Must be within current user's role hierarchy

Example: DEVELOPER
websiteHostNamestringOptional

Website host name for the invitation link

Example: https://app.akto.io
Responses
chevron-right
200

Invitation sent successfully

application/json

Successful invitation response containing the invite link and role

finalInviteCodestringOptional

Complete invitation link to be sent to the invitee. Contains JWT code valid for 1 week

Example: https://app.akto.io/addUserToAccount?signupInvitationCode=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...&[email protected]
inviteeRolestringOptional

Role assigned to the invited user

Example: DEVELOPER
post
/api/inviteUsers

POST request for endpoint /api/removeUser

post
Header parameters
content-typestringOptionalExample: application/json
X-API-KEYstringOptionalExample: YOUR_API_KEY from Settings > Integrations > Akto APIs
Body

User removal request with email

emailstringRequired

Email address of the user to remove from the account

Example: [email protected]
Responses
chevron-right
200

User removed or invitation deleted successfully

application/json

Successful removal response

emailstringOptional
idinteger · int32OptionalExample: 0
passwordResetTokennullOptional
roleHierarchystringOptionalExample: SUCCESS
userRoleHierarchystring[]OptionalExample: ["ADMIN","MEMBER","DEVELOPER","GUEST"]
usersnullOptional
post
/api/removeUser

Last updated