API reference

SaaS Image API · version 1.0.0 · base URL https://app.imagebake.com/v1

REST API of the workflow-based image editing SaaS: upload images, run them through a published workflow, download the output files.

Authentication

Every request carries an API key: Authorization: Bearer sk_live_…. A key is created in the interface (API keys menu); it is shown only once. Its scopes limit what it can do: workflows:read, workflows:write, runs:read, runs:write. Routes marked "session" are reserved for the web interface.

Conventions

  • JSON everywhere, ISO 8601 dates, sizes in bytes.
  • Prefixed identifiers: wf_ (workflow), wfv_ (version), ast_ (file), run_ (run), item_ (image of a run), out_ (output file), key_ (API key), team_, usr_.
  • Lists paginated by cursor: { data, links, meta }. Pass meta.next_cursor in ?cursor= for the next page (null at the end); ?per_page= sets the page size.
  • Errors in a single format { "error": { "type", "code", "message", "details" } }. Check code, which is stable, rather than message.
  • Rate limit per key depending on the plan: X-RateLimit-Limit and X-RateLimit-Remaining headers, then 429 with Retry-After.
  • Idempotency: the Idempotency-Key header on POST /workflows/{workflow}/runs returns the same run if the request is replayed.

Typical flow

  1. POST /uploads: one pre-signed upload URL per file; send the file with PUT directly to that URL.
  2. POST /uploads/{asset}/confirm: the file is checked and becomes usable (ast_…).
  3. POST /workflows/{workflow}/runs with assets and archive: true (or ?wait=30 to wait for the end).
  4. GET /runs/{run} until a final status (succeeded, partial, failed, canceled), or a webhook.
  5. GET /runs/{run}/archive: redirect to the ZIP; or GET /runs/{run}/outputs for each file.

Full examples (curl, Node, PHP) in the repository's docs/api-examples/.

Admin

GET/healthpublic

Checks that the database, Redis and S3 storage respond

Reference action: same logic exposed over HTTP (GET /v1/health) and as a command (app:health).

Response 200

All services respond.

FieldType
status"ok" | "degraded"
checksobject

Errors

  • 503
curl -X GET "https://app.imagebake.com/v1/health"

GET/statuspublic

Public service status, for the status page

Public service status, for the status page (/status in the SPA) and external probes: one status per component (operational, degraded, outage), with no internal details.

  • API, database, cache (Redis), storage: GetHealthStatus; - processing: outage without a Horizon worker, degraded if a queue exceeds its threshold or if the image failure rate exceeds the alert one (MeasureOperations, config/ops.php).

Response 200

`PublicStatusResource`

FieldType
status"outage" | "degraded" | "operational"
versionstring
updated_atstring
componentsobject[]

Errors

  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/status"

Assets

POST/uploadsruns:write

Creates a `pending` asset for each announced file and returns what is needed to send it straight to the bucket

Creates a pending asset for each announced file and returns what is needed to send it straight to the bucket: a pre-signed PUT URL, or one URL per part above 10 MB (S3 multipart). The file never goes through PHP; the client then calls ConfirmUpload.

Body (JSON)

FieldTypeDescription
kind"source" | "watermark"
files *object[]
files[].name *string
files[].size *integer
files[].type"image/jpeg" | "image/png" | "image/webp" | "image/avif" | "image/gif" | "image/tiff"

Informative only: the actual type is read from the bytes on confirmation.

Response 201

Array of `UploadResource`

FieldType
dataobject[]

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 422 file_too_large, validation_failed
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/uploads" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

POST/uploads/{asset}/confirmruns:write

Confirms that a file has been sent to the bucket

Confirms that a file has been sent to the bucket: completes the multipart upload, checks the size without downloading anything, then reads the file to verify and deduplicate it (IngestSourceFile). Idempotent: an asset that is already ready is returned as is.

Parameters

NameInTypeDescription
asset *pathstring

Identifier ast_….

Response 200

`AssetResource`

FieldType
idstring
kind"source" | "output" | "archive" | "preview" | "watermark" | "catalog"
status"pending" | "ready" | "rejected"
original_namestring | null
mimestring | null
sizeinteger | null
widthinteger | null
heightinteger | null
sha256string | null
error_codestring | null
urlstring | null
expires_atstring | null
created_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 409 upload_incomplete, upload_not_found
  • 422 upload_rejected
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/uploads/ast_01jbz8m6k3t7v9w2x4y6z8a0b2/confirm" \
  -H "Authorization: Bearer $API_KEY"

