Fetch Data

User, Auth & Access Control

#
API
Description

1

POST /api/me

Fetches the current logged-in user's profile information including login, name, role, and associated accounts.

2

POST /api/fetchUserLastLoginTs

Fetches the Unix timestamp of the current user's last login.

3

POST /api/getCustomRoles

Retrieves all custom roles defined in the system for the current account.

4

POST /api/getRoleHierarchy

Returns the role hierarchy that the current user is permitted to assign to others.

5

POST /api/getAccessTypes

Fetches access-type information (public, private, partner) for a given list of Agentic Component URLs.

6

POST /api/fetchApiTokens

Fetches all API Request tokens (including Slack webhook tokens) belonging to the current user in the current account.

7

POST /api/getCustomerStiggDetails

Fetches a signed Stigg customer token for authenticating the Stigg in-app widget on the client side.

8

POST /api/getUserAnalysis

Fetches user analysis data for a given MCP agent and device, used by the Endpoint Shield agent.

POST request for endpoint /api/me

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

Returns the current user's profile details.

application/json

User profile object

post
/api/me
200

Returns the current user's profile details.

POST request for endpoint /api/fetchUserLastLoginTs

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

Returns the last login timestamp.

application/json
lastLoginTsintegerOptional

Unix epoch timestamp (seconds) of the user's last login.

Example: 1712345678
post
/api/fetchUserLastLoginTs
200

Returns the last login timestamp.

POST request for endpoint /api/getCustomRoles

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

Returns the list of custom roles.

application/json
post
/api/getCustomRoles
200

Returns the list of custom roles.

POST request for endpoint /api/getRoleHierarchy

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

Returns the list of roles below the current user's role.

application/json
userRoleHierarchystring[]Optional

Array of Role enum values that the current user can assign.

Example: ["MEMBER","GUEST"]
post
/api/getRoleHierarchy
200

Returns the list of roles below the current user's role.

POST request for endpoint /api/getAccessTypes

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

List of API endpoint URLs to look up access types for.

Example: ["/api/login","/api/admin/users"]
Responses
chevron-right
200

Returns ApiInfo objects with access type details for each URL.

application/json
post
/api/getAccessTypes
200

Returns ApiInfo objects with access type details for each URL.

POST request for endpoint /api/fetchApiTokens

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

Returns all API tokens for the current user.

application/json
post
/api/fetchApiTokens
200

Returns all API tokens for the current user.

POST request for endpoint /api/getCustomerStiggDetails

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

Organisation ID in UUID format, used as the Stigg customer identifier.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
200

Returns a signed Stigg customer token.

application/json
customerTokenstringOptional

Signed JWT/signature token for authenticating with the Stigg client SDK.

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
post
/api/getCustomerStiggDetails
200

Returns a signed Stigg customer token.

POST request for endpoint /api/getUserAnalysis

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

Identifier of the MCP agent/service.

Example: agent-abc123
deviceIdstringRequired

Identifier of the device making the request.

Example: device-xyz789
Responses
chevron-right
200

Returns the user analysis data for the specified agent and device.

application/json
post
/api/getUserAnalysis
200

Returns the user analysis data for the specified agent and device.

Last updated