Fetch Data
Table of Contents
Agent & MCP
application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
POST /api/getAllCollectionsBasic HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"apiCollections": [
{
"id": 1,
"name": "Production APIs",
"displayName": "Production APIs",
"hostName": "null",
"urlsCount": 45,
"createdTs": 1679462413,
"deactivated": false,
"redacted": false,
"type": "API_COLLECTION"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
{"1":{"CRITICAL":5,"HIGH":12,"MEDIUM":23,"LOW":45}}POST /api/getSeverityInfoForCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"severityInfo": {
"1": {
"CRITICAL": 5,
"HIGH": 12,
"MEDIUM": 23,
"LOW": 45
}
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
{"1":1712102400,"2":1712089000}POST /api/getLastSeenTrafficInfoForCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"lastTrafficSeenMap": {
"1": 1712102400,
"2": 1712089000
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
topSensitivedescription
Sample description
10POST /api/getSensitiveInfoForCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"type": "topSensitive"
}description
{
"sensitiveUrlsInResponse": 10,
"sensitiveSubtypesInCollection": {},
"sensitiveSubtypesInUrl": [
{}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
{"1":8.5,"2":6.3}POST /api/getRiskScoreInfo HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"riskScoreOfCollectionsMap": {
"1": 8.5,
"2": 6.3
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
{"1":15,"2":8}POST /api/getCoverageInfoForCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"testedEndpointsMaps": {
"1": 15,
"2": 8
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
0POST /api/getAllCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"apiCollections": [
{
"hostName": "null",
"urlsCount": 0,
"vxlanId": 0,
"displayName": "AktoSwagger",
"name": "AktoSwagger",
"startTs": 1679462413,
"id": 0
}
],
"apiCollectionId": 0
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
{"101":[1,2,3],"102":[1,4]}POST /api/getAllUsersCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"usersCollectionList": {
"101": [
1,
2,
3
],
"102": [
1,
4
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
1description
Sample description
POST /api/getSeveritiesCountPerCollection HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"apiCollectionId": 1
}description
{
"severityMapForCollection": {}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
10description
Sample description
POST /api/fetchCollectionWiseApiEndpoints HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"apiCollectionId": 1,
"skip": 0
}description
{
"listOfEndpointsInCollection": [
{
"apiCollectionId": 1,
"url": "/api/users",
"method": "GET"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
1/api/usersGETnullnulldescription
Sample description
POST /api/fetchIpLevelApiCallStats HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"apiCollectionId": 1,
"url": "/api/users",
"method": "GET",
"startWindow": "null",
"endWindow": "null"
}description
{
"bucketStats": [
{
"bucketLabel": "0-10",
"min": 0,
"max": 10,
"p50": 5
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
1description
Sample description
POST /api/fetchApiInfosForCollection HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"apiCollectionId": 1
}description
{
"response": {
"apiInfoList": [
{
"url": "/api/users",
"method": "GET",
"isSensitive": false,
"authTypes": [
"text"
],
"riskScore": 7.5
}
],
"redacted": false
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
1/api/usersGET17120000001712100000description
Sample description
POST /api/fetchApiCallStats HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 101
{
"apiCollectionId": 1,
"url": "/api/users",
"method": "GET",
"startEpoch": 1712000000,
"endEpoch": 1712100000
}description
{
"result": {
"apiCallStats": [
{
"ts": 1712000000,
"count": 120
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
00description
Sample description
1050POST /api/fetchEndpointsCount HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"startTimestamp": 0,
"endTimestamp": 0
}description
{
"newCount": 10,
"oldCount": 50
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
POST1684477780/api/fetchQuickStartPageStatedescription
Sample description
{}{}POST /api/fetchSampleData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 84
{
"method": "POST",
"apiCollectionId": 1684477780,
"url": "/api/fetchQuickStartPageState"
}description
{
"sensitiveSampleData": "{}",
"sampleDataList": [
{
"id": {
"method": "POST",
"bucketEndEpoch": 0,
"bucketStartEpoch": 0,
"apiCollectionId": 1684477780,
"url": "/api/fetchQuickStartPageState",
"responseCode": -1
},
"samples": [
"text"
]
}
],
"traffic": "{}"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
1description
Sample description
nullPOST /api/generateOpenApiFile HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"apiCollectionId": 1
}description
{
"openApiFile": "null"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
1description
Sample description
POST /api/fetchAllUrlsAndMethods HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"apiCollectionId": 1
}description
{
"allUrls": [
"text"
],
"allMethods": [
"text"
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
17120000001712100000description
Sample description
POST /api/fetchNewEndpointsTrendForHostCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"startTimestamp": 1712000000,
"endTimestamp": 1712100000
}description
{
"newEndpointsTrend": [
{
"ts": 1712000000,
"count": 5
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
17120000001712100000description
Sample description
POST /api/fetchNewEndpointsTrendForNonHostCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"startTimestamp": 1712000000,
"endTimestamp": 1712100000
}description
{
"newEndpointsTrend": [
{}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
false1684477780description
Sample description
POST /api/fetchAPICollection HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"useHost": false,
"apiCollectionId": 1684477780
}description
{
"data": {
"endpoints": [
{
"startTs": 1684477861,
"changesCount": 67,
"_id": {
"method": "POST",
"apiCollectionId": 1684477780,
"url": "/api/fetchTestRunResultDetails",
"tags": [
"API"
]
}
}
],
"apiInfoList": [
{
"lastSeen": 1684477862,
"actualAuthType": [
"JWT"
],
"allAuthTypesFound": [
[
"JWT"
]
],
"violations": "{}",
"id": {
"method": "POST",
"apiCollectionId": 1684477780,
"url": "/api/fetchTestRunResultDetails"
}
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
falsetimestamp-11000false16844779411679293941description
Sample description
nullnullnulltimestampnull-11000-1nullPOST /api/fetchChanges HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 303
{
"request": false,
"filterOperators": {
"color": "OR",
"method": "OR",
"param": "OR",
"isHeader": "OR",
"domain": "OR",
"subType": "OR",
"apiCollectionId": "OR",
"url": "OR",
"timestamp": "OR"
},
"sortKey": "timestamp",
"sortOrder": -1,
"limit": 100,
"skip": 0,
"sensitive": false,
"endTimestamp": 1684477941,
"startTimestamp": 1679293941
}description
{
"listOfEndpointsInCollection": "null",
"filterOperators": {
"color": "OR",
"method": "OR",
"param": "OR",
"isHeader": "OR",
"domain": "OR",
"subType": "OR",
"apiCollectionId": "OR",
"url": "OR",
"timestamp": "OR"
},
"urls": "null",
"endpoints": "null",
"sortKey": "timestamp",
"method": "null",
"response": {
"data": {
"endpoints": [
{
"isUrlParam": false,
"method": "POST",
"maxValue": -9223372036854675000,
"values": {
"elements": [
"http://localhost:8080/api/updateProfile"
]
},
"count": 2,
"isPrivate": true,
"apiCollectionId": 1684477780,
"sensitive": true,
"url": "/api/fetchEndpointTrafficData",
"responseCode": 200,
"duration": 0,
"minValue": -9223372036854675000,
"lastSeen": 1684477920,
"publicCount": 0,
"param": "date",
"isHeader": true,
"subTypeString": "OTHER",
"domain": "ENUM",
"subType": {
"sensitiveAlways": true,
"swaggerSchemaClass": "class io.swagger.v3.oas.models.media.BooleanSchema",
"name": "OTHER",
"superType": "FLOAT"
},
"timestamp": 1684477931,
"uniqueCount": 0
}
],
"total": 10604
}
},
"sortOrder": -1,
"limit": 100,
"skip": 0,
"apiCollectionId": -1,
"url": "null"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
null{}POST /api/fetchCustomAuthTypes HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"customAuthType": "null",
"usersMap": "{}"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
0null0nullnullIBAN EUROPEnullnullPOST /api/fetchDataTypeNames HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"totalSampleDataCount": 0,
"dataTypes": "null",
"currentProcessed": 0,
"customSubTypeMatches": "null",
"customDataType": "null",
"allDataTypes": [
"IBAN EUROPE"
],
"sensitivePosition": "null",
"aktoDataType": "null"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
AKTO_ERROR while building schema
POST /api/fetchDataTypes HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
POST168447791016844777801679293910/api/fetchQuickStartPageStatedescription
Sample description
{}null{}POST /api/fetchEndpointTrafficData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 130
{
"method": "POST",
"endEpoch": 1684477910,
"apiCollectionId": 1684477780,
"startEpoch": 1679293910,
"url": "/api/fetchQuickStartPageState"
}description
{
"sensitiveSampleData": "{}",
"sampleDataList": "null",
"traffic": "{}"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
16844779411679293941description
Sample description
POST /api/fetchNewParametersTrend HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"endTimestamp": 1684477941,
"startTimestamp": 1679293941
}description
{
"data": {
"endpoints": [
{
"count": 3892,
"_id": 19496
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
http://localhost:8080/api/updateProfiledescription
Sample description
POST /api/fetchSensitiveParamsForEndpoints HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"urls": [
"http://localhost:8080/api/updateProfile"
]
}description
{
"data": {
"endpoints": [
{
"isUrlParam": false,
"method": "POST",
"maxValue": -9223372036854675000,
"count": 11,
"sensitive": true,
"apiCollectionId": 1679462413,
"isPrivate": true,
"url": "https://forms.hscollectedforms.net:443/collected-forms/submit/form",
"responseCode": 200,
"duration": 0,
"minValue": 9223372036854675000,
"lastSeen": 1681120336,
"publicCount": 0,
"param": "testingRun#userEmail",
"subTypeString": "JWT",
"isHeader": true,
"domain": "ENUM",
"subType": {
"sensitiveAlways": true,
"name": "JWT",
"swaggerSchemaClass": "class io.swagger.v3.oas.models.media.EmailSchema",
"sensitivePosition": [
"RESPONSE_PAYLOAD"
],
"superType": "CUSTOM"
},
"uniqueCount": 0,
"timestamp": 1681120336
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
description
Sample description
nullnullfalsenullfalsenullPOST /api/fetchTagConfigs HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}description
{
"tagConfigs": {
"tagConfigs": [
{
"name": "API",
"creatorId": 1679380132,
"active": true,
"id": {
"date": "2023-03-22T10:52:11",
"timestamp": 1679462531
},
"keyConditions": {
"predicates": [
{
"type": "REGEX",
"value": ".*api.*"
}
],
"operator": "AND"
},
"timestamp": 1679462531
}
],
"usersMap": {
"NUMBER": "null"
}
},
"tagConfig": "null",
"name": "null",
"active": false,
"keyConditionFromUsers": "null",
"createNew": false,
"keyOperator": "null"
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSample description
16844779411679293941description
Sample description
POST /api/loadRecentEndpoints HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"endTimestamp": 1684477941,
"startTimestamp": 1679293941
}description
{
"data": {
"endpoints": [
{
"count": 1,
"countTs": 44,
"startTs": 1679927524,
"_id": {
"method": "POST",
"apiCollectionId": 1679462413,
"url": "http://localhost:8080/api/updateProfile",
"tags": [
"API"
]
}
}
],
"apiInfoList": [
{
"lastSeen": 1684477751,
"actualAuthType": [
"AUTHORIZATION_HEADER"
],
"allAuthTypesFound": [
[
"AUTHORIZATION_HEADER"
]
],
"violations": "{}",
"id": {
"method": "POST",
"apiCollectionId": 1681120246,
"url": "/api/fetchTestRunResultDetails"
}
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsProcess ID to check.
proc-12345Returns whether the agent is running.
Whether the agent is running on any module.
truePOST /api/checkAgentRunModule HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"processId": "proc-12345"
}Returns whether the agent is running.
{
"agentRunningOnModule": true
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsAPI collection ID to fetch audit info for.
1005Returns MCP audit information for the collection.
POST /api/fetchMcpAuditInfoByCollection HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"apiCollectionId": 1005
}Returns MCP audit information for the collection.
{
"mcpAuditInfoList": [
{
"id": "audit-001",
"server": "mcp-server",
"timestamp": 1712300000,
"action": "API_CALL"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsAPI collection ID containing MCP tools.
1005Returns tool API calls grouped by tool.
POST /api/fetchMcpToolsApiCalls HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"apiCollectionId": 1005
}Returns tool API calls grouped by tool.
{
"response": {
"tool_1": [
{
"url": "/api/users",
"method": "GET"
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsRequired agent ID to fetch logs for.
agent-abc123Optional start timestamp in seconds (defaults to 24 hours ago).
1712214000Optional end timestamp in seconds (defaults to current time).
1712300000Returns agent logs for the specified time range.
POST /api/getAgentLogs HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"agentId": "agent-abc123",
"startTime": 1712214000,
"endTime": 1712300000
}Returns agent logs for the specified time range.
{
"agentLogs": [
{
"timestamp": 1712299500,
"level": "INFO",
"message": "Agent processing MCP tool request"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request body required.
Returns all configured AI models.
POST /api/getAgentModels HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns all configured AI models.
{
"models": [
{
"name": "gpt-4o",
"model": "gpt-4o",
"type": "OPENAI"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsAgent run process ID.
proc-12345Returns complete agent run details for reboot.
POST /api/getAllAgentRunningDetails HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"processId": "proc-12345"
}Returns complete agent run details for reboot.
{
"response": {
"type": "initForReboot",
"data": {},
"allSubProcesses": [
{}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsOptional agent type to filter by (e.g., DISCOVERY_AGENT uses different DAO).
DISCOVERY_AGENTReturns all running agent runs.
For discovery agents only; empty for other agent types.
POST /api/getAllAgentRuns HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"agent": "DISCOVERY_AGENT"
}Returns all running agent runs.
{
"agentRuns": [
{
"processId": "proc-12345",
"agent": "DISCOVERY_AGENT",
"state": "RUNNING",
"createdTs": 1712300000
}
],
"discoveryAgentRuns": [
{}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsRequired agent type to filter by.
DISCOVERY_AGENTReturns all agent runs for the specified type.
All agent runs (any state) of specified type.
POST /api/getAllAgentRunsObject HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"agent": "DISCOVERY_AGENT"
}Returns all agent runs for the specified type.
{
"agentRuns": [
{}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsOptional agent ID to filter MCP servers by.
agent-abc123Optional device ID to filter MCP servers by.
device-xyz789Returns MCP servers for the specified agent/device.
POST /api/getMcpServersByAgent HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"agentId": "agent-abc123",
"deviceId": "device-xyz789"
}Returns MCP servers for the specified agent/device.
{
"mcpServers": [
{
"id": "server-001",
"name": "Production MCP Server",
"url": "https://mcp.example.com",
"lastSeen": 1712300000
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsType of filter. One of: TOTAL_APIS, NEW_APIS_7_DAYS, THIRD_PARTY_APIS, RECENT_OPEN_ALERTS, CRITICAL_APIS, TOOLS, PROMPTS, RESOURCES, MCP_SERVER, TOP_3_APPLICATIONS_BY_TRAFFIC, POLICY_GUARDRAIL_APIS.
TOTAL_APISReturns MCP data matching the filter type.
Count of data matching the filter type.
127List of McpAuditInfo (only for RECENT_OPEN_ALERTS filter).
POST /api/getMcpdata HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"filterType": "TOTAL_APIS"
}Returns MCP data matching the filter type.
{
"mcpDataCount": 127,
"auditAlerts": [
{}
],
"response": {
"alertDetails": [
{}
],
"topApplications": [
{}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNo request body required.
Returns all available agent types.
Array of all available Agent enum values.
["DISCOVERY_AGENT","CODE_ANALYSIS_AGENT","THREAT_MODELING_AGENT"]POST /api/getMemberAgents HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns all available agent types.
{
"agents": [
"DISCOVERY_AGENT",
"CODE_ANALYSIS_AGENT",
"THREAT_MODELING_AGENT"
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsProcess ID.
proc-12345Sub-process ID.
sub-001Attempt ID.
1Data type. One of: logs, stateChange, subProcessHeading, batchedData, logs_discovery, error_request, increment_processed_apis, metadata_discovery, harData, api_dependencies.
logsAgent type.
DISCOVERY_AGENTAgent logs (for type 'logs').
New state (for type 'stateChange').
COMPLETEDType-specific data.
{"key":"value"}Heading (for type 'subProcessHeading').
Scanning APIsCurrent URL being processed.
https://api.example.com/usersData received and processed successfully.
POST /api/receiveDataFromAgent HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 271
{
"processId": "proc-12345",
"subProcessId": "sub-001",
"attemptId": 1,
"type": "logs",
"agent": "DISCOVERY_AGENT",
"logs": [
{}
],
"state": "COMPLETED",
"data": {
"key": "value"
},
"subProcessHeading": "Scanning APIs",
"currentProcessingUrlInDiscoveryFromAgent": "https://api.example.com/users"
}Data received and processed successfully.
{
"response": {
"success": "200 ok"
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsAPI collection ID.
1001Skip count for pagination (clamped to >= 0).
0Result limit (clamped to 1-10).
5Returns sample response data.
POST /api/fetchAllResponsesForApiCollectionOrdered HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"apiCollectionId": 1001,
"skip": 0,
"limit": 5
}Returns sample response data.
{
"sample": {
"id": "sample-001",
"responseCode": 200,
"responseBody": "{\"data\":[]}"
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsProcess ID of agent run.
proc-12345Agent type to determine which DAO to use.
DISCOVERY_AGENTReturns all subprocesses for the agent run.
List of AgentSubProcessSingleAttempt objects.
For discovery agents only.
POST /api/getAllSubProcesses HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"processId": "proc-12345",
"agent": "DISCOVERY_AGENT"
}Returns all subprocesses for the agent run.
{
"subProcesses": [
{}
],
"discoverySubProcesses": [
{}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsDiscovery agent run process ID.
proc-12345File ID to retrieve.
file-xyzReturns compressed file content.
Compressed file content (gzip format).
H4sIAERAJGYC/zWPwQqCQBCGXzVcvRskLYmibmFBEUgX6QhFCSlopGYpLYmibvPn7ot06isI33wz00CJxplQaxzidYtQZaLsTppGtf0AAAD//wMAUZN82FAAAAA=POST /api/getFileForDiscovery HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"agentProcessId": "proc-12345",
"fileId": "file-xyz"
}Returns compressed file content.
{
"compressedContent": "H4sIAERAJGYC/zWPwQqCQBCGXzVcvRskLYmibmFBEUgX6QhFCSlopGYpLYmibvPn7ot06isI33wz00CJxplQaxzidYtQZaLsTppGtf0AAAD//wMAUZN82FAAAAA="
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsProcess ID of agent run.
proc-12345Sub-process ID.
sub-001Attempt ID.
1Returns subprocess details.
POST /api/getSubProcess HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"processId": "proc-12345",
"subProcessId": "sub-001",
"attemptId": 1
}Returns subprocess details.
{
"subprocess": {
"processId": "proc-12345",
"subProcessId": "sub-001",
"attemptId": 1,
"state": "COMPLETED"
}
}1application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsOpenAPI specification retrieved successfully
3.0.1GET /api/inventory/{collectionId}/openapi HTTP/1.1
Accept: */*
OpenAPI specification retrieved successfully
{
"openapi": "3.0.1",
"info": {
"title": "Sample API",
"version": "1.0.0"
},
"paths": {}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsAPI catalog retrieved successfully
POST /api/getAPICatalog HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}API catalog retrieved successfully
{
"apiCatalogData": [
{
"_id": {
"url": "https://vulnerable-server.akto.io/api/college/eco/students",
"method": "POST",
"apiCollectionId": 1111111111
},
"apiType": "REST",
"discoveredTimestamp": 1759319376,
"lastSeen": 1767352972,
"responseCodes": [
200,
401
]
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsCollections fetched successfully
POST /api/fetchCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Collections fetched successfully
{
"collections": [
{
"uid": "111111120",
"name": "Unauthenticated APIs"
},
{
"uid": "111111121",
"name": "All Apis"
},
{
"uid": "111111128",
"name": "Login APIs"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1111111111Collection details retrieved successfully
POST /api/getCollection HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"apiCollectionId": 1111111111
}Collection details retrieved successfully
{
"apiCollections": [
{
"_id": 111111120,
"name": "Unauthenticated APIs",
"displayName": "Unauthenticated APIs",
"type": "API_GROUP",
"deactivated": false,
"automated": true,
"startTs": 1767352753
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs["api.example.com","api2.example.com"]Icons retrieved successfully
POST /api/fetchIconsForHostnames HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"hostnames": [
"api.example.com",
"api2.example.com"
]
}Icons retrieved successfully
{
"icons": {
"api.example.com": "https://example.com/icon.png"
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1API sequences retrieved successfully
POST /api/getApiSequences HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"apiCollectionId": 1
}API sequences retrieved successfully
{
"apiSequences": [
{
"sequence": [
"/api/login",
"/api/user/profile"
]
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSwagger dependencies retrieved successfully
POST /api/getSwaggerDependencies HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Swagger dependencies retrieved successfully
{
"dependencies": [
{
"source": "api.example.com",
"dependencies": [
"auth-service"
]
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsCount retrieved successfully
16POST /api/getCountForHostnameDeactivatedCollections HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Count retrieved successfully
{
"deactivatedCollectionsCountByHostname": {
"vulnerable-server.akto.io": 8,
"api.internal.example.com": 3,
"legacy-api.example.com": 5
},
"totalDeactivated": 16
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsCount retrieved successfully
23413226POST /api/getCountForUningestedApis HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Count retrieved successfully
{
"uningestedCount": 234,
"totalApiCount": 13226
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs010Unintegrated APIs retrieved successfully
234POST /api/fetchUningestedApis HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"skip": 0,
"limit": 10
}Unintegrated APIs retrieved successfully
{
"apis": [
{
"url": "https://vulnerable-server.akto.io/api/college/eco/students",
"method": "POST",
"apiCollectionId": 1111111111,
"discoveredTimestamp": 1759319376
}
],
"total": 234
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1111111111Sensitive data retrieved successfully
["content-length","authorization","api-key","x-auth-token"]true123POST /api/getSensitiveAndUnauthenticatedValue HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"apiCollectionId": 1111111111
}Sensitive data retrieved successfully
{
"sensitiveFields": [
"content-length",
"authorization",
"api-key",
"x-auth-token"
],
"isSensitive": true,
"unauthenticatedEndpointsCount": 12,
"sensitiveEndpointsCount": 3
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1High-risk third-party APIs retrieved successfully
POST /api/getHighRiskThirdPartyValue HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"apiCollectionId": 1
}High-risk third-party APIs retrieved successfully
{
"highRiskApis": [
{
"endpoint": "/api/external/payment",
"riskScore": 8.5
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1111111111Shadow APIs retrieved successfully
23POST /api/getShadowApis HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"apiCollectionId": 1111111111
}Shadow APIs retrieved successfully
{
"shadowApis": [
{
"url": "https://vulnerable-server.akto.io/api/college/student-grades",
"method": "GET",
"discoveredTimestamp": 1759319376,
"lastSeen": 1767352972,
"riskScore": 7.2
}
],
"totalShadowApisCount": 23
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsAction items retrieved successfully
POST /api/fetchActionItemsApiInfo HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Action items retrieved successfully
{
"actionItems": [
{
"id": "item_123",
"title": "Review shadow API",
"priority": "HIGH"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsUnauthenticated APIs retrieved successfully
145POST /api/fetchAllUnauthenticatedApis HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Unauthenticated APIs retrieved successfully
{
"apis": [
{
"url": "https://vuln-server.akto.io/api/v2/feePayment",
"method": "GET",
"apiCollectionId": 1111111111,
"riskScore": 0
}
],
"totalCount": 145
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsCustomer endpoints retrieved successfully
1322612452774234145POST /api/getCustomerEndpoints HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Customer endpoints retrieved successfully
{
"totalEndpoints": 13226,
"activeEndpoints": 12452,
"inactiveEndpoints": 774,
"sensitiveEndpoints": 234,
"unauthenticatedEndpoints": 145
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1De-merged APIs retrieved successfully
POST /api/getDeMergedApis HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"apiCollectionId": 1
}De-merged APIs retrieved successfully
{
"deMergedApis": [
{
"original": "GET /api/users",
"separated": [
"GET /api/users/list",
"GET /api/users/{id}"
]
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsNon-standard headers retrieved successfully
["X-Custom-Header","X-API-Version","X-Request-ID"]POST /api/fetchNonStandardHeaderKeys HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Non-standard headers retrieved successfully
{
"nonStandardHeaders": [
"X-Custom-Header",
"X-API-Version",
"X-Request-ID"
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsUnique hosts retrieved successfully
["api.example.com","api2.example.com","internal-api.example.com"]3POST /api/getUniqueHostsTested HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Unique hosts retrieved successfully
{
"uniqueHosts": [
"api.example.com",
"api2.example.com",
"internal-api.example.com"
],
"count": 3
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsAPI count map retrieved successfully
444217POST /api/fetchCountMapOfApis HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}API count map retrieved successfully
{
"countMap": {
"INTEGER_32": 89234,
"STRING": 156234,
"BOOLEAN": 42125,
"OBJECT": 28934,
"ARRAY": 12483
},
"totalCount": 444217
}Data Types & Sample Data
ID of the API collection to fetch sample data for
1748293710Number of records to skip for pagination
0Maximum number of records to return (defaults to 50 if 0 or unset)
20Sample data list retrieved successfully
Forbidden — caller lacks SAMPLE_DATA / READ permission
POST /api/fetchAllSampleData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"apiCollectionId": 1748293710,
"skip": 0,
"limit": 20
}{
"sampleDataList": [
{
"_id": {
"apiCollectionId": 1748293710,
"url": "https://api.example.com/api/users/profile",
"method": "GET",
"responseCode": -1,
"bucketStartEpoch": 0,
"bucketEndEpoch": 0
},
"collectionIds": [
1748293710,
1748293721,
1748293748
],
"samples": [
"[RAW_HTTP_SAMPLE_STRING]"
]
}
]
}Endpoints & Data Management
application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1111111API info fetched successfully
POST /api/fetchApiInfosFromSTIs HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"apiCollectionId": 1111111
}API info fetched successfully
{
"list": [
{
"_id": {
"url": "https://api.example.com/api/users/profile",
"method": "GET",
"apiCollectionId": 1111111
},
"apiType": "REST",
"discoveredTimestamp": 1672531200,
"lastSeen": 1675209600,
"responseCodes": [
200,
401
]
}
],
"response": {
"apiInfoList": [
{
"id": {
"url": "https://api.example.com/api/users/profile",
"method": "GET",
"apiCollectionId": 1111111
},
"allAuthTypesFound": [
[
"AUTHORIZATION_HEADER_BEARER"
]
],
"actualAuthType": [
"AUTHORIZATION_HEADER_BEARER"
],
"isPublic": false
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIs1111111ApiInfo list retrieved successfully
POST /api/fetchApiInfoList HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"apiCollectionId": 1111111
}ApiInfo list retrieved successfully
{
"apiInfoList": [
{
"id": {
"url": "https://api.example.com/api/orders/INTEGER",
"method": "GET",
"apiCollectionId": 1111111
},
"allAuthTypesFound": [
[
"AUTHORIZATION_HEADER_BEARER"
]
],
"actualAuthType": [
"AUTHORIZATION_HEADER_BEARER"
],
"apiAccessType": "ONLY_AUTHENTICATED",
"lastSeen": 1675209600,
"discoveredTimestamp": 1672531200,
"responseCodes": [
200,
404
],
"isPublic": false
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIshttps://api.example.com/api/orders/INTEGERGET1111111Endpoint info retrieved successfully. apiInfo is null if the endpoint does not exist.
POST /api/getSingleEndpoint HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"url": "https://api.example.com/api/orders/INTEGER",
"method": "GET",
"apiCollectionId": 1111111
}Endpoint info retrieved successfully. apiInfo is null if the endpoint does not exist.
{
"apiInfo": {
"id": {
"url": "https://api.example.com/api/orders/INTEGER",
"method": "GET",
"apiCollectionId": 1111111
},
"allAuthTypesFound": [
[
"AUTHORIZATION_HEADER_BEARER"
]
],
"actualAuthType": [
"AUTHORIZATION_HEADER_BEARER"
],
"apiAccessType": "ONLY_AUTHENTICATED",
"lastSeen": 1675209600,
"discoveredTimestamp": 1672531200,
"responseCodes": [
200,
401,
404
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsList of URL paths to check. Pass an empty array to get an empty result.
["/api/payments/refund","/api/users/admin/delete","/api/reports/export"]URL presence results returned (sorted alphabetically by URL)
POST /api/findMissingUrls HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"missingUrls": [
"/api/payments/refund",
"/api/users/admin/delete",
"/api/reports/export"
]
}URL presence results returned (sorted alphabetically by URL)
{
"missingUrlsResults": [
{
"url": "/api/payments/refund",
"collectionId": 1111111,
"name": "payments-service",
"hasApiInfo": true,
"hasSingleTypeInfo": false
},
{
"url": "/api/reports/export",
"collectionId": null,
"name": "",
"hasApiInfo": false,
"hasSingleTypeInfo": false
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsStart of time window (Unix epoch seconds)
1672531200End of time window (Unix epoch seconds)
1675209600Recent params fetched (up to 20,000 STI records)
POST /api/fetchRecentParams HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"startTimestamp": 1672531200,
"endTimestamp": 1675209600
}Recent params fetched (up to 20,000 STI records)
{
"data": {
"endpoints": [
{
"apiCollectionId": 1111111,
"url": "https://api.example.com/api/users/profile",
"method": "POST",
"param": "newField",
"isHeader": false,
"responseCode": -1,
"timestamp": 1673000000,
"subType": "STRING"
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsEndpoint list and total count returned
Total number of matching endpoints (not limited to page size)
48Enriched endpoint data (auth types, risk, sensitivity)
POST /api/getEndpointsListFromConditions HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 259
{
"conditions": [
{
"type": "CUSTOM",
"operator": "OR",
"data": {
"apiList": [
{
"apiCollectionId": 1111111,
"url": "https://api.example.com/api/users/profile",
"method": "GET"
},
{
"apiCollectionId": 1111111,
"url": "https://api.example.com/api/orders/INTEGER",
"method": "POST"
}
]
}
}
]
}Endpoint list and total count returned
{
"apiCount": 48,
"response": {}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsCount of matching endpoints returned
312POST /api/getEndpointsFromConditions HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"conditions": [
{
"type": "COLLECTION",
"operator": "OR",
"data": {}
}
]
}Count of matching endpoints returned
{
"apiCount": 312
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsapi.example.comNumber of records to skip for pagination
0Endpoints for the given host returned
Invalid or null hostName, or deactivated collection
POST /api/fetchEndpointsBasedOnHostName HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"hostName": "api.example.com",
"skip": 0
}{
"endpoints": [
{
"url": "https://api.example.com/api/users/profile",
"method": "GET"
},
{
"url": "https://api.example.com/api/orders/INTEGER",
"method": "POST"
},
{
"url": "https://api.example.com/api/payments/refund",
"method": "POST"
}
]
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsStart of time window (Unix epoch seconds)
1672531200End of time window (Unix epoch seconds). Defaults to now if 0.
1675209600Discovery stats returned
Shape depends on context source (API Security vs Agentic)
{"shadowApis":14,"sensitiveApis":8,"noAuthApis":3,"newEndpoints":27,"totalEndpoints":834}POST /api/fetchEndpointDiscoveryData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"startTimestamp": 1672531200,
"endTimestamp": 1675209600
}Discovery stats returned
{
"discoveryStats": {
"shadowApis": 14,
"sensitiveApis": 8,
"noAuthApis": 3,
"newEndpoints": 27,
"totalEndpoints": 834
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsSensitive fields list returned
POST /api/listAllSensitiveFields HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Sensitive fields list returned
{
"ret": {
"data": [
{
"url": "https://api.example.com/api/users/profile",
"method": "GET",
"responseCode": 200,
"isHeader": false,
"param": "ssn",
"apiCollectionId": 1111111,
"sensitive": true
}
]
}
}application/jsonYOUR_API_KEY from Settings > Integrations > Akto APIsStart of audit window (Unix epoch seconds)
1672531200End of audit window (Unix epoch seconds)
1675209600API info gap counts returned
Endpoints in STI but absent from api_info
14Endpoints with no sample data to determine API type
6Endpoints where auth type has not been computed
3Endpoints where access type has not been computed
2api_info entries with no matching STI record
1POST /api/getAPIInfosForMissingData HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"startTimeStamp": 1672531200,
"endTimeStamp": 1675209600
}API info gap counts returned
{
"totalMissing": 14,
"apiTypeMissing": 6,
"authNotCalculated": 3,
"accessTypeNotCalculated": 2,
"redundantApiInfoKeys": 1
}Last updated