Skip to main content
Use Cloudinary through Corsair: one client, typed API calls, optional local DB sync, and incoming webhooks documented below. What you get:
  • 110 typed API operations
  • 10 database entities synced for fast .search() / .list() queries
  • 13 incoming webhook event types

Setup

1

Install

2

Add the plugin

corsair.ts
3

Get credentials

Follow Get Credentials if you need help getting keys.
4

Store credentials

Use the key names documented in Get Credentials (for example api_key=, bot_token=, or OAuth client fields).

Authentication

See Get Credentials for how to obtain and store secrets. Auth methods depend on how you configure cloudinary({ ... }) — check the plugin source *PluginOptions type for supported authType values.

Webhooks

This plugin registers 13 webhook handler(s). Configure your provider to POST events to your Corsair HTTP endpoint, then use webhookHooks in the plugin factory for custom logic. See Webhooks for every event path and payload shape, and Webhooks concept for how to set up routing.

Query synced data

Synced entities support corsair.cloudinary.db.<entity>.search() and .list(). See Database for filters and operators.

Example API calls

Read-style (read): adaptive.getAdaptiveStreamingProfiles
Write-style (write): asset.createAssetRelationsByAssetId
See the full list on the API page. Use pnpm corsair list --plugin=cloudinary and pnpm corsair schema <path> locally to inspect schemas.

Hooks

Use hooks on API calls and webhookHooks on incoming events to add logging, approvals, or side effects. See Hooks and the Webhooks page for payload types.

Reference