1
Generate upload URL
Request a temporary file ID and a time-limited pre-signed URL.
2
Upload the binary
Upload your file directly to the pre-signed URL.
3
Create the image
Create an image from the uploaded file. By default, this also starts the first scan.
Step 1: Generate upload URL
Call this endpoint to create a temporary file and receive its upload URL.Request
Response
The endpoint returns201 Created with the temporary file id and the uploadUrl for the next step.
The temporary file belongs to the product in the request path and to the user or API client that generated it. Only that same identity can create an image from it, and each temporary file can be used once.
Step 2: Upload the binary
Upload your binary to theuploadUrl from Step 1 with a PUT request.
Request
Authorization header, because the URL itself is signed.
Step 3: Create the image
After the upload returns HTTP 200, create the image. Send the fields as a JSON body. EndpointRequest body
Start a scan of the image right after it is created. Set to
false to create the image without scanning it.Request
Response
The endpoint returns201 Created with the new image. When a scan was started, the scans array contains it.
id to poll the scan or upload debug symbols.
Errors
If image creation fails, the temporary file cannot be reused. Repeat the workflow from Step 1 to retry.