---
title: "/api/addApisToCustomCollection"
method: POST
path: "/api/addApisToCustomCollection"
---

# /api/addApisToCustomCollection

`POST /api/addApisToCustomCollection`

## Headers

- `x-api-key` string, required

## Request body

- object
  - `collectionName` string, required
  - `apiList` object[], required
    - `method` string, required
    - `apiCollectionId` integer, required
    - `url` string, required

## Response `200`

description

- object
  - `sensitiveUrlsInResponse` integer
  - `shadowApisCount` integer
  - `redacted` boolean
  - `apiCount` integer
  - `riskScoreOfCollectionsMap` string
  - `lastTrafficSeenMap` string
  - `uningestedApiCountMap` string
  - `endpointsFromConditions` string
  - `sensitiveUnauthenticatedEndpointsCount` integer
  - `endpointsListFromConditions` string
  - `apiStatsStart` string
  - `deactivatedHostnameCountMap` string
  - `criticalEndpointsCount` integer
  - `countForHostnameDeactivatedCollections` string
  - `testedEndpointsMaps` string
  - `apiList` object[]
    - `method` string
    - `apiCollectionId` integer
    - `url` string
  - `severityInfo` string
  - `sensitiveSubtypesInCollection` string
  - `hasUsageEndpoints` boolean
  - `countForUningestedApis` string
  - `apiCollectionId` integer
  - `timerInfo` string
  - `response` object
    - `apiCount` integer
  - `apiCollections` object[]
    - `hostName` string
    - `urlsCount` integer
    - `runDependencyAnalyser` boolean
    - `displayName` string
    - `redact` boolean
    - `sseCallbackUrl` string
    - `description` string
    - `startTs` integer
    - `mcpCollection` boolean
    - `type` string
    - `deactivated` boolean
    - `automated` boolean
    - `matchDependencyWithOtherCollections` boolean
    - `envType` string
    - `vxlanId` integer
    - `tagsList` string
    - `name` string
    - `userSetEnvType` string
    - `genAICollection` boolean
    - `id` integer
    - `isOutOfTestingScope` boolean
    - `sampleCollectionsDropped` boolean
    - `conditions` string
  - `mcpDataCount` integer
  - `usersCollectionList` object
    - `NUMBER` string
  - `allUsersCollections` string
  - `apiStatsEnd` string
  - `conditions` string
  - `uningestedApiList` string
  - `highRiskThirdPartyEndpointsCount` integer

---

[API](https://skmtc.net/akto/apis/aktoswagger.md) · [All operations](https://skmtc.net/akto/apis/aktoswagger/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akto/aktoswagger/versions/37b897810993/schema)
