Fetch Data
User, Auth & Access Control
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