Sources

Add multiple sources

post/sources/add

Request

Query parameters

as_subdomainsboolean

If a keyword is example.example.com and as_subdomains is true, we'll add everything under example.example.com including itself. Otherwise we'll add everything under example.com including itself.

dont_discoverboolean

If keyword is example.com and dont_discover is true, we won't perform subdomain discovery which means that only assets with hostname 'example.com' will be added.

is_elasticboolean

Set to true if assets in these sources should be resolved to their current IP address each time when extracting data

Request body

string[] required

Example request

[
  "example.com"
]

Response

OK

idnumber
keywordstring
warningstring
alreadyAddedstring
invalidstring
blacklistedstring

Example response

[
  {
    "id": 13,
    "keyword": "example.com",
    "warning": "This domain name (bad.com) is invalid.",
    "alreadyAdded": "The source example.com is already in your inventory.",
    "invalid": "The provided keyword test.test does not contain any valid domain name or the domain name is not permitted.",
    "blacklisted": "This domain name blacklisted.com is blacklisted."
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.