Modify Data

User, Auth & Access Control

#
API
Description

1

POST /api/logout

Logs out the current user, clears session and auth cookies, and returns a redirect URL.

2

POST /api/createNewAccount

Creates a new Akto account under the current user and initialises it with default agentic collections and settings.

3

POST /api/goToAccount

Switches the active session context to a different account that the current user has access to.

4

POST /api/updateUsernameAndOrganization

Updates the current user's display name and, if the user is an ADMIN, the organisation name.

5

POST /api/removeInvitation

Removes a pending invitation for the given email address. Only the invitation issuer or an ADMIN can remove invitations.

6

POST /api/resetUserPassword

Generates a password reset token for the specified user. Token is valid and can only be generated once every 2 hours.

7

POST /api/createCustomRole

Creates a new custom role with specified base role, collection access, and feature permissions.

8

POST /api/updateCustomRole

Updates an existing custom role's base role, collection access, and feature permissions.

9

POST /api/deleteCustomRole

Deletes a custom role by name. The role must not be assigned to any users or pending invites.

10

POST /api/makeAdmin

Updates the role of a user within the current account.

11

POST /api/updateUserScopeRoleMapping

Updates the per-product-scope role mapping for a user, enabling fine-grained access control across product areas.

12

POST /api/applyAccessType

Triggers a background job to recalculate Agentic Component access types for all components based on current private CIDR and partner IP rules.

13

POST /api/resetCollectionAccessTypes

Starts a background job to reset access types for all Agentic Components across all collections.

14

POST /api/addApiToken

Creates a new Agentic Request token of the specified utility type for the current user.

15

POST /api/deleteApiToken

Deletes the specified Agentic Request token. Only the owning user can delete their own tokens.

16

POST /api/saveSubscription

Saves a web push notification subscription for the current user.

17

POST /api/provisionSubscription

Creates a billing checkout session via Stigg for the specified plan, and returns the checkout result.

18

POST /api/refreshUsageDataForOrg

Triggers a background job to recalculate and sync usage metrics for all accounts in the current organisation.

POST request for endpoint /api/logout

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

Optional redirect URL after logout.

redirectUrlstringOptional

URL to redirect to after logout.

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

Logout successful. Returns Auth0/SSO logout URL.

application/json
logoutUrlstringOptional

URL to redirect the user for completing logout (Auth0 or SSO).

Example: https://auth.akto.io/v2/logout?returnTo=https%3A%2F%2Fapp.akto.io
post
/api/logout
200

Logout successful. Returns Auth0/SSO logout URL.

POST request for endpoint /api/createNewAccount

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

Display name for the new account.

Example: My New Workspace
Responses
chevron-right
200

Account created successfully. Session is updated with the new account context.

application/json
objectOptional

Empty response body on success; session cookies are updated.

post
/api/createNewAccount
200

Account created successfully. Session is updated with the new account context.

POST request for endpoint /api/goToAccount

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

Numeric ID of the account to switch to.

Example: 1000001
Responses
chevron-right
200

Session switched to the specified account. Session cookies are updated.

application/json
objectOptional

Empty response body on success; session cookies are updated.

post
/api/goToAccount
200

Session switched to the specified account. Session cookies are updated.

POST request for endpoint /api/updateUsernameAndOrganization

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

New display name for the user. Max 24 characters. Allowed: alphanumeric, spaces, hyphens.

Example: Alice Smith
organizationstringOptional

New organisation name (required for ADMIN users). Max 24 characters. Allowed: alphanumeric, spaces, dots, ampersand, hyphens.

Example: Acme Corp
Responses
chevron-right
200

Username (and organisation for admins) updated successfully.

application/json
objectOptional

Empty response body on success.

post
/api/updateUsernameAndOrganization
200

Username (and organisation for admins) updated successfully.

POST request for endpoint /api/removeInvitation

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

Email address of the pending invitation to remove.

Example: [email protected]
Responses
chevron-right
200

Invitation removed successfully.

application/json
objectOptional

Empty response body on success.

post
/api/removeInvitation
200

Invitation removed successfully.

POST request for endpoint /api/resetUserPassword

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

Email of the user whose password should be reset.

Example: [email protected]
Responses
chevron-right
200

Password reset token generated.

application/json
passwordResetTokenstringOptional

One-time password reset token to be sent to the user.

Example: eyJhbGciOiJIUzI1NiJ9...
post
/api/resetUserPassword
200

Password reset token generated.

POST request for endpoint /api/createCustomRole

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

Unique name for the role. Max 50 characters. Alphanumeric, hyphens, and underscores only.

Example: security-analyst
baseRolestringRequired

Base role from which this custom role inherits. One of: ADMIN, MEMBER, GUEST.

