Set reward image
Rewards
Set reward image
Sets the reward’s image (shown in the customer app). Accepts any ONE of:
multipart/form-datawith animagefile field- JSON
image_base64(raw base64 pluscontent_type, or adata:URI) — pairs perfectly with AI image APIs that return base64 (e.g. OpenAI’sgpt-imagemodels), so a script can generate and attach artwork in one flow - JSON
image_url(public https URL, downloaded server-side)
JPEG, PNG, or WebP, max 5MB. Replaces any existing image.
POST
Set reward image
Authorizations
API key from the Rigaly dashboard: Authorization: Bearer rgly_sk_...
Path Parameters
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.
Base64-encoded image, or a data:image/...;base64, URI. AI image APIs (e.g. OpenAI gpt-image) return this directly.
Required when image_base64 is raw base64 (not a data: URI).
Available options:
image/jpeg, image/png, image/webp Public https URL of the image to download and attach.