GET/assetsruns:read

Files uploaded by the team and still available, most recent first

Files uploaded by the team and still available, most recent first (picking a sample image in the editor, watermarks).

Parameters

NameInTypeDescription
per_pagequeryinteger
kindquerystring

File type: source (default) or watermark.

cursorquerystring

Cursor of the requested page: meta.next_cursor (or prev_cursor) from the previous response.

Response 200

Array of `AssetResource`

FieldType
dataobject[]
linksobject
metaobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/assets" \
  -H "Authorization: Bearer $API_KEY"

Billing

GET/planspublic

Self-serve plans, from free to the most complete, with their prices and limits

Public: no authentication. The Business plan (custom quote) is not listed: sales_contact_url leads to sales.

Response 200

Array of `PlanResource`

FieldType
dataobject[]
sales_contact_urlstring

Errors

  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/plans"

GET/usageruns:read

A team's usage for the current month

A team's usage for the current month: plan credits, granted, credit packs, used, reserved by ongoing runs, remaining; processed images; credits and images per day.

Response 200

`UsageResource`

FieldType
plan"free" | "starter" | "pro" | "team" | "business"
periodobject
creditsobject
images_processedinteger
dailyobject[]
limitsobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/usage" \
  -H "Authorization: Bearer $API_KEY"

POST/workflows/{workflow}/runs/estimateruns:read

Upper estimate of a run's credits

Upper estimate of a run's credits: each output at most as large as its source, none cached. Reserved on creation (ReserveCredits), adjusted at the end (SettleCredits).

Called by CreateRun, and by the "Run" page before launching: POST /v1/workflows/{wf_…}/runs/estimate. Unknown, not ready or expired assets are ignored.

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

Body (JSON)

FieldTypeDescription
versionstring
assets *string[]

Response 200

FieldType
creditsinteger

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 409 workflow_not_published
  • 422 validation_failed
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2/runs/estimate" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

Catalog

GET/catalogpublic

Published catalog entries, in editorial order

Published catalog entries, in editorial order (sort_order), filterable by category, search (title, summary and tags in both languages, slug), starter templates and featured entries. Texts are rendered in the locale language.

The published list is cached for 10 minutes (catalog.cache_minutes); SyncCatalog invalidates it. No pagination: the catalog has a few dozen entries.

Replaces GET /v1/workflow-templates (starter=1).

Parameters

NameInTypeDescription
categoryquerystring
qquerystringnull
starterqueryboolean
featuredqueryboolean
localequerystring

Response 200

Array of `CatalogWorkflowResource`

FieldType
dataobject[]

Errors

  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/catalog"

GET/catalog/{slug}public

Details of a published catalog entry

Details of a published catalog entry: description, graph, customizable parameters, sample image and output files with signed URLs (the public site downloads them at build time).

Parameters

NameInTypeDescription
slug *pathstring
localequerystring

Response 200

`CatalogWorkflowDetailResource`

FieldType
idstring
slugstring
localestring
category"performance" | "social" | "ecommerce" | "content" | "brand" | "privacy"
titlestring
summarystring
tagsstring[]
graphobject
outputsobject[]
sample_sizeinteger | null
credits_per_imageinteger
is_starterboolean
is_featuredboolean
guest_enabledboolean
landing_slugstring | null
duplicates_countinteger
published_atstring | null
descriptionstring
fingerprintstring
engine_versionstring
highlighted_paramsobject[]
sampleobject | null
rendered_atstring | null

Errors

  • 403 forbidden
  • 404 catalog_workflow_not_found
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/catalog/<slug>"

POST/catalog/{slug}/duplicateworkflows:write

Duplicates a published catalog entry into the team

Duplicates a published catalog entry into the team: copy of the graph (with overrides for the featured parameters, validated against the block schema), workflow named after the title in the user's language ("Title (2)" if the name is taken), published as v1 by default, sample image set as the preview image. The copy is independent: changing one does not affect the other; only source_catalog_fingerprint keeps track of the copied version.

Origin: ref (the /use/:slug parameter, e.g. landing:social-media-image-resizer) is kept in the usage event, for the "Acquisition" widget; a malformed value is ignored.

Idempotency: with the same Idempotency-Key, the team gets the same workflow back (200), without a duplicate.

Parameters

NameInTypeDescription
slug *pathstring
Idempotency-Keyheaderstring

