v1

latestOpenAPI 3.1.02026-07-2665179189.7 KB
Images

Get image

⚠️ This endpoint is in public preview.

Retrieve an image by ID. Returns both user-owned and public images.

get/preview/v2/images/{id}

Path parameters

idstring required

A resource path like 'sfc:image:acme:prod:my-image' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

Example:image_k3R-nX9vLm7Qp2Yw5Jd8F

Image ID or resource path

Response

Image details

resource_pathstring required

A resource path for a image resource. Format: sfc:image:<account>:<workspace>:<name>.

ownerstring required
workspacestring required
workspace_idstring required
namestring required
is_publicboolean required

Whether this is an sfc-provided public image.

object'image' required
upload_status'started' | 'uploading' | 'completed' | 'failed' | 'revoked' required
created_atinteger required

Unix timestamp.

providerstring nullable
sha256string nullable

Example response

{
  "id": "image_k3R-nX9vLm7Qp2Yw5Jd8F",
  "resource_path": "sfc:image:<account_id>:<workspace>:<name>",
  "owner": "my-resource-name",
  "workspace": "my-resource-name",
  "workspace_id": "wksp_k3R-nX9vLm7Qp2Yw5Jd8F",
  "name": "my-resource-name",
  "created_at": 1738972800
}