Skip to main content
POST
/
v1
/
workflows
/
prompt-image
Upload a workflow prompt image
curl --request POST \
  --url https://api.cyberdesk.io/v1/workflows/prompt-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "supabase_url": "<string>",
  "signed_url": "<string>",
  "filename": "<string>",
  "content_type": "<string>",
  "size_bytes": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

multipart/form-data
file
file
required

The image file to upload

Response

Successful Response

Response schema for uploaded workflow prompt image

supabase_url
string
required

The stable supabase:// URL to use in workflow prompt HTML. Example: supabase://workflow-prompt-images/org_xxx/prompt-assets/image.png

signed_url
string
required

A temporary signed URL for immediate display (expires in 1 hour)

filename
string
required

The sanitized filename as stored

content_type
string
required

The MIME type of the uploaded image

size_bytes
integer
required

The size of the uploaded file in bytes