For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fetch Data

Table of Contents

System & Health

#
API
Description

1

Fetches system metrics and performance data.

2

GET /api/allMetricsDescription

Retrieves descriptions and metadata for all available system metrics.

3

GET /api/health

Checks the health status of the system and services.

4

GET /api/fetchModuleInfo

Fetches information about system modules and their status.

POST request for endpoint /api/metrics

post
Body
startTimeintegerOptionalExample: 1766398000
endTimeintegerOptionalExample: 1766398064
metricIdPrefixstringOptionalExample: RT_KAFKA_
instanceIdstringOptionalExample: 879c9527-b664-403e-9b7e-1abe0ac05ab6
Responses
200

Metrics retrieved successfully

application/json
post/api/metrics
POST /api/metrics HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 126

{
  "startTime": 1766398000,
  "endTime": 1766398064,
  "metricIdPrefix": "RT_KAFKA_",
  "instanceId": "879c9527-b664-403e-9b7e-1abe0ac05ab6"
}
200

Metrics retrieved successfully

{
  "metrics": [
    {
      "metricId": "RT_KAFKA_RECORD_COUNT",
      "value": 0,
      "timestamp": 1766398064,
      "instanceId": "879c9527-b664-403e-9b7e-1abe0ac05ab6"
    }
  ]
}

GET request for endpoint /api/allMetricsDescription

get
Responses
200

Metrics descriptions retrieved

application/json
namesstring[]OptionalExample: RT_KAFKA_RECORD_COUNT
get/api/allMetricsDescription
GET /api/allMetricsDescription HTTP/1.1
Accept: */*
200

Metrics descriptions retrieved

{
  "names": [
    "RT_KAFKA_RECORD_COUNT"
  ]
}

GET request for endpoint /api/health

get
Responses
200

System is healthy

application/json
statusstringOptionalExample: UP
timestampintegerOptionalExample: 1767352972
get/api/health
GET /api/health HTTP/1.1
Accept: */*
200

System is healthy

{
  "status": "UP",
  "timestamp": 1767352972
}

Settings & Toggles

#
API
Description

1

GET /api/fetchAdminSettings

Fetches admin-level settings for the current account or organization.

2

GET /api/getAccountSettingsForAdvancedFilters

Retrieves account settings specific to advanced filter configurations.

GET request for endpoint /api/fetchAdminSettings

get
Responses
200

Admin settings retrieved successfully

application/json
dashboardVersionstringOptionalExample: [REDACTED-VERSION] - [REDACTED-TIMESTAMP] - [REDACTED-VERSION]
urlRegexMatchingEnabledbooleanOptionalExample: true
showOnboardingbooleanOptionalExample: false
get/api/fetchAdminSettings
GET /api/fetchAdminSettings HTTP/1.1
Accept: */*
200

Admin settings retrieved successfully

{
  "dashboardVersion": "[REDACTED-VERSION] - [REDACTED-TIMESTAMP] - [REDACTED-VERSION]",
  "urlRegexMatchingEnabled": true,
  "telemetrySettings": {
    "customerEnabled": false,
    "telemetryEnabled": false
  },
  "showOnboarding": false
}

GET request for endpoint /api/getAccountSettingsForAdvancedFilters

get
Responses
200

Advanced filter settings retrieved

No content

get/api/getAccountSettingsForAdvancedFilters
GET /api/getAccountSettingsForAdvancedFilters HTTP/1.1
Accept: */*
200

Advanced filter settings retrieved

No content

SSO & Authentication

#
API
Description

1

POST /api/fetchGithubSso

Fetches the current GitHub SSO configuration for the organization.

2

POST /api/fetchGithubAppId

Retrieves the GitHub App ID configured for SSO integration.

3

POST /api/fetchOktaSso

Fetches the current Okta SSO configuration and settings.

4

POST /api/fetchOktaGroups

Retrieves available Okta groups for role mapping configuration.

5

POST /api/fetchSAMLSso

Fetches the current SAML SSO configuration and metadata.

POST request for endpoint /api/fetchGithubSso