Key chosen by the client (1 to 255 characters): when replayed, the request returns the same workflow (200) without creating another one.

Body (JSON)

FieldTypeDescription
namestring | null
publishboolean
overridesstring[]
source"app" | "landing"
locale"en" | "fr"
refstring | null

Origin (ref from /use/:slug): normalized, ignored if malformed.

Response 200

Replayed request (same Idempotency-Key): the workflow already created.

FieldType
idstring
namestring
slugstring
descriptionstring | null
draftobject
latest_versionobject | null
preview_sampleobject | null
source_catalogobject | null
archived_atstring | null
created_atstring
updated_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 402 plan_limit_exceeded
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 catalog_workflow_not_found
  • 422 invalid_override, validation_failed
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/catalog/<slug>/duplicate" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

POST/catalog/{slug}/trypublic

Account-free trial of a catalog entry marked `guest`

Account-free trial of a catalog entry marked guest: one image uploaded from the interface, processed by the catalog graph (with the customized featured parameters), queued (ProcessGuestRun).

Safeguards, in order: feature enabled, request from the SPA (Sanctum session, CSRF checked), Cloudflare Turnstile token (VerifyTurnstileToken), valid parameters, quota of the visitor and their IP (GetGuestQuota, under a per-IP lock), then image check (IngestSourceFile, free plan limits). The trial counts against the quota as soon as it is created; once rejected or failed, it no longer counts.

Parameters

NameInTypeDescription
slug *pathstring

Response 202

Trial created, queued.

FieldType
idstring
status"pending" | "queued" | "running" | "succeeded" | "failed"
workflowobject
sourceobject | null
outputsobject[]
errorobject | null
duration_msinteger | null
created_atstring
finished_atstring | null
expires_atstring

Errors

  • 403 captcha_failed, forbidden, guest_not_allowed, interface_required
  • 404 catalog_workflow_not_found
  • 422 invalid_override, upload_rejected, validation_failed
  • 429 guest_quota_exceeded, too_many_requests
  • 503 guest_runs_unavailable
curl -X POST "https://app.imagebake.com/v1/catalog/<slug>/try" \
  -H "Content-Type: application/json" \
  -d '{ … }'

GET/guest/quotapublic

Remaining account-free trials

Remaining account-free trials: daily_limit per visitor (cookie) and ip_daily_limit per IP address over the last window_hours hours; the stricter of the two wins. Failed trials do not count.

Response 200

`GuestQuotaResource`

FieldType
limitinteger
usedinteger
remaininginteger
window_hoursinteger
resets_atstring | null

Errors

  • 403 interface_required
  • 429 too_many_requests
  • 503 guest_runs_unavailable
curl -X GET "https://app.imagebake.com/v1/guest/quota"

GET/guest/runs/{guestRun}public

Status of an account-free trial and its files

Status of an account-free trial and its files (signed URLs), for the visitor who started it (same browser cookie); 404 for anyone else, and once the trial has expired.

The interface polls it until processing ends.

Parameters

NameInTypeDescription
guestRun *pathstring

Response 200

`GuestRunResource`

FieldType
idstring
status"pending" | "queued" | "running" | "succeeded" | "failed"
workflowobject
sourceobject | null
outputsobject[]
errorobject | null
duration_msinteger | null
created_atstring
finished_atstring | null
expires_atstring

Errors

  • 403 forbidden, interface_required
  • 404 guest_run_not_found
  • 429 too_many_requests
  • 503 guest_runs_unavailable
curl -X GET "https://app.imagebake.com/v1/guest/runs/<guestRun>"

Engine

GET/blockspublic

Catalog of blocks and parameter schemas, from which the editor generates its forms

Response 200

Array of `BlockResource`

FieldType
dataobject[]
curl -X GET "https://app.imagebake.com/v1/blocks"

Identity

GET/me/export/downloadpublic

Downloads an account data export, from the signed link sent by email

Downloads an account data export, from the signed link sent by email: redirects to the ZIP (URL valid for 15 minutes). Does not require a session: the link can be opened in another browser.

Parameters

NameInTypeDescription
export *querystring
expires *queryinteger
signature *querystring

Errors

  • 410 export_expired
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/me/export/download"

GET/me

Caller's user, current team, limits and API key

The user is null with an API key, the key is null with a session.

Response 200

`MeResource`

FieldType
userobject | null
teamobject
limitsobject
api_keyobject | null

