Investigations: Create file upload
Changed onPrepare to attach an evidence file to an investigation. Use this endpoint to stage evidence, such as logs, malware reports, or alert exports, so an AI investigation can use it.<br><br>This endpoint does not accept the file. It returns a URL to send the file to and an identifier to pass to the create job endpoint afterwards.<br><br>Upload the file with an HTTP PUT to upload_url and send upload_headers exactly as returned by this endpoint. The URL grants access to that one file and stops working at expire_time; a file uploaded before that stays usable afterwards. Prepare one upload per file.<br><br>Start the investigation promptly after uploading. There is a limit on how many uploaded files you may hold without using them and starting an investigation from a file releases its slot. A file that no investigation references is discarded once it passes the service's retention window for unused uploads. A file an investigation does reference is kept with that investigation for as long as the investigation itself.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint does not cost any credits to execute.
Request
- Base URLhttps://api.platform.censys.io
- URLhttps://api.platform.censys.io/v3/threat-hunting/investigations/files
- AuthHTTP bearer
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
{
"content_type": "application/pdf",
"filename": "incident-report.pdf",
"size_bytes": 1048576
}Response
Upload prepared successfully
Example response
{
"result": {
"file_id": "file_550e8400-e29b-41d4-a716-446655440000"
}
}Changes
- info
endpoint added
- info