post
Body
objectOptional
Responses
200

GitHub SSO configuration retrieved successfully

application/json
githubClientIdstringOptional

GitHub OAuth App client ID currently configured

Example: Iv1.a1b2c3d4e5f6g7h8
githubUrlstringOptional

GitHub Enterprise base URL, null for github.com

Example: https://github.example-corp.com
githubApiUrlstringOptional

GitHub Enterprise API URL, null for github.com

Example: https://github.example-corp.com/api/v3
post/api/fetchGithubSso
POST /api/fetchGithubSso HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{
  "githubClientId": "Iv1.a1b2c3d4e5f6g7h8",
  "githubUrl": "https://github.example-corp.com",
  "githubApiUrl": "https://github.example-corp.com/api/v3"
}

POST request for endpoint /api/fetchGithubAppId

post
Body
objectOptional
Responses
200

GitHub App ID retrieved successfully

application/json
githubAppIdstringOptional

GitHub App numeric or string identifier

Example: 987654
post/api/fetchGithubAppId
POST /api/fetchGithubAppId HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{
  "githubAppId": "987654"
}

POST request for endpoint /api/fetchOktaSso

post
Body
objectOptional
Responses
200

Okta SSO configuration retrieved successfully

application/json
clientIdstringOptional

Okta OIDC application client ID

Example: 0oa1b2c3d4e5F6G7H890
oktaDomainstringOptional

Okta organization domain URL

Example: https://example-corp.okta.com
authorisationServerIdstringOptional

Okta Authorization Server ID

Example: aus1b2c3d4e5F6G7H890
redirectUristringOptional

Configured redirect URI

Example: https://app.akto.example-corp.com/login/oauth2/code/okta
managementApiTokenstringOptional

Returns '*' if a management API token is stored, null otherwise

Example: *
post/api/fetchOktaSso
POST /api/fetchOktaSso HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{
  "clientId": "0oa1b2c3d4e5F6G7H890",
  "oktaDomain": "https://example-corp.okta.com",
  "authorisationServerId": "aus1b2c3d4e5F6G7H890",
  "redirectUri": "https://app.akto.example-corp.com/login/oauth2/code/okta",
  "oktaGroupToAktoUserRoleMap": {
    "Security-Admins": "ADMIN",
    "Dev-Engineers": "DEVELOPER",
    "Auditors": "GUEST"
  },
  "managementApiToken": "*"
}

POST request for endpoint /api/fetchOktaGroups

post
Body
objectOptional
Responses
200

Okta group names retrieved successfully

application/json
oktaGroupNamesstring[]Optional

List of all group names in the Okta organization

Example: ["Security-Admins","Dev-Engineers","QA-Team","Auditors","Everyone"]
post/api/fetchOktaGroups
POST /api/fetchOktaGroups HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{
  "oktaGroupNames": [
    "Security-Admins",
    "Dev-Engineers",
    "QA-Team",
    "Auditors",
    "Everyone"
  ]
}

POST request for endpoint /api/fetchSAMLSso

post
Body
configTypestring · enumRequired

SAML provider type to fetch

Example: AZUREPossible values:
Responses
200

SAML SSO configuration retrieved successfully

application/json
loginUrlstringOptional

Identity provider SAML SSO login URL

Example: https://login.microsoftonline.com/a1b2c3d4-e5f6-7890-abcd-ef1234567890/saml2
ssoEntityIdstringOptional

Identity provider SAML Entity ID / Issuer URI

Example: https://sts.windows.net/a1b2c3d4-e5f6-7890-abcd-ef1234567890/
post/api/fetchSAMLSso
POST /api/fetchSAMLSso HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 22

{
  "configType": "AZURE"
}
{
  "loginUrl": "https://login.microsoftonline.com/a1b2c3d4-e5f6-7890-abcd-ef1234567890/saml2",
  "ssoEntityId": "https://sts.windows.net/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
}

Runtime & Infrastructure

#
API
Description

1

GET /api/fetchRuntimeInstances

Fetches information about all configured runtime instances and their status.