Errors

  • 401 invalid_api_key, unauthenticated
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/me" \
  -H "Authorization: Bearer $API_KEY"

Runs

POST/workflows/{workflow}/runsruns:write

Runs a published workflow on a batch of images

Runs a published workflow on a batch of images: already uploaded assets and/or imported URLs (ImportAssetFromUrl). Creates the run (queued) and one image per source, reserves the estimated credits (ReserveCredits, 402 if the monthly quota is not enough), then DispatchRun.

Idempotency: with the same Idempotency-Key, the team gets the same run back, without restarting anything.

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

waitqueryinteger

Wait for the run to finish, up to this number of seconds (30 at most). The outputs are then included in the response.

Idempotency-Keyheaderstring

Key chosen by the client (1 to 255 characters): when replayed, the request returns the same run (200) without creating another one.

Body (JSON)

FieldTypeDescription
versionstring
assetsstring[]
urlsstring[]
archiveboolean
webhook_urlstring | null

Response 200

Run already created with the same `Idempotency-Key`.

FieldType
idstring
workflow_idstring
versionobject
origin"ui" | "api" | "cli" | "admin"
status"queued" | "running" | "succeeded" | "partial" | "failed" | "canceled"
countsobject
creditsobject
archiveobject
webhook_urlstring | null
errorsobject[]
outputsobject[]
created_atstring
started_atstring | null
finished_atstring | null
duration_msinteger | null

Errors

  • 401 invalid_api_key, unauthenticated
  • 402 quota_exceeded
  • 403 email_unverified, forbidden, insufficient_scope, plan_limit_exceeded
  • 404 not_found
  • 409 workflow_archived, workflow_not_published
  • 422 invalid_assets, invalid_webhook_url, no_images, too_many_images, validation_failed
  • 429 too_many_requests
  • 503 billing_busy, file_too_large, too_many_redirects, url_unreachable
curl -X POST "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2/runs" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

GET/runsruns:read

A team's runs, most recent first, filterable by status and by workflow

Parameters

NameInTypeDescription
statusquerystring
workflowquerystring
per_pagequeryinteger
cursorquerystring

Cursor of the requested page: meta.next_cursor (or prev_cursor) from the previous response.

Response 200

Array of `RunResource`

FieldType
dataobject[]
linksobject
metaobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/runs" \
  -H "Authorization: Bearer $API_KEY"

GET/runs/{run}runs:read

Status, counters and per-image errors of a run

Parameters

NameInTypeDescription
run *pathstring

Identifier run_….

Response 200

`RunResource`

FieldType
idstring
workflow_idstring
versionobject
origin"ui" | "api" | "cli" | "admin"
status"queued" | "running" | "succeeded" | "partial" | "failed" | "canceled"
countsobject
creditsobject
archiveobject
webhook_urlstring | null
errorsobject[]
outputsobject[]
created_atstring
started_atstring | null
finished_atstring | null
duration_msinteger | null

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/runs/run_01jbz8m6k3t7v9w2x4y6z8a0b2" \
  -H "Authorization: Bearer $API_KEY"

GET/runs/{run}/itemsruns:read

A run's images in upload order, with their status and, on failure, the faulty node

Parameters

NameInTypeDescription
run *pathstring

Identifier run_….

per_pagequeryinteger
cursorquerystring

Cursor of the requested page: meta.next_cursor (or prev_cursor) from the previous response.

Response 200

Array of `RunItemResource`

FieldType
dataobject[]
linksobject
metaobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/runs/run_01jbz8m6k3t7v9w2x4y6z8a0b2/items" \
  -H "Authorization: Bearer $API_KEY"

GET/runs/{run}/outputsruns:read

Files produced by a run, with their signed download URLs

Files produced by a run, with their signed download URLs (15 minutes).

Parameters

NameInTypeDescription
run *pathstring

Identifier run_….

per_pagequeryinteger
cursorquerystring

Cursor of the requested page: meta.next_cursor (or prev_cursor) from the previous response.

Response 200

Array of `RunOutputResource`

FieldType
dataobject[]
linksobject
metaobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/runs/run_01jbz8m6k3t7v9w2x4y6z8a0b2/outputs" \
  -H "Authorization: Bearer $API_KEY"

GET/runs/{run}/archiveruns:read

Signed URL of a finished run's ZIP, valid for 15 minutes

If the archive does not exist (not requested, expired after 48 h, failed), it is (re)built: null in the meantime.

Parameters

