Skip to main content
POST
Set level image

Authorizations

Authorization
string
header
required

API key from the Rigaly dashboard: Authorization: Bearer rgly_sk_...

Path Parameters

id
string<uuid>
required

Body

Provide exactly one of image_base64 (raw base64 + content_type, or a data: URI) or image_url (public https, downloaded server-side). JPEG/PNG/WebP, max 5MB.

image_base64
string

Base64-encoded image, or a data:image/...;base64, URI. AI image APIs (e.g. OpenAI gpt-image) return this directly.

content_type
enum<string>

Required when image_base64 is raw base64 (not a data: URI).

Available options:
image/jpeg,
image/png,
image/webp
image_url
string

Public https URL of the image to download and attach.

Response

Image updated

success
boolean
Example:

true

message
string
data
object