Fetch Data
User, Auth & Access Control
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.
application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request body required.
Returns the current user's profile details.
User profile object
POST /api/me HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns the current user's profile details.
{
"user": {
"login": "alice@example.com",
"name": "Alice",
"role": "ADMIN",
"accounts": {
"1000000": "My Account"
}
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request body required.
Returns the last login timestamp.
Unix epoch timestamp (seconds) of the user's last login.
1712345678POST /api/fetchUserLastLoginTs HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns the last login timestamp.
{
"lastLoginTs": 1712345678
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request body required.
Returns the list of custom roles.
POST /api/getCustomRoles HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns the list of custom roles.
{
"roles": [
{
"name": "security-analyst",
"baseRole": "MEMBER",
"apiCollectionIds": [
1001,
1002
],
"defaultInviteRole": false,
"allowedFeaturesForUser": [
"TESTING",
"INVENTORY"
]
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request body required.
Returns the list of roles below the current user's role.
Array of Role enum values that the current user can assign.
["MEMBER","GUEST"]POST /api/getRoleHierarchy HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns the list of roles below the current user's role.
{
"userRoleHierarchy": [
"MEMBER",
"GUEST"
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsList of API endpoint URLs to look up access types for.
["/api/login","/api/admin/users"]Returns ApiInfo objects with access type details for each URL.
POST /api/getAccessTypes HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"urls": [
"/api/login",
"/api/admin/users"
]
}Returns ApiInfo objects with access type details for each URL.
{
"response": {
"apiInfos": [
{
"url": "/api/login",
"accessType": "PUBLIC"
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request body required.
Returns all API tokens for the current user.
POST /api/fetchApiTokens HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns all API tokens for the current user.
{
"apiTokenList": [
{
"id": 42,
"key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
"utility": "EXTERNAL_API",
"userId": 1001
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsOrganisation ID in UUID format, used as the Stigg customer identifier.
550e8400-e29b-41d4-a716-446655440000Returns a signed Stigg customer token.
Signed JWT/signature token for authenticating with the Stigg client SDK.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...POST /api/getCustomerStiggDetails HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"customerId": "550e8400-e29b-41d4-a716-446655440000"
}Returns a signed Stigg customer token.
{
"customerToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsIdentifier of the MCP agent/service.
agent-abc123Identifier of the device making the request.
device-xyz789Returns the user analysis data for the specified agent and device.
POST /api/getUserAnalysis HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"agentId": "agent-abc123",
"deviceId": "device-xyz789"
}Returns the user analysis data for the specified agent and device.
{
"userAnalysis": {
"agentId": "agent-abc123",
"deviceId": "device-xyz789",
"analysisData": {}
}
}Last updated