NameInTypeDescription
run *pathstring

Identifier run_….

Response 202

FieldType
statusstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 409 no_outputs, run_not_finished
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/runs/run_01jbz8m6k3t7v9w2x4y6z8a0b2/archive" \
  -H "Authorization: Bearer $API_KEY"

POST/runs/{run}/cancelruns:write

Cancels an ongoing run

Cancels an ongoing run: queued images will not be processed (batch cancelled), those in progress finish. FinalizeRun keeps the canceled status and counts what was done. Idempotent on an already cancelled run.

Parameters

NameInTypeDescription
run *pathstring

Identifier run_….

Response 200

`RunResource`

FieldType
idstring
workflow_idstring
versionobject
origin"ui" | "api" | "cli" | "admin"
status"queued" | "running" | "succeeded" | "partial" | "failed" | "canceled"
countsobject
creditsobject
archiveobject
webhook_urlstring | null
errorsobject[]
outputsobject[]
created_atstring
started_atstring | null
finished_atstring | null
duration_msinteger | null

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 409 run_finished
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/runs/run_01jbz8m6k3t7v9w2x4y6z8a0b2/cancel" \
  -H "Authorization: Bearer $API_KEY"

GET/webhooks/secretruns:read

The team's webhook signing secret

The team's webhook signing secret (whsec_…), created on the first call. The recipient uses it to verify the X-Signature header (see SendRunWebhook).

Response 200

FieldType
secretstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/webhooks/secret" \
  -H "Authorization: Bearer $API_KEY"

GET/webhooks/deliveriesruns:read

History of webhook deliveries for the team's runs, most recent first

Parameters

NameInTypeDescription
statusquerystring
per_pagequeryinteger
cursorquerystring

Cursor of the requested page: meta.next_cursor (or prev_cursor) from the previous response.

Response 200

Array of `WebhookDeliveryResource`

FieldType
dataobject[]
linksobject
metaobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/webhooks/deliveries" \
  -H "Authorization: Bearer $API_KEY"

POST/webhooks/deliveries/{delivery}/retryruns:write

Resends an event that was already delivered or abandoned

Resends an event that was already delivered or abandoned: new delivery (same run, same event, same URL), signed with the current secret and sent right away, with its own attempts. The old one stays in the history.

Parameters

NameInTypeDescription
delivery *pathstring

Identifier whd_….

Response 201

`WebhookDeliveryResource`

FieldType
idstring
run_idstring
event"run.succeeded" | "run.partial" | "run.failed"
urlstring
status"pending" | "delivered" | "failed"
attemptsinteger
response_statusinteger | null
last_errorstring | null
next_attempt_atstring | null
delivered_atstring | null
created_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope, plan_limit_exceeded
  • 404 not_found
  • 409 delivery_pending
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/webhooks/deliveries/whd_01jbz8m6k3t7v9w2x4y6z8a0b2/retry" \
  -H "Authorization: Bearer $API_KEY"

Workflows

GET/workflowsworkflows:read

A team's non-archived workflows, most recent first

Parameters

NameInTypeDescription
per_pagequeryinteger
cursorquerystring

Cursor of the requested page: meta.next_cursor (or prev_cursor) from the previous response.

Response 200

Array of `WorkflowResource`

FieldType
dataobject[]
linksobject
metaobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/workflows" \
  -H "Authorization: Bearer $API_KEY"

POST/workflowsworkflows:write

Creates a workflow, with an empty draft

Creates a workflow, with an empty draft (an input connected to an output) or a provided one. Only the shape of the draft is checked. To start from a catalog template: DuplicateCatalogWorkflow.

Body (JSON)

FieldTypeDescription
name *string
descriptionstring | null
draftstring[]

Response 201

`WorkflowResource`

FieldType
idstring
namestring
slugstring
descriptionstring | null
draftobject
latest_versionobject | null
preview_sampleobject | null
source_catalogobject | null
archived_atstring | null
created_atstring
updated_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 422 invalid_workflow, validation_failed
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/workflows" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

GET/workflows/{workflow}workflows:read

A workflow, its draft and its latest version

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

Response 200

`WorkflowResource`

FieldType
idstring
namestring
slugstring
descriptionstring | null
draftobject
latest_versionobject | null
preview_sampleobject | null
source_catalogobject | null
archived_atstring | null
created_atstring
updated_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2" \
  -H "Authorization: Bearer $API_KEY"

PATCH/workflows/{workflow}workflows:write