2

POST /api/fetchRuntimeMetrics

Retrieves metrics and performance data for runtime instances.

3

GET /api/fetchRuntimeHelmCommand

Fetches the Helm command required for deploying the runtime.

4

GET /api/fetchAwsAccountIdsForApiGatewayLogging

Retrieves AWS account IDs configured for API Gateway logging.

5

GET /api/fetchLoadBalancers

Fetches all configured load balancers and their settings.

GET request for endpoint /api/fetchRuntimeInstances

get
Query parameters
statusstringOptionalExample: RUNNING
Responses
200

Runtime instances retrieved successfully

No content

get/api/fetchRuntimeInstances
GET /api/fetchRuntimeInstances HTTP/1.1
Accept: */*
200

Runtime instances retrieved successfully

No content

POST request for endpoint /api/fetchRuntimeMetrics

post
Body
instanceIdstringOptionalExample: 879c9527-b664-403e-9b7e-1abe0ac05ab6
metricTypestringOptionalExample: CPU
Responses
200

Runtime metrics retrieved

No content

post/api/fetchRuntimeMetrics
POST /api/fetchRuntimeMetrics HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 72

{
  "instanceId": "879c9527-b664-403e-9b7e-1abe0ac05ab6",
  "metricType": "CPU"
}
200

Runtime metrics retrieved

No content

GET request for endpoint /api/fetchRuntimeHelmCommand

get
Responses
200

Helm command retrieved

No content

get/api/fetchRuntimeHelmCommand
GET /api/fetchRuntimeHelmCommand HTTP/1.1
Accept: */*
200

Helm command retrieved

No content

GET request for endpoint /api/fetchAwsAccountIdsForApiGatewayLogging

get
Responses
200

AWS account IDs retrieved

No content

get/api/fetchAwsAccountIdsForApiGatewayLogging
GET /api/fetchAwsAccountIdsForApiGatewayLogging HTTP/1.1
Accept: */*
200

AWS account IDs retrieved

No content

GET request for endpoint /api/fetchLoadBalancers

get
Query parameters
providerstringOptionalExample: AWS
Responses
200

Load balancers retrieved

No content

get/api/fetchLoadBalancers
GET /api/fetchLoadBalancers HTTP/1.1
Accept: */*
200

Load balancers retrieved

No content

Logs, Audit & Traffic

#
API
Description

1

POST /api/fetchLogs

Fetches system logs from the current session or a specified timeframe.

2

POST /api/fetchLogsFromDb

Retrieves logs stored in the database with filtering and pagination options.

3

POST /api/fetchTestingLogs

Fetches logs specific to security testing operations.

4

POST /api/fetchApiAuditLogsFromDb

Retrieves audit logs for API operations from the database.

5

POST /api/fetchAuditData

Fetches audit trail data and user activity logs.

6

POST /api/fetchTrafficMetrics

Retrieves traffic metrics and analytics data.

7

POST /api/fetchTrafficMetricsDesciptions

Fetches descriptions and metadata for traffic metrics.

8

POST /api/fetchHistoricalData

Retrieves historical data for analysis and reporting.

9

POST /api/fetchApiStats

Fetches statistics and performance metrics for APIs.

POST request for endpoint /api/fetchLogs

post
Body
startTimeintegerOptionalExample: 1767352900
endTimeintegerOptionalExample: 1767352972
logLevelstringOptionalExample: ERROR
limitintegerOptionalExample: 100
Responses
200

Logs retrieved successfully

application/json
totalintegerOptionalExample: 1500
post/api/fetchLogs
POST /api/fetchLogs HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 76

{
  "startTime": 1767352900,
  "endTime": 1767352972,
  "logLevel": "ERROR",
  "limit": 100
}
200

Logs retrieved successfully

{
  "logs": [
    {
      "key": "info",
      "log": "class com.akto.testing.ApiExecutor: [Default_2064] acc: [REDACTED-ACCOUNT], Final url is: http://localhost:9000/api/bulkWriteTrafficMetrics",
      "timestamp": 1766730670
    }
  ],
  "total": 1500
}

