Overview
VIESUS Cloud is a managed GraphQL API for image and PDF enhancement. No infrastructure required — upload, enhance, retrieve.
Last updated
Was this helpful?
Was this helpful?
1. Authenticate → x-api-key header on every request
2. Upload → from URL or via signed upload URL
3. Enhance → createEnhancedImage mutation
4. Poll / webhook → check status or receive push notification
5. Retrieve → download from fullUrl# 1. Upload from URL
UPLOAD_ID=$(curl -s -X POST https://api.viesus.cloud/graphql \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR-API-KEY" \
-d '{"query":"mutation { createUploadFromUrl(input: { url: \"https://example.com/photo.jpg\" }) { id } }"}' \
| jq -r '.data.createUploadFromUrl.id')
# 2. Enhance
ENHANCEMENT_ID=$(curl -s -X POST https://api.viesus.cloud/graphql \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR-API-KEY" \
-d "{\"query\":\"mutation { createEnhancedImage(uploadId: \\\"$UPLOAD_ID\\\", input: { mode: ENHANCE }) { id status } }\"}" \
| jq -r '.data.createEnhancedImage.id')
# 3. Check status
curl -s -X POST https://api.viesus.cloud/graphql \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR-API-KEY" \
-d "{\"query\":\"query { enhancedImage(id: \\\"$ENHANCEMENT_ID\\\") { status fullUrl } }\"}"