Example: MEMBER
apiCollectionIdsinteger[]Optional

List of API collection IDs this role has access to.

Example: [1001,1002]
defaultInviteRolebooleanOptional

Whether this role is the default role assigned to new invites.

Example: false
allowedFeaturesForUserstring[]Optional

List of feature keys enabled for users in this role.

Example: ["TESTING","INVENTORY"]
Responses
chevron-right
200

Custom role created successfully.

application/json
objectOptional

Empty response body on success.

post
/api/createCustomRole
200

Custom role created successfully.

POST request for endpoint /api/updateCustomRole

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

Name of the existing custom role to update.

Example: security-analyst
baseRolestringRequired

Updated base role. One of: ADMIN, MEMBER, GUEST.

Example: MEMBER
apiCollectionIdsinteger[]Optional

Updated list of API collection IDs this role has access to.

Example: [1001,1003]
defaultInviteRolebooleanOptional

Whether this role should become the default role for new invites.

Example: true
allowedFeaturesForUserstring[]Optional

Updated list of feature keys enabled for users in this role.

Example: ["TESTING"]
Responses
chevron-right
200

Custom role updated successfully.

application/json
objectOptional

Empty response body on success.

post
/api/updateCustomRole
200

Custom role updated successfully.

POST request for endpoint /api/deleteCustomRole

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

Name of the custom role to delete.

Example: security-analyst
Responses
chevron-right
200

Custom role deleted successfully.

application/json
objectOptional

Empty response body on success.

post
/api/deleteCustomRole
200

Custom role deleted successfully.

POST request for endpoint /api/makeAdmin

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

Email address of the user whose role is to be updated.

Example: [email protected]
userRolestringRequired

New role to assign to the user. Value is uppercased before processing.

Example: ADMIN
Responses
chevron-right
200

User role updated and cache cleared.

application/json
objectOptional

Empty response body on success.

post
/api/makeAdmin
200

User role updated and cache cleared.

POST request for endpoint /api/updateUserScopeRoleMapping

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

Email address of the user to update.

Example: [email protected]
Responses
chevron-right
200

Scope-role mapping updated and user cache cleared.

application/json
objectOptional

Empty response body on success.

post
/api/updateUserScopeRoleMapping
200

Scope-role mapping updated and user cache cleared.

POST request for endpoint /api/applyAccessType

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

No request body required. Configuration is read from AccountSettings (privateCidrList, partnerIpList).

Responses
chevron-right
200

Background access-type calculation job started.

application/json
objectOptional

Empty response body; processing happens asynchronously.

post
/api/applyAccessType
200

Background access-type calculation job started.

POST request for endpoint /api/resetCollectionAccessTypes

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

No request body required.

Responses
chevron-right
200

Background reset job started.

application/json
post
/api/resetCollectionAccessTypes
200

Background reset job started.

POST request for endpoint /api/addApiToken

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

Type of API token to create. One of: BURP, CICD, EXTERNAL_API.

Example: EXTERNAL_API
Responses
chevron-right
200

API token created. Returns the newly created token in a list.

application/json
post
/api/addApiToken
200

API token created. Returns the newly created token in a list.

POST request for endpoint /api/deleteApiToken

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

ID of the API token to delete.

Example: 42
Responses
chevron-right
200

Returns whether the token was successfully deleted.

application/json
apiTokenDeletedbooleanOptional

True if the token was found and deleted, false otherwise.

Example: true
post
/api/deleteApiToken
200

Returns whether the token was successfully deleted.

POST request for endpoint /api/saveSubscription

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

Subscription saved successfully.

application/json
post
/api/saveSubscription
200

Subscription saved successfully.

POST request for endpoint /api/provisionSubscription

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

Stigg customer ID for the organisation.

Example: cust_01hx...
planIdstringRequired

Identifier of the billing plan to subscribe to.

Example: plan_enterprise_monthly
billingPeriodstringRequired

Billing period for the subscription. One of: monthly, annual.

Example: monthly
successUrlstringRequired

URL to redirect to after successful checkout.

Example: https://app.akto.io/dashboard?checkout=success
cancelUrlstringRequired

URL to redirect to if the user cancels checkout.

Example: https://app.akto.io/dashboard?checkout=cancelled
Responses
chevron-right
200

Checkout session created. Returns the result from the billing service.

application/json
post
/api/provisionSubscription
200

Checkout session created. Returns the result from the billing service.

POST request for endpoint /api/refreshUsageDataForOrg

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

No request body required.

Responses
chevron-right
200

Background usage refresh job enqueued.

application/json
objectOptional

Empty response body; processing happens asynchronously.

post
/api/refreshUsageDataForOrg
200

Background usage refresh job enqueued.

Last updated