POST request for endpoint /api/fetchLogsFromDb

post
Body
skipintegerOptionalExample: 0
limitintegerOptionalExample: 50
Responses
200

Database logs retrieved

No content

post/api/fetchLogsFromDb
POST /api/fetchLogsFromDb HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "skip": 0,
  "limit": 50
}
200

Database logs retrieved

No content

POST request for endpoint /api/fetchTestingLogs

post
Body
testIdstringOptionalExample: test-abc123
Responses
200

Testing logs retrieved

No content

post/api/fetchTestingLogs
POST /api/fetchTestingLogs HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "testId": "test-abc123"
}
200

Testing logs retrieved

No content

POST request for endpoint /api/fetchApiAuditLogsFromDb

post
Body
skipintegerOptionalExample: 0
limitintegerOptionalExample: 20
apiEndpointstringOptionalExample: api/switchTestingModule
Responses
200

API audit logs retrieved

application/json
totalintegerOptionalExample: 85
post/api/fetchApiAuditLogsFromDb
POST /api/fetchApiAuditLogsFromDb HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "skip": 0,
  "limit": 20,
  "apiEndpoint": "api/switchTestingModule"
}
200

API audit logs retrieved

{
  "auditLogs": [
    {
      "_id": "6932edc79a05fc641a050ade",
      "actionDescription": "Error: Description not available",
      "apiEndpoint": "api/switchTestingModule",
      "timestamp": 1764945351,
      "userEmail": "[REDACTED-EMAIL]",
      "userIpAddress": "192.0.2.100"
    }
  ],
  "total": 85
}

POST request for endpoint /api/fetchAuditData

post
Body
objectOptional
Responses
200

Audit data retrieved

No content

post/api/fetchAuditData
POST /api/fetchAuditData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

Audit data retrieved

No content

POST request for endpoint /api/fetchTrafficMetrics

post
Body
startTimeintegerOptionalExample: 20441
endTimeintegerOptionalExample: 20442
hoststringOptionalExample: api.example.com
Responses
200

Traffic metrics retrieved

No content

post/api/fetchTrafficMetrics
POST /api/fetchTrafficMetrics HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "startTime": 20441,
  "endTime": 20442,
  "host": "api.example.com"
}
200

Traffic metrics retrieved

No content

POST request for endpoint /api/fetchHistoricalData

post
Body
dataTypestringOptionalExample: TRAFFIC
Responses
200

Historical data retrieved

No content

post/api/fetchHistoricalData
POST /api/fetchHistoricalData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 22

{
  "dataType": "TRAFFIC"
}
200

Historical data retrieved

No content

POST request for endpoint /api/fetchApiStats

post
Body
objectOptional
Responses
200

API statistics retrieved

No content

post/api/fetchApiStats
POST /api/fetchApiStats HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

API statistics retrieved

No content

Dashboard, Filters & Misc

#
API
Description

1

GET /api/fetchDashboardLayout

Retrieves the user's saved dashboard layout configuration.

2

GET /api/getRecentActivities

Fetches recent user activities and system events.

3

GET /api/fetchFilterYamlTemplate

Retrieves YAML filter templates for custom filters.

4

GET /api/fetchMetadataFilters

Fetches available metadata filter options and configurations.

5

GET /api/fetchBrowserExtensionConfigs

Retrieves browser extension configurations for the current user.

6

POST /api/getSummaryInfoForChanges

Fetches summary information for changes and modifications.

GET request for endpoint /api/fetchDashboardLayout

get
Query parameters
layoutNamestringOptionalExample: default
Responses
200

Dashboard layout retrieved

No content

get/api/fetchDashboardLayout
GET /api/fetchDashboardLayout HTTP/1.1
Accept: */*
200

Dashboard layout retrieved

No content

GET request for endpoint /api/getRecentActivities

get
Query parameters
limitintegerOptionalExample: 20
Responses
200

Recent activities retrieved

No content

get/api/getRecentActivities
GET /api/getRecentActivities HTTP/1.1
Accept: */*
200

Recent activities retrieved

No content

GET request for endpoint /api/fetchFilterYamlTemplate

get
Query parameters
templateNamestringOptionalExample: advanced-filter
Responses
200

Filter YAML template retrieved

No content

get/api/fetchFilterYamlTemplate
GET /api/fetchFilterYamlTemplate HTTP/1.1
Accept: */*
200

Filter YAML template retrieved

No content

GET request for endpoint /api/fetchMetadataFilters

get
Responses
200

Metadata filters retrieved

No content

get/api/fetchMetadataFilters
GET /api/fetchMetadataFilters HTTP/1.1
Accept: */*
200

Metadata filters retrieved

No content

GET request for endpoint /api/fetchBrowserExtensionConfigs

get
Responses
200

Browser extension configs retrieved

No content

get/api/fetchBrowserExtensionConfigs
GET /api/fetchBrowserExtensionConfigs HTTP/1.1
Accept: */*
200

Browser extension configs retrieved

No content

POST request for endpoint /api/getSummaryInfoForChanges

post
Body
objectOptional
Responses
200

Change summary retrieved

No content

post/api/getSummaryInfoForChanges
POST /api/getSummaryInfoForChanges HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

Change summary retrieved

No content

Service Graph, Tracing & Misc

#
API
Description

1

POST /api/fetchApiDependencies

Fetches API dependency information and service relationships.

2

GET /api/checkIfDependencyGraphAvailable

Checks if the dependency graph is available for the current configuration.

3

POST /api/fetchLatestTraces

Retrieves the latest traces from the tracing system.

4

GET /api/fetchSpansForTrace

Fetches individual spans associated with a specific trace.

5

POST /api/findSvcToSvcGraphEdges

Retrieves service-to-service graph edges for visualization.

6

POST /api/findSvcToSvcGraphNodes

Fetches service-to-service graph nodes representing services.

7

POST /api/fetchMiniTestingServiceNames

Retrieves available service names for mini testing.

POST request for endpoint /api/fetchApiDependencies

post
Body
objectOptional
Responses
200

API dependencies retrieved

No content

post/api/fetchApiDependencies
POST /api/fetchApiDependencies HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

API dependencies retrieved

No content

GET request for endpoint /api/checkIfDependencyGraphAvailable

get
Responses
200

Dependency graph availability checked

No content

get/api/checkIfDependencyGraphAvailable
GET /api/checkIfDependencyGraphAvailable HTTP/1.1
Accept: */*
200

Dependency graph availability checked

No content

POST request for endpoint /api/fetchLatestTraces

post
Body
objectOptional
Responses
200

Latest traces retrieved

No content

post/api/fetchLatestTraces
POST /api/fetchLatestTraces HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

Latest traces retrieved

No content

GET request for endpoint /api/fetchSpansForTrace

get
Query parameters
traceIdstringOptionalExample: trace-abc123
Responses
200

Trace spans retrieved

No content

get/api/fetchSpansForTrace
GET /api/fetchSpansForTrace HTTP/1.1
Accept: */*
200

Trace spans retrieved

No content

POST request for endpoint /api/findSvcToSvcGraphEdges

post
Body
objectOptional
Responses
200

Graph edges retrieved

No content

post/api/findSvcToSvcGraphEdges
POST /api/findSvcToSvcGraphEdges HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

Graph edges retrieved

No content

POST request for endpoint /api/findSvcToSvcGraphNodes

post
Body
objectOptional
Responses
200

Graph nodes retrieved

No content

post/api/findSvcToSvcGraphNodes
POST /api/findSvcToSvcGraphNodes HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

Graph nodes retrieved

No content

Maintenance

#
API
Description

1

GET /api/fetchParamsStatus

Fetches the status of parameters and configurations for maintenance purposes.

GET request for endpoint /api/fetchParamsStatus

get
Responses
200

Parameters status retrieved

No content

get/api/fetchParamsStatus
GET /api/fetchParamsStatus HTTP/1.1
Accept: */*
200

Parameters status retrieved

No content

Last updated