Your own Cloudinary

New images of your websites go to your Cloudinary account instead of the platform storage.

Get your API key

How it works

  • The connection belongs to your account and applies to every website you own. Without it, images go to the platform storage (as before).
  • Every image upload uses it: the dashboard media library, POST /api/v1/projects/{project_id}/media/upload/, product images and the MCP tool escalateflow_media_upload. The answer says where the image went: "storage": "cloudinary" or "platform".
  • Images are stored under <folder>/<website path>/ in your Cloudinary and served from https://res.cloudinary.com/<cloud_name>/image/upload/…, so you can add Cloudinary transformations to the URL (for example w_800,f_auto,q_auto).
  • Only images. Videos and documents stay on the platform storage.
  • When someone you gave access to one of your websites uploads an image, it goes to your Cloudinary (the website owner's), never to theirs, and they never see your keys.
  • The API secret is stored encrypted and never returned (the API key is shown masked). Connect, key changes, disconnect and failed checks are in the audit log.

Panel

Account → Image storage (/integrations/cloudinary/): status, cloud name, last check, Test connection, Change keys, Disconnect. Find the keys in the Cloudinary console under Settings → API Keys.

REST

Needs an account-wide API key (a key limited to one website gets 403 account_key_required); scoped keys need account:read / account:write.

GETPUTDELETE /api/v1/account/storage/cloudinary/
# connect (checked with Cloudinary before they are saved: a ping, then a 1x1 test upload into the folder, deleted)
curl -X PUT https://app.escalateflow.com/api/v1/account/storage/cloudinary/ \
  -H "Authorization: Bearer $EF_KEY" -H "Content-Type: application/json" \
  -d '{"cloud_name": "my-cloud", "api_key": "123456789012345", "api_secret": "…", "default_folder": "escalateflow"}'

{"success": true, "data": {"connected": true, "uploads_go_to": "cloudinary", "cloud_name": "my-cloud",
 "api_key": "1234...2345", "default_folder": "escalateflow", "last_test_ok": true, "warning": "", …}}

# bad keys: 400 {"success": false, "error": {"code": "invalid_credentials", "message": "Cloudinary refused these keys. Check the cloud name, the API key and the API secret."}}
# codes: invalid (format, see fields) · invalid_cloud_name · invalid_credentials · not_allowed
#        upload_not_allowed (the key cannot upload) · upload_failed · unreachable (502)

curl https://app.escalateflow.com/api/v1/account/storage/cloudinary/ -H "Authorization: Bearer $EF_KEY"          # status
curl -X DELETE https://app.escalateflow.com/api/v1/account/storage/cloudinary/ -H "Authorization: Bearer $EF_KEY" # disconnect
POST /api/v1/account/storage/cloudinary/test/

Checks the stored keys again: data.ok, data.code, data.message, data.status.

MCP

Same service; every tool takes project_id (any of your projects; the connection is the account's).

  • escalateflow_storage_cloudinary_status (read)
  • escalateflow_storage_cloudinary_connect — cloud_name, api_key, api_secret, default_folder
  • escalateflow_storage_cloudinary_test (read)
  • escalateflow_storage_cloudinary_disconnect (destructive: ask the user first)

When Cloudinary fails

An upload is never lost. If your Cloudinary refuses it (expired or revoked keys, quota, outage), the image is stored on the platform storage and the website uses it from there. The upload answer carries storage: "platform" and storage_warning; the status shows warning, fallback_count and last_fallback_at; the owner gets an email (at most one a day). Fix the keys, then run Test: the warning clears and new uploads go to Cloudinary again. Disconnecting never breaks images already in Cloudinary.