v1

latestOpenAPI 3.1.02026-07-2481742657.4 KB
Supply Chain Intelligence

Search supply chain assets

Search for assets across a supply chain. By default the search covers every supplier in the supply chain; provide supplier_ids to narrow it to specific suppliers. Reference the documentation on Censys Query Language for information about query syntax.

post/v1/supplychains/{supply_chain_id}/assets/search

Path parameters

supply_chain_idstring uuid required

The ID of a Censys supply chain. Obtain the supply chain ID using the list supply chains endpoint to find the IDs of your organization's supply chains.

Example:11111111-2222-3333-4444-555555555555

The ID of a Censys supply chain. Obtain the supply chain ID using the list supply chains endpoint to find the IDs of your organization's supply chains.

Query parameters

organization_idstring uuid required

The ID of a Censys organization to associate the request with. See the Getting Started docs for more information.

Example:11111111-2222-3333-4444-555555555555

The ID of a Censys organization to associate the request with. See the Getting Started docs for more information.

Headers

X-Organization-IDstring uuid

The ID of a Censys organization to associate the request with. See the Getting Started docs for more information. Note: The header parameter is supported for atypical use cases; we recommend always providing this field via the query parameter.

Example:11111111-2222-3333-4444-555555555555

The ID of a Censys organization to associate the request with. See the Getting Started docs for more information. Note: The header parameter is supported for atypical use cases; we recommend always providing this field via the query parameter.

Request body

fieldsstring[] nullable

Specify fields to only return in the response. If you provide fields and omit host.services.port, host.services.transport_protocol, and host.services.protocol, then matched_services will not be returned in the response.

page_sizeinteger nullable

Number of results to return to per page. The default and maximum is 100.

page_tokenstring

page token for the requested page of search results

querystring required

CenQL query string to search upon

supplier_idsstring[] nullable

The IDs of Censys suppliers in the supply chain to narrow the search to, each as a unique UUID string. When omitted, the entire supply chain is searched.

Example request

{
  "query": "host.services: (protocol=SSH and not port: 22)",
  "supplier_ids": [
    "11111111-2222-3333-4444-555555555555"
  ]
}

Response

Assets found successfully