Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.

Scopes

containers:write

Body

application/json
registry_id
string<uuid>
required

Connected registry that hosts the image. Connect a registry first, with or without credentials.

reference
string
required

Repository path without the registry host. Google Artifact Registry requires project-id/repository/image. Strix discovers an available version for a repository-only request. Add a tag or digest to override that selection, such as name:v1.2 or name@sha256:.

platform
string | null

OCI platform, for example linux/amd64. Null selects linux/amd64 if available, otherwise the first platform in the discovered or explicit image index. Without a discovered version, null stores linux/amd64. An explicit platform must exist in the image or the request fails with status 400. Later scans use the stored platform by default.

linked_repository_id
string<uuid> | null

Repository that builds this image. Strix shows the link on the image and uses it for remediation context.

watch_tags
string | null

Legacy image inclusion. Use * to include this image in the shared registry rule, or null to exclude it. A different pattern must match the registry's saved rule; otherwise the request fails. Configure the shared rule on the registry webhook endpoint.

scan
boolean
default:false

Start the first scan when the image is added. Use the detected version unless the reference specifies a tag or digest. Ambiguous versions require an explicit selection. Default false.

Response

The image was already tracked.

image
object
required

A tracked container image with counts from its latest completed scan.

created
boolean
required

False when the image was already tracked.

resolved
object | null
required

Verified metadata for the discovered or explicit version. Null when no version is available or the registry cannot identify one version to use.

scan
object | null
required
scan_error
string | null
required

Reason the first scan did not start. Null when scan is set or the caller disabled the scan.