Modify Data

API
Description

POST /api/createCollection

Create a new API collection in Akto.

POST /api/createCustomCollection

Create a custom API collection by grouping selected APIs.

POST /api/addApisToCustomCollection

Add APIs to an existing custom collection.

POST /api/saveCollectionDescription

Save or update the description of a collection.

POST /api/updateEnvType

Update the environment type (e.g., prod, staging) for a collection.

POST /api/toggleCollectionsOutOfTestScope

Mark/unmark collections as out of test scope.

POST /api/deactivateCollections

Deactivate specific collections so they are no longer active.

POST /api/deleteMultipleCollections

Delete multiple collections at once.

POST /api/redactCollection

Redact sensitive data within a collection.

POST /api/saveEndpointDescription

Save or update the description of a specific API endpoint.

POST /api/loadParamsOfEndpoint

Load the parameters (query, path, body) of a given API endpoint.

POST /api/loadSensitiveParameters

Load parameters identified as sensitive for a given endpoint/collection.

POST /api/importDataFromOpenApiSpec

Import APIs and collections from an OpenAPI specification file.

POST /api/uploadHar

Upload a HAR (HTTP Archive) file to create or update API data in Akto.

/api/addApisToCustomCollection

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
collectionNamestringRequiredExample: Medium Risk APIs
Responses
200

description

application/json
post
/api/addApisToCustomCollection
200

description

/api/saveEndpointDescription

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
methodstringRequiredExample: GET
descriptionstringRequiredExample: ldklewmldk
apiCollectionIdinteger · int32RequiredExample: 1111111111
urlstringRequiredExample: https://vulnerable-server.akto.io/api/college/revenue/32483
Responses
200

description

application/json
post
/api/saveEndpointDescription
200

description

/api/updateEnvType

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
resetEnvTypesbooleanRequiredExample: false
apiCollectionIdsinteger · int32[]RequiredExample: 1756885433
Responses
200

description

application/json
post
/api/updateEnvType
200

description

/api/toggleCollectionsOutOfTestScope

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
currentIsOutOfTestingScopeValbooleanRequiredExample: false
apiCollectionIdsinteger · int32[]RequiredExample: 1111111111
Responses
200

description

application/json
post
/api/toggleCollectionsOutOfTestScope
200

description

/api/uploadHar

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
skipKafkastringRequiredExample: false
harStringstringRequiredExample: { "log": { "version": "1.2", "creator": { "name": "ChatGPT HAR Generator", "version": "1.0" }, "entries": [ { "startedDateTime": "2025-05-12T10:00:00.000Z", "time": 120, "request": { "method": "GET", "url": "https://example.com/api/data", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Accept", "value": "application/json" }, { "name": "User-Agent", "value": "HAR-Demo/1.0" } ], "queryString": [], "headersSize": 150, "bodySize": 0 }, "response": { "status": 200, "statusText": "OK", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Content-Type", "value": "application/json" } ], "content": { "size": 74, "mimeType": "application/json", "text": "{\"id\":123,\"name\":\"Test Item\",\"description\":\"Sample data for HAR\"}" }, "redirectURL": "", "headersSize": 160, "bodySize": 74 }, "timings": { "send": 20, "wait": 80, "receive": 20 } } ] } }
hsFilestringRequiredExample: { "log": { "version": "1.2", "creator": { "name": "ChatGPT HAR Generator", "version": "1.0" }, "entries": [ { "startedDateTime": "2025-05-12T10:00:00.000Z", "time": 120, "request": { "method": "GET", "url": "https://example.com/api/data", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Accept", "value": "application/json" }, { "name": "User-Agent", "value": "HAR-Demo/1.0" } ], "queryString": [], "headersSize": 150, "bodySize": 0 }, "response": { "status": 200, "statusText": "OK", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Content-Type", "value": "application/json" } ], "content": { "size": 74, "mimeType": "application/json", "text": "{\"id\":123,\"name\":\"Test Item\",\"description\":\"Sample data for HAR\"}" }, "redirectURL": "", "headersSize": 160, "bodySize": 74 }, "timings": { "send": 20, "wait": 80, "receive": 20 } } ] } }
apiCollectionIdinteger · int32RequiredExample: 1756891710
Responses
200

description

application/json
post
/api/uploadHar
200

description

/api/deleteMultipleCollections

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
Responses
200

description

application/json
post
/api/deleteMultipleCollections
200

description

/api/saveCollectionDescription

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
descriptionstringRequiredExample: mlewmdmweldmew
apiCollectionIdinteger · int32RequiredExample: 1111111111
Responses
200

description

application/json
post
/api/saveCollectionDescription
200

description

/api/loadSensitiveParameters

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
apiCollectionIdinteger · int32RequiredExample: 1111111111
Responses
200

description

application/json
post
/api/loadSensitiveParameters
200

description

/api/loadParamsOfEndpoint

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
methodstringRequiredExample: GET
apiCollectionIdinteger · int32RequiredExample: 1111111111
urlstringRequiredExample: https://vulnerable-server.akto.io/api/college/revenue/32483
Responses
200

description

application/json
post
/api/loadParamsOfEndpoint
200

description

/api/createCollection

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
collectionNamestringRequiredExample: kmlkm
Responses
200

description

application/json
post
/api/createCollection
200

description

/api/redactCollection

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
redactedbooleanRequiredExample: true
apiCollectionIdinteger · int32RequiredExample: 1111111111
Responses
200

description

application/json
post
/api/redactCollection
200

description

/api/importDataFromOpenApiSpec

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
openAPIStringstringRequiredExample: { "title": "Akto on akto", "steps": [ { "type": "setViewport", "width": 1290, "height": 326, "deviceScaleFactor": 1, "isMobile": false, "hasTouch": false, "timeout": 40000, "isLandscape": false }, { "type": "navigate", "url": "https://app-akto.us.auth0.com/u/login?state=hKFo2SB3UzduUmpsWnVnSnpjYmptelpkaVYydWV1QmFFTjBGQqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIFluNlEtdk9qXzVRQkVtVjFEQV90NUU4VHpuVE1adnFYo2NpZNkgY0tFNFZOVXlvTG41SnVlb25kdFY2RDlmUGJKZ1ZpajM", "assertedEvents": [ { "type": "navigation", "url": "https://app-akto.us.auth0.com/u/login?state=hKFo2SB3UzduUmpsWnVnSnpjYmptelpkaVYydWV1QmFFTjBGQqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIFluNlEtdk9qXzVRQkVtVjFEQV90NUU4VHpuVE1adnFYo2NpZNkgY0tFNFZOVXlvTG41SnVlb25kdFY2RDlmUGJKZ1ZpajM", "title": "Log in | Akto saas prod" } ] }, { "type": "keyDown", "target": "main", "timeout": 40000, "key": "Meta" }, { "type": "keyUp", "key": "Meta", "target": "main", "timeout": 40000 }, { "type": "change", "value": "[email protected]", "selectors": [ [ "aria/Email address" ], [ "#username" ], [ "xpath///*[@id=\"username\"]" ], [ "pierce/#username" ] ], "target": "main", "timeout": 40000 }, { "type": "click", "target": "main", "selectors": [ [ "aria/Password" ], [ "#password" ], [ "xpath///*[@id=\"password\"]" ], [ "pierce/#password" ] ], "offsetY": 25, "offsetX": 140 }, { "type": "keyDown", "target": "main", "key": "Meta" }, { "type": "keyUp", "key": "Meta", "target": "main", "timeout": 40000 }, { "type": "change", "value": "Lollot@2", "selectors": [ [ "aria/Password" ], [ "#password" ], [ "xpath///*[@id=\"password\"]" ], [ "pierce/#password" ] ], "target": "main", "timeout": 40000 }, { "type": "click", "target": "main", "timeout": 40000, "selectors": [ [ "aria/Continue" ], [ "div.ca17d988b > button" ], [ "xpath//html/body/div/main/section/div/div/div/form/div[2]/button" ], [ "pierce/div.ca17d988b > button" ] ], "offsetY": 21, "offsetX": 173, "assertedEvents": [ { "type": "navigation", "url": "https://app.akto.io/dashboard/observe/inventory", "title": "" } ] } ] }
apiCollectionIdinteger · int32RequiredExample: 1111111111
Responses
200

description

application/json
post
/api/importDataFromOpenApiSpec
200

description

/api/createCustomCollection

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
collectionNamestringRequiredExample: k
Responses
200

description

application/json
post
/api/createCustomCollection
200

description

/api/deactivateCollections

post
Header parameters
x-api-keystringRequired

You can get this from Settings > Integrations > Akto APls > Generate token

Example: API_KEY
Body
Responses
200

description

application/json
post
/api/deactivateCollections
200

description

Last updated

Was this helpful?