Search attack surface assets
Changed onSearch the hosts, web properties and certificates of your attack surface. A query that references risk.* fields returns risk instances instead of assets. Reference the documentation on Censys Query Language for information about query syntax.
Request
- Base URLhttps://api.platform.censys.io
- URLhttps://api.platform.censys.io/v1/attacksurfaces/{attack_surface_id}/search
- AuthHTTP bearer
Path parameters
The ID of the attack surface, or the literal 'default' for your organization's attack surface. Obtain the attack surface ID using the list attack surfaces endpoint.
Query parameters
The ID of a Censys organization to associate the request with. See the Getting Started docs for more information.
Headers
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
Example request
{
"query": "host.services: (protocol=SSH and not port: 22)"
}Response
Assets found successfully
Changes
- info
endpoint added
- info