> For the complete documentation index, see [llms.txt](https://docs.akto.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akto.io/api-reference/discovery/fetch-data.md).

# Fetch Data

<table data-full-width="true"><thead><tr><th width="427.5712890625">API</th><th>Description</th></tr></thead><tbody><tr><td><strong>POST /api/getAllCollectionsBasic</strong></td><td>Fetch a lightweight list of all API collections with only basic metadata. Useful for quick lookups or dropdowns.</td></tr><tr><td><strong>POST /api/getAllCollections</strong></td><td>Retrieve the complete list of all API collections with detailed information.</td></tr><tr><td><strong>POST /api/getAllUsersCollections</strong></td><td>Fetch all API collections accessible to the current user.</td></tr><tr><td><strong>POST /api/getCoverageInfoForCollections</strong></td><td>Get test coverage data for each collection (e.g., how many endpoints are tested vs. untested).</td></tr><tr><td><strong>POST /api/getSeverityInfoForCollections</strong></td><td>Retrieve aggregated severity information (High, Medium, Low) across API collections.</td></tr><tr><td><strong>POST /api/getSeveritiesCountPerCollection</strong></td><td>Get the count of issues grouped by severity for each collection.</td></tr><tr><td><strong>POST /api/getLastSeenTrafficInfoForCollections</strong></td><td>Fetch last seen traffic timestamps for each collection, helping track activity recency.</td></tr><tr><td><strong>POST /api/getSensitiveInfoForCollections</strong></td><td>Retrieve sensitive data findings per collection (e.g., PII, secrets).</td></tr><tr><td><strong>POST /api/getRiskScoreInfo</strong></td><td>Get risk scores calculated for API collections, based on threats and sensitive data exposure.</td></tr><tr><td><strong>POST /api/fetchCollectionWiseApiEndpoints</strong></td><td>Fetch all API endpoints belonging to a specific collection.</td></tr><tr><td><strong>POST /api/fetchApiInfosForCollection</strong></td><td>Retrieve detailed API information for a given collection (method, path, params, etc.).</td></tr><tr><td><strong>POST /api/fetchApiInfosFromSTIs</strong></td><td>Fetch API details using stored traffic identifiers (STIs). Useful for replay or drill-down.</td></tr><tr><td><strong>POST /api/fetchEndpointsCount</strong></td><td>Get a count of API endpoints per collection.</td></tr><tr><td><strong>POST /api/fetchApiCallStats</strong></td><td>Retrieve traffic statistics such as call counts, trends, and usage metrics per API.</td></tr><tr><td><strong>POST /api/fetchIpLevelApiCallStats</strong></td><td>Get API call stats broken down by IP, useful for identifying abusive clients or usage patterns.</td></tr><tr><td><strong>POST /api/fetchSampleData</strong></td><td>Fetch sample request/response payloads observed for a given API, used for testing or schema generation.</td></tr><tr><td><strong>POST /api/generateOpenApiFile</strong></td><td>Generate an OpenAPI (Swagger) specification file from discovered API data.</td></tr><tr><td><strong>POST /api/fetchOpenApiSchema</strong></td><td>Returns the stored OpenAPI/Swagger schema for the given API collection.</td></tr><tr><td><strong>POST /api/fetchSwaggerImportLogs</strong></td><td>Returns import status and per-endpoint parsing details for a previous Swagger/OpenAPI file upload.</td></tr><tr><td><strong>POST /api/fetchPostmanImportLogs</strong></td><td>Returns import status and per-endpoint parsing details for a previous Postman file upload.</td></tr></tbody></table>

## POST /api/getAllCollectionsBasic

> /api/getAllCollectionsBasic

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getAllCollectionsBasic":{"post":{"summary":"/api/getAllCollectionsBasic","operationId":"https://app.akto.io/api/getAllCollectionsBasic-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"sensitiveUrlsInResponse":{"type":"integer","format":"int32","types":["integer"]},"shadowApisCount":{"type":"integer","format":"int32","types":["integer"]},"redacted":{"type":"boolean","types":["boolean"]},"riskScoreOfCollectionsMap":{"type":"string","types":["string"]},"apiCount":{"type":"integer","format":"int32","types":["integer"]},"lastTrafficSeenMap":{"type":"string","types":["string"]},"uningestedApiCountMap":{"type":"string","types":["string"]},"endpointsFromConditions":{"type":"string","types":["string"]},"sensitiveUnauthenticatedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"endpointsListFromConditions":{"type":"string","types":["string"]},"apiStatsStart":{"type":"string","types":["string"]},"deactivatedHostnameCountMap":{"type":"string","types":["string"]},"criticalEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"countForHostnameDeactivatedCollections":{"type":"string","types":["string"]},"testedEndpointsMaps":{"type":"string","types":["string"]},"severityInfo":{"type":"string","types":["string"]},"apiList":{"type":"string","types":["string"]},"sensitiveSubtypesInCollection":{"type":"string","types":["string"]},"hasUsageEndpoints":{"type":"boolean","types":["boolean"]},"countForUningestedApis":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"timerInfo":{"type":"string","types":["string"]},"response":{"type":"object","properties":{"apiCount":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]},"apiCollections":{"type":"array","items":{"type":"object","properties":{"hostName":{"type":"string","types":["string"]},"urlsCount":{"type":"integer","format":"int32","types":["integer"]},"runDependencyAnalyser":{"type":"boolean","types":["boolean"]},"displayName":{"type":"string","types":["string"]},"redact":{"type":"boolean","types":["boolean"]},"sseCallbackUrl":{"type":"string","types":["string"]},"description":{"type":"string","types":["string"]},"mcpCollection":{"type":"boolean","types":["boolean"]},"startTs":{"type":"integer","format":"int32","types":["integer"]},"type":{"type":"string","types":["string"]},"deactivated":{"type":"boolean","types":["boolean"]},"automated":{"type":"boolean","types":["boolean"]},"matchDependencyWithOtherCollections":{"type":"boolean","types":["boolean"]},"vxlanId":{"type":"integer","format":"int32","types":["integer"]},"envType":{"type":"string","types":["string"]},"tagsList":{"type":"string","types":["string"]},"genAICollection":{"type":"boolean","types":["boolean"]},"name":{"type":"string","types":["string"]},"userSetEnvType":{"type":"string","types":["string"]},"id":{"type":"integer","format":"int32","types":["integer"]},"isOutOfTestingScope":{"type":"boolean","types":["boolean"]},"sampleCollectionsDropped":{"type":"boolean","types":["boolean"]},"conditions":{"type":"string","types":["string"]}},"types":["object"]},"types":["array"]},"mcpDataCount":{"type":"integer","format":"int32","types":["integer"]},"usersCollectionList":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]},"allUsersCollections":{"type":"string","types":["string"]},"apiStatsEnd":{"type":"string","types":["string"]},"conditions":{"type":"string","types":["string"]},"uningestedApiList":{"type":"string","types":["string"]},"highRiskThirdPartyEndpointsCount":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]}}}}}}}}}
```

## POST /api/getSeverityInfoForCollections

> /api/getSeverityInfoForCollections

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getSeverityInfoForCollections":{"post":{"summary":"/api/getSeverityInfoForCollections","operationId":"https://app.akto.io/api/getSeverityInfoForCollections-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}}}}}}}
```

## POST /api/getLastSeenTrafficInfoForCollections

> /api/getLastSeenTrafficInfoForCollections

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getLastSeenTrafficInfoForCollections":{"post":{"summary":"/api/getLastSeenTrafficInfoForCollections","operationId":"https://app.akto.io/api/getLastSeenTrafficInfoForCollections-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/getSensitiveInfoForCollections

> /api/getSensitiveInfoForCollections

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getSensitiveInfoForCollections":{"post":{"summary":"/api/getSensitiveInfoForCollections","operationId":"https://app.akto.io/api/getSensitiveInfoForCollections-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"sensitiveUrlsInResponse":{"type":"integer","format":"int32","types":["integer"]},"shadowApisCount":{"type":"integer","format":"int32","types":["integer"]},"redacted":{"type":"boolean","types":["boolean"]},"apiCount":{"type":"integer","format":"int32","types":["integer"]},"riskScoreOfCollectionsMap":{"type":"string","types":["string"]},"lastTrafficSeenMap":{"type":"string","types":["string"]},"uningestedApiCountMap":{"type":"string","types":["string"]},"endpointsFromConditions":{"type":"string","types":["string"]},"sensitiveUnauthenticatedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"endpointsListFromConditions":{"type":"string","types":["string"]},"apiStatsStart":{"type":"string","types":["string"]},"criticalEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"deactivatedHostnameCountMap":{"type":"string","types":["string"]},"countForHostnameDeactivatedCollections":{"type":"string","types":["string"]},"testedEndpointsMaps":{"type":"string","types":["string"]},"severityInfo":{"type":"string","types":["string"]},"apiList":{"type":"string","types":["string"]},"sensitiveSubtypesInCollection":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]},"hasUsageEndpoints":{"type":"boolean","types":["boolean"]},"countForUningestedApis":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"timerInfo":{"type":"string","types":["string"]},"response":{"type":"object","properties":{"apiCount":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]},"mcpDataCount":{"type":"integer","format":"int32","types":["integer"]},"usersCollectionList":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]},"allUsersCollections":{"type":"string","types":["string"]},"apiStatsEnd":{"type":"string","types":["string"]},"conditions":{"type":"string","types":["string"]},"highRiskThirdPartyEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"uningestedApiList":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/getRiskScoreInfo

> /api/getRiskScoreInfo

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getRiskScoreInfo":{"post":{"summary":"/api/getRiskScoreInfo","operationId":"https://app.akto.io/api/getRiskScoreInfo-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"sensitiveUrlsInResponse":{"type":"integer","format":"int32","types":["integer"]},"shadowApisCount":{"type":"integer","format":"int32","types":["integer"]},"redacted":{"type":"boolean","types":["boolean"]},"apiCount":{"type":"integer","format":"int32","types":["integer"]},"riskScoreOfCollectionsMap":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]},"lastTrafficSeenMap":{"type":"string","types":["string"]},"uningestedApiCountMap":{"type":"string","types":["string"]},"endpointsFromConditions":{"type":"string","types":["string"]},"sensitiveUnauthenticatedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"endpointsListFromConditions":{"type":"string","types":["string"]},"apiStatsStart":{"type":"string","types":["string"]},"criticalEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"deactivatedHostnameCountMap":{"type":"string","types":["string"]},"countForHostnameDeactivatedCollections":{"type":"string","types":["string"]},"testedEndpointsMaps":{"type":"string","types":["string"]},"severityInfo":{"type":"string","types":["string"]},"apiList":{"type":"string","types":["string"]},"sensitiveSubtypesInCollection":{"type":"string","types":["string"]},"hasUsageEndpoints":{"type":"boolean","types":["boolean"]},"countForUningestedApis":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"timerInfo":{"type":"string","types":["string"]},"response":{"type":"object","properties":{"apiCount":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]},"usersCollectionList":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]},"mcpDataCount":{"type":"integer","format":"int32","types":["integer"]},"allUsersCollections":{"type":"string","types":["string"]},"apiStatsEnd":{"type":"string","types":["string"]},"conditions":{"type":"string","types":["string"]},"highRiskThirdPartyEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"uningestedApiList":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/getCoverageInfoForCollections

> /api/getCoverageInfoForCollections

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getCoverageInfoForCollections":{"post":{"summary":"/api/getCoverageInfoForCollections","operationId":"https://app.akto.io/api/getCoverageInfoForCollections-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}}}}}}}
```

## POST /api/getAllCollections

> /api/getAllCollections

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getAllCollections":{"post":{"summary":"/api/getAllCollections","operationId":"https://app.akto.io/api/getAllCollections-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"sensitiveUrlsInResponse":{"type":"integer","format":"int32","types":["integer"]},"shadowApisCount":{"type":"integer","format":"int32","types":["integer"]},"redacted":{"type":"boolean","types":["boolean"]},"apiCount":{"type":"integer","format":"int32","types":["integer"]},"riskScoreOfCollectionsMap":{"type":"string","types":["string"]},"lastTrafficSeenMap":{"type":"string","types":["string"]},"uningestedApiCountMap":{"type":"string","types":["string"]},"endpointsFromConditions":{"type":"string","types":["string"]},"sensitiveUnauthenticatedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"endpointsListFromConditions":{"type":"string","types":["string"]},"apiStatsStart":{"type":"string","types":["string"]},"criticalEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"deactivatedHostnameCountMap":{"type":"string","types":["string"]},"countForHostnameDeactivatedCollections":{"type":"string","types":["string"]},"testedEndpointsMaps":{"type":"string","types":["string"]},"apiList":{"type":"string","types":["string"]},"severityInfo":{"type":"string","types":["string"]},"sensitiveSubtypesInCollection":{"type":"string","types":["string"]},"hasUsageEndpoints":{"type":"boolean","types":["boolean"]},"countForUningestedApis":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"timerInfo":{"type":"string","types":["string"]},"response":{"type":"object","properties":{"apiCount":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]},"apiCollections":{"type":"array","items":{"type":"object","properties":{"hostName":{"type":"string","types":["string"]},"urlsCount":{"type":"integer","format":"int32","types":["integer"]},"runDependencyAnalyser":{"type":"boolean","types":["boolean"]},"displayName":{"type":"string","types":["string"]},"redact":{"type":"boolean","types":["boolean"]},"sseCallbackUrl":{"type":"string","types":["string"]},"description":{"type":"string","types":["string"]},"mcpCollection":{"type":"boolean","types":["boolean"]},"startTs":{"type":"integer","format":"int32","types":["integer"]},"type":{"type":"string","types":["string"]},"deactivated":{"type":"boolean","types":["boolean"]},"automated":{"type":"boolean","types":["boolean"]},"matchDependencyWithOtherCollections":{"type":"boolean","types":["boolean"]},"envType":{"type":"string","types":["string"]},"vxlanId":{"type":"integer","format":"int32","types":["integer"]},"tagsList":{"type":"string","types":["string"]},"userSetEnvType":{"type":"string","types":["string"]},"name":{"type":"string","types":["string"]},"genAICollection":{"type":"boolean","types":["boolean"]},"id":{"type":"integer","format":"int32","types":["integer"]},"isOutOfTestingScope":{"type":"boolean","types":["boolean"]},"conditions":{"type":"string","types":["string"]},"sampleCollectionsDropped":{"type":"boolean","types":["boolean"]}},"types":["object"]},"types":["array"]},"mcpDataCount":{"type":"integer","format":"int32","types":["integer"]},"usersCollectionList":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]},"allUsersCollections":{"type":"string","types":["string"]},"apiStatsEnd":{"type":"string","types":["string"]},"conditions":{"type":"string","types":["string"]},"highRiskThirdPartyEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"uningestedApiList":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/getAllUsersCollections

> /api/getAllUsersCollections

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getAllUsersCollections":{"post":{"summary":"/api/getAllUsersCollections","operationId":"https://app.akto.io/api/getAllUsersCollections-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"NUMBER":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/getSeveritiesCountPerCollection

> /api/getSeveritiesCountPerCollection

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/getSeveritiesCountPerCollection":{"post":{"summary":"/api/getSeveritiesCountPerCollection","operationId":"https://app.akto.io/api/getSeveritiesCountPerCollection-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"],"required":["apiCollectionId"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","types":["object"]}}}}}}}}}
```

## POST /api/fetchCollectionWiseApiEndpoints

> /api/fetchCollectionWiseApiEndpoints

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/fetchCollectionWiseApiEndpoints":{"post":{"summary":"/api/fetchCollectionWiseApiEndpoints","operationId":"https://app.akto.io/api/fetchCollectionWiseApiEndpoints-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"string","types":["string"]}},"types":["object"],"required":["apiCollectionId"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"endpoints":{"type":"string","types":["string"]},"notTestedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"newCount":{"type":"integer","format":"int32","types":["integer"]},"oldCount":{"type":"integer","format":"int32","types":["integer"]},"method":{"type":"string","types":["string"]},"description":{"type":"string","types":["string"]},"severitiesCountPerCollection":{"type":"string","types":["string"]},"skip":{"type":"integer","format":"int32","types":["integer"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"accessTypes":{"type":"string","types":["string"]},"summaryInfoForChanges":{"type":"string","types":["string"]},"filters":{"type":"string","types":["string"]},"url":{"type":"string","types":["string"]},"deMergedApis":{"type":"string","types":["string"]},"filterOperators":{"type":"string","types":["string"]},"urls":{"type":"string","types":["string"]},"sortKey":{"type":"string","types":["string"]},"response":{"type":"string","types":["string"]},"severityMapForCollection":{"type":"string","types":["string"]},"sortOrder":{"type":"integer","format":"int32","types":["integer"]},"limit":{"type":"integer","format":"int32","types":["integer"]},"onlyOnceTestedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]}}}}}}}}}
```

## POST /api/fetchIpLevelApiCallStats

> /api/fetchIpLevelApiCallStats

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/fetchIpLevelApiCallStats":{"post":{"summary":"/api/fetchIpLevelApiCallStats","operationId":"https://app.akto.io/api/fetchIpLevelApiCallStats-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","types":["string"]},"startWindow":{"type":"integer","format":"int32","types":["integer"]},"endWindow":{"type":"integer","format":"int32","types":["integer"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"url":{"type":"string","types":["string"]}},"types":["object"],"required":["method","startWindow","endWindow","apiCollectionId","url"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"string","types":["string"]},"limit":{"type":"integer","format":"int32","types":["integer"]},"startWindow":{"type":"integer","format":"int32","types":["integer"]},"skip":{"type":"integer","format":"int32","types":["integer"]},"endWindow":{"type":"integer","format":"int32","types":["integer"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"sensitiveSampleData":{"type":"string","types":["string"]},"traffic":{"type":"string","types":["string"]},"sampleDataList":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/fetchApiInfosForCollection

> /api/fetchApiInfosForCollection

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/fetchApiInfosForCollection":{"post":{"summary":"/api/fetchApiInfosForCollection","operationId":"https://app.akto.io/api/fetchApiInfosForCollection-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"],"required":["apiCollectionId"]}}}},"responses":{"200":{"description":"description","headers":{"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"date":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"vary":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"redacted":{"type":"boolean","types":["boolean"]},"apiInfoList":{"type":"array","items":{"type":"object","properties":{"responseCodes":{"type":"array","items":{"type":"integer","format":"int32","types":["integer"]},"types":["array"]},"discoveredTimestamp":{"type":"integer","format":"int32","types":["integer"]},"sources":{"type":"object","properties":{"HAR":{"type":"object","properties":{"timestamp":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]}},"types":["object"]},"violations":{"type":"string","types":["string"]},"lastCalculatedTime":{"type":"integer","format":"int32","types":["integer"]},"lastTested":{"type":"integer","format":"int32","types":["integer"]},"description":{"type":"string","types":["string"]},"severityScore":{"type":"number","types":["number"]},"lastSeen":{"type":"integer","format":"int32","types":["integer"]},"actualAuthType":{"type":"array","items":{"type":"string","types":["string"]},"types":["array"]},"allAuthTypesFound":{"type":"array","items":{"type":"array","items":{"type":"string","types":["string"]},"types":["array"]},"types":["array"]},"isSensitive":{"type":"boolean","types":["boolean"]},"collectionIds":{"type":"array","items":{"type":"integer","format":"int32","types":["integer"]},"types":["array"]},"riskScore":{"type":"number","types":["number"]},"id":{"type":"object","properties":{"method":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"url":{"type":"string","types":["string"]}},"types":["object"]},"apiType":{"type":"string","types":["string"]}},"types":["object"]},"types":["array"]}},"types":["object"]}}}}}}}}}
```

## POST /api/fetchApiCallStats

> /api/fetchApiCallStats

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/fetchApiCallStats":{"post":{"summary":"/api/fetchApiCallStats","operationId":"https://app.akto.io/api/fetchApiCallStats-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","types":["string"]},"endEpoch":{"type":"integer","format":"int32","types":["integer"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"startEpoch":{"type":"integer","format":"int32","types":["integer"]},"url":{"type":"string","types":["string"]}},"types":["object"],"required":["method","endEpoch","apiCollectionId","startEpoch","url"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","format":"int32","types":["integer"]},"startWindow":{"type":"integer","format":"int32","types":["integer"]},"skip":{"type":"integer","format":"int32","types":["integer"]},"endWindow":{"type":"integer","format":"int32","types":["integer"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"sensitiveSampleData":{"type":"string","types":["string"]},"traffic":{"type":"string","types":["string"]},"sampleDataList":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/fetchApiInfosFromSTIs

> /api/fetchApiInfosFromSTIs

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/fetchApiInfosFromSTIs":{"post":{"summary":"/api/fetchApiInfosFromSTIs","operationId":"https://app.akto.io/api/fetchApiInfosFromSTIs-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"],"required":["apiCollectionId"]}}}},"responses":{"200":{"description":"description","headers":{"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"date":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"vary":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"list":{"type":"array","items":{"type":"object","properties":{"startTs":{"type":"integer","format":"int32","types":["integer"]},"changesCount":{"type":"integer","format":"int32","types":["integer"]},"_id":{"type":"object","properties":{"method":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"url":{"type":"string","types":["string"]}},"types":["object"]}},"types":["object"]},"types":["array"]}},"types":["object"]}}}}}}}}}
```

## POST /api/fetchEndpointsCount

> /api/fetchEndpointsCount

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/fetchEndpointsCount":{"post":{"summary":"/api/fetchEndpointsCount","operationId":"https://app.akto.io/api/fetchEndpointsCount-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"endTimestamp":{"type":"integer","format":"int32","types":["integer"]},"startTimestamp":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"],"required":["endTimestamp","startTimestamp"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"listOfEndpointsInCollection":{"type":"string","types":["string"]},"endpoints":{"type":"string","types":["string"]},"notTestedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]},"method":{"type":"string","types":["string"]},"newCount":{"type":"integer","format":"int32","types":["integer"]},"oldCount":{"type":"integer","format":"int32","types":["integer"]},"description":{"type":"string","types":["string"]},"skip":{"type":"integer","format":"int32","types":["integer"]},"severitiesCountPerCollection":{"type":"string","types":["string"]},"summaryInfoForChanges":{"type":"string","types":["string"]},"accessTypes":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"filters":{"type":"string","types":["string"]},"url":{"type":"string","types":["string"]},"deMergedApis":{"type":"string","types":["string"]},"urls":{"type":"string","types":["string"]},"filterOperators":{"type":"string","types":["string"]},"sortKey":{"type":"string","types":["string"]},"response":{"type":"string","types":["string"]},"severityMapForCollection":{"type":"string","types":["string"]},"sortOrder":{"type":"integer","format":"int32","types":["integer"]},"limit":{"type":"integer","format":"int32","types":["integer"]},"onlyOnceTestedEndpointsCount":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]}}}}}}}}}
```

## POST /api/fetchSampleData

> /api/fetchSampleData

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/fetchSampleData":{"post":{"summary":"/api/fetchSampleData","operationId":"https://app.akto.io/api/fetchSampleData-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"url":{"type":"string","types":["string"]}},"types":["object"],"required":["method","apiCollectionId","url"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"string","types":["string"]},"limit":{"type":"integer","format":"int32","types":["integer"]},"startWindow":{"type":"integer","format":"int32","types":["integer"]},"skip":{"type":"integer","format":"int32","types":["integer"]},"endWindow":{"type":"integer","format":"int32","types":["integer"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"sensitiveSampleData":{"type":"string","types":["string"]},"sampleDataList":{"type":"array","items":{"type":"object","properties":{"collectionIds":{"type":"array","items":{"type":"integer","format":"int32","types":["integer"]},"types":["array"]},"id":{"type":"object","properties":{"method":{"type":"string","types":["string"]},"bucketEndEpoch":{"type":"integer","format":"int32","types":["integer"]},"bucketStartEpoch":{"type":"integer","format":"int32","types":["integer"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"url":{"type":"string","types":["string"]},"responseCode":{"type":"integer","format":"int32","types":["integer"]}},"types":["object"]},"samples":{"type":"array","items":{"type":"string","types":["string"]},"types":["array"]}},"types":["object"]},"types":["array"]},"traffic":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## POST /api/generateOpenApiFile

> /api/generateOpenApiFile

```json
{"openapi":"3.0.1","info":{"title":"Akto","version":"1.0.0"},"paths":{"/api/generateOpenApiFile":{"post":{"summary":"/api/generateOpenApiFile","operationId":"https://app.akto.io/api/generateOpenApiFile-POST","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"description":"You can get this from Settings > Integrations > Akto APls > Generate token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"lastFetchedMethod":{"type":"string","types":["string"]},"apiCollectionId":{"type":"integer","format":"int32","types":["integer"]},"lastFetchedUrl":{"type":"string","types":["string"]}},"types":["object"],"required":["lastFetchedMethod","apiCollectionId","lastFetchedUrl"]}}}},"responses":{"200":{"description":"description","headers":{"date":{"schema":{"type":"string","types":["string"]}},"content-length":{"schema":{"type":"integer","format":"int32","types":["integer"]}},"vary":{"schema":{"type":"string","types":["string"]}},"via":{"schema":{"type":"string","types":["string"]}},"access-control-allow-origin":{"schema":{"type":"string","types":["string"]}},"access-control-allow-credentials":{"schema":{"type":"string","types":["string"]}},"content-type":{"schema":{"type":"string","types":["string"]}},"alt-svc":{"schema":{"type":"string","types":["string"]}},"cache-control":{"schema":{"type":"string","types":["string"]}},"content-language":{"schema":{"type":"string","types":["string"]}}},"content":{"application/json":{"schema":{"type":"object","properties":{"openAPIString":{"type":"string","types":["string"]},"importType":{"type":"string","types":["string"]},"uploadDetails":{"type":"string","types":["string"]},"uploadId":{"type":"string","types":["string"]},"apiInfoKeyList":{"type":"string","types":["string"]},"lastFetchedMethod":{"type":"string","types":["string"]},"lastFetchedUrl":{"type":"string","types":["string"]}},"types":["object"]}}}}}}}}}
```

## Fetch OpenAPI schema for a collection

> Returns the stored OpenAPI/Swagger schema (gunzipped from the database) for the given API collection as a JSON string.\
> \
> Source: \`OpenApiAction.fetchOpenApiSchema()\`

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/fetchOpenApiSchema":{"post":{"summary":"Fetch OpenAPI schema for a collection","description":"Returns the stored OpenAPI/Swagger schema (gunzipped from the database) for the given API collection as a JSON string.\n\nSource: `OpenApiAction.fetchOpenApiSchema()`","operationId":"fetchOpenApiSchema","tags":["OpenAPI / Swagger"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["apiCollectionId"],"properties":{"apiCollectionId":{"type":"integer","description":"Numeric ID of the API collection whose OpenAPI schema to retrieve."}}}}}},"responses":{"200":{"description":"OpenAPI schema returned.","content":{"application/json":{"schema":{"type":"object","properties":{"openApiSchema":{"type":"string","description":"The OpenAPI 3.x / Swagger 2.x schema as a JSON string."},"actionErrors":{"type":"array","items":{"type":"string"}}}}}}}}}}}}
```

## Fetch Swagger file upload logs

> Returns the import status and per-endpoint parsing details for a previous Swagger/OpenAPI file upload identified by \`uploadId\`. Use this to inspect which endpoints parsed successfully, which had non-fatal errors, and which could not be imported at all.\
> \
> Source: \`OpenApiAction.fetchImportLogs()\`

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/fetchSwaggerImportLogs":{"post":{"summary":"Fetch Swagger file upload logs","description":"Returns the import status and per-endpoint parsing details for a previous Swagger/OpenAPI file upload identified by `uploadId`. Use this to inspect which endpoints parsed successfully, which had non-fatal errors, and which could not be imported at all.\n\nSource: `OpenApiAction.fetchImportLogs()`","operationId":"fetchSwaggerImportLogs","tags":["OpenAPI / Swagger"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["uploadId"],"properties":{"uploadId":{"type":"string","description":"ID of the Swagger file upload record to inspect."}}}}}},"responses":{"200":{"description":"Upload details returned.","content":{"application/json":{"schema":{"type":"object","properties":{"uploadDetails":{"type":"object","description":"Aggregated import details for the upload.","properties":{"uploadStatus":{"type":"string","description":"Overall upload status (e.g. SUCCEEDED, FAILED, PROCESSING)."},"logs":{"type":"array","description":"Per-endpoint parse results.","items":{"$ref":"#/components/schemas/ImportLogEntry"}},"collectionErrors":{"type":"array","items":{"type":"string"},"description":"Collection-level errors that apply to the whole upload."},"apisWithErrorsAndParsed":{"type":"integer","description":"Endpoints with non-fatal errors that were still partially parsed."},"apisWithErrorsAndCannotBeImported":{"type":"integer","description":"Endpoints with fatal parse errors that cannot be imported."},"correctlyParsedApis":{"type":"integer","description":"Endpoints that parsed without any errors."},"totalCount":{"type":"integer","description":"Total number of endpoints in the upload."}}},"actionErrors":{"type":"array","items":{"type":"string"}}}}}}}}}}}}
```

## Fetch Postman file upload logs

> Returns import status and per-endpoint parsing details for a previous Postman file upload.\
> \
> Source: \`PostmanAction.fetchImportLogs()\`

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/fetchPostmanImportLogs":{"post":{"summary":"Fetch Postman file upload logs","description":"Returns import status and per-endpoint parsing details for a previous Postman file upload.\n\nSource: `PostmanAction.fetchImportLogs()`","operationId":"fetchPostmanImportLogs","tags":["Postman"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["uploadId"],"properties":{"uploadId":{"type":"string","description":"ID of the Postman file upload record to inspect."}}}}}},"responses":{"200":{"description":"Upload details returned.","content":{"application/json":{"schema":{"type":"object","properties":{"uploadDetails":{"type":"object","properties":{"uploadStatus":{"type":"string"},"uploadId":{"type":"string"},"collectionErrors":{"type":"array","items":{"type":"string"}},"logs":{"type":"array","items":{"$ref":"#/components/schemas/ImportLogEntry"}},"errorCount":{"type":"integer"},"totalCount":{"type":"integer"},"correctlyParsedApis":{"type":"integer"},"apisWithErrorsAndParsed":{"type":"integer"},"apisWithErrorsAndCannotBeImported":{"type":"integer"}}},"actionErrors":{"type":"array","items":{"type":"string"}}}}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.akto.io/api-reference/discovery/fetch-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