Updates the name, the description or the draft

Updates the name, the description or the draft (editor autosave). Only the shape of the draft is checked: an incomplete graph is accepted.

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

Body (JSON)

FieldTypeDescription
namestring
descriptionstring | null
draftstring[]

Response 200

`WorkflowResource`

FieldType
idstring
namestring
slugstring
descriptionstring | null
draftobject
latest_versionobject | null
preview_sampleobject | null
source_catalogobject | null
archived_atstring | null
created_atstring
updated_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 422 invalid_workflow, validation_failed
  • 429 too_many_requests
curl -X PATCH "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

DELETE/workflows/{workflow}workflows:write

Archives a workflow

Archives a workflow: it disappears from the list and can no longer be edited or published, but its versions remain readable (runs refer to them). Idempotent.

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

Response 204

No content

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 429 too_many_requests
curl -X DELETE "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2" \
  -H "Authorization: Bearer $API_KEY"

GET/workflows/{workflow}/exportworkflows:read

JSON document of the draft, or of a published version, to keep under version control in a Git repository

Workflow name and description in meta; canonical JSON (sorted keys), hence stable from one export to the next.

Can be re-imported with POST /v1/workflows/import.

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

versionquerystring

Response 200

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2/export" \
  -H "Authorization: Bearer $API_KEY"

POST/workflows/{workflow}/validateworkflows:read

Validates the draft as on publishing, including the plan's node limit

Empty list = publishable.

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

Response 200

Validation result; `errors` is empty if the draft is publishable.

FieldType
validboolean
errorsobject[]

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2/validate" \
  -H "Authorization: Bearer $API_KEY"

GET/workflows/{workflow}/versionsworkflows:read

A workflow's published versions, most recent first, graph included

A workflow's published versions, most recent first, graph included (the editor restores a version into the draft).

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

per_pagequeryinteger
cursorquerystring

Cursor of the requested page: meta.next_cursor (or prev_cursor) from the previous response.

Response 200

Array of `WorkflowVersionResource`

FieldType
dataobject[]
linksobject
metaobject

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 422 validation_failed
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2/versions" \
  -H "Authorization: Bearer $API_KEY"

POST/workflows/{workflow}/versionsworkflows:write

Freezes the draft into a numbered version

Freezes the draft into a numbered version: full validation, execution plan computed once and for all, SHA-256 fingerprint of the canonical JSON. The workflow is locked during the transaction, so two simultaneous publications get distinct numbers.

If the draft has not changed since the latest version (same fingerprint), that version is returned as is.

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

Response 200

Unchanged draft: the latest version.

FieldType
idstring
workflow_idstring
numberinteger
fingerprintstring
engine_versionstring
graphobject
published_bystring | null
created_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope, plan_limit_exceeded
  • 404 not_found
  • 409 workflow_archived
  • 422 invalid_workflow
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2/versions" \
  -H "Authorization: Bearer $API_KEY"

GET/workflows/{workflow}/versions/{number}workflows:read

A published version by its number, or `latest` for the most recent one

Parameters

NameInTypeDescription
workflow *pathstring

Identifier wf_….

number *pathstring

Response 200

`WorkflowVersionResource`

FieldType
idstring
workflow_idstring
numberinteger
fingerprintstring
engine_versionstring
graphobject
published_bystring | null
created_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, forbidden, insufficient_scope
  • 404 not_found
  • 429 too_many_requests
curl -X GET "https://app.imagebake.com/v1/workflows/wf_01jbz8m6k3t7v9w2x4y6z8a0b2/versions/<number>" \
  -H "Authorization: Bearer $API_KEY"

POST/workflows/importworkflows:write

Creates a workflow from an exported document

Creates a workflow from an exported document (request body = the JSON file). The document becomes the draft; meta.name and meta.description become the name and the description.

Body (JSON)

FieldTypeDescription
metaobject
meta.namestring | null
meta.descriptionstring | null

Response 201

`WorkflowResource`

FieldType
idstring
namestring
slugstring
descriptionstring | null
draftobject
latest_versionobject | null
preview_sampleobject | null
source_catalogobject | null
archived_atstring | null
created_atstring
updated_atstring

Errors

  • 401 invalid_api_key, unauthenticated
  • 403 email_unverified, insufficient_scope
  • 422 invalid_workflow, validation_failed
  • 429 too_many_requests
curl -X POST "https://app.imagebake.com/v1/workflows/import" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'