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
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
application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request parameters required
Successfully fetched team data
List of users and pending invitations
1001john.doe@example.comJohn DoeUser role in the account
ADMINPOST /api/getTeamData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Successfully fetched team data
[
{
"id": 1001,
"login": "john.doe@example.com",
"name": "John Doe",
"role": "ADMIN"
}
]application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsUser invitation request with email and role
Email address of the user to invite. Must be valid email format and belong to same organization domain
newuser@example.comName of the user being invited
thereRole to assign to invited user. Valid values: ADMIN, MEMBER, DEVELOPER, VIEWER, or custom role names. Must be within current user's role hierarchy
DEVELOPERWebsite host name for the invitation link
https://app.akto.ioInvitation sent successfully
Successful invitation response containing the invite link and role
Complete invitation link to be sent to the invitee. Contains JWT code valid for 1 week
https://app.akto.io/addUserToAccount?signupInvitationCode=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...&signupEmailId=newuser@example.comRole assigned to the invited user
DEVELOPERInvitation request validation failed
POST /api/inviteUsers HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"inviteeEmail": "newuser@example.com",
"inviteeName": "there",
"inviteeRole": "DEVELOPER",
"websiteHostName": "https://app.akto.io"
}{
"finalInviteCode": "https://app.akto.io/addUserToAccount?signupInvitationCode=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...&signupEmailId=newuser@example.com",
"inviteeRole": "DEVELOPER"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsUser removal request with email
Email address of the user to remove from the account
user.to.remove@example.comUser removed or invitation deleted successfully
Successful removal response
0SUCCESS["ADMIN","MEMBER","DEVELOPER","GUEST"]User removal failed
POST /api/removeUser HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"email": "user.to.remove@example.com"
}{
"email": "",
"id": 0,
"passwordResetToken": null,
"roleHierarchy": "SUCCESS",
"userRoleHierarchy": [
"ADMIN",
"MEMBER",
"DEVELOPER",
"GUEST"
],
"users": null
}Last updated