---
title: "Add source to inventory"
method: POST
path: "/source/add"
tags: ["Sources"]
---

# Add source to inventory

`POST /source/add`

## Request

- Base URL: `https://asm.cloud.tenable.com/api/1.0`
- URL: `https://asm.cloud.tenable.com/api/1.0/source/add`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tenable/apis/attack-surface-management/docs/source/add/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `as_subdomain` boolean
- `dont_discover` boolean
- `is_elastic` boolean

## Request body

- object
  - `keyword` string, required

## Response `200`

OK

- object
  - `id` integer
  - `keyword` string
  - `results_count` integer
  - `results_fetched` integer
  - `dbdate` integer

## Other responses

- `400`: Returned if your request specified invalid parameters or if your request was improperly formatted.
- `401`: Returned if you do not have permissions to use this endpoint.
- `500`: Returned if an internal error occurred in Tenable Attack Surface Management

---

[API](https://skmtc.dev/tenable/apis/attack-surface-management.md) - [All operations](https://skmtc.dev/tenable/apis/attack-surface-management/llms.txt) - [OpenAPI document](https://skmtc.dev/tenable/apis/attack-surface-management/revisions/465c06285e48?raw)
