---
name: rendy-api
description: Use when integrating with the Rendy public API (api.rendy.io), which turns real estate listing photos into videos. Covers API keys and scopes, uploading photos, creating listings and generating videos, presets, virtual staging and camera moves, polling status and AI text hooks, exporting zips, webhooks with signature checks, "Sign in with Rendy" OAuth for partner apps, the enterprise single-clip generations API with prepaid credit, errors and rate limits.
---

# Rendy API

Rendy turns listing photos into short real estate videos. This skill is the full reference for its public REST API. Human-readable docs: https://rendy.io/developer/docs. Latest copy of this file: https://rendy.io/developer/docs/SKILL.md.

Base URL (every path below is relative to it):

```
https://api.rendy.io/api/public/v1
```

Requests and responses are JSON unless noted (image upload is multipart). Never hardcode catalog keys (presets, staging styles, camera moves): fetch them, they differ per environment.

## Quick start

1. Create an API key in the Rendy dashboard (Developer → Create API Key). Keys belong to your organization and spend its credits.

2. Upload each photo with POST /images/upload and keep the returned url.

3. Create a listing with POST /listings (address, ratio, imageUrls). It answers 202 with a listingId right away; generation runs in the background.

4. Wait for it: poll GET /listings/:id/status every 3-5 seconds until status is "success" or "error" and textHooks is not "pending", or register a webhook and get told.

5. Fetch GET /listings/:id for the final video URLs and the per-clip URLs, or zip everything with POST /listings/:id/export.

## Authentication

### API keys

Send the key on every request with either header:

```
x-api-key: YOUR_API_KEY

# Or as a Bearer token:
Authorization: Bearer YOUR_API_KEY
```

Keys are organization-scoped: everything created with a key belongs to its organization and spends its credits. Keep keys on the server. Each key has scopes:

| Scope | Access |
| --- | --- |
| `listings:read` | Read listings, catalogs (presets, staging, camera moves), webhooks, generations and balance |
| `listings:write` | Upload images, create listings and generations (spends credits), manage webhooks |
| `exports:read` | Poll export job status |
| `exports:write` | Start zip export jobs |

### Sign in with Rendy (OAuth 2.0 + PKCE)

Building a product that other Rendy users connect to ("Sign in with Rendy")? Use OAuth 2.0 with PKCE instead of asking for their API keys. Each connection acts as that user in their organization (their paid one if they have several) and spends its credits. OAuth clients are created by Rendy: ask us for one, then generate its secret on /developer/auth.

1. Make a PKCE pair: a random code_verifier (43-128 characters) and code_challenge = base64url(SHA-256(code_verifier)). Keep the verifier and a random state with the user's session.

   ```
   const verifier = crypto.randomBytes(32).toString("base64url");
   const challenge = crypto.createHash("sha256").update(verifier).digest("base64url");
   ```

2. Send the user to Rendy. They sign in (or are already signed in), approve your app, and come back to your redirect URL with ?code=…&state=…. Check that state matches.

   ```
   GET https://api.rendy.io/oauth/oauth2/authorize
     ?response_type=code
     &client_id=YOUR_CLIENT_ID
     &redirect_uri=YOUR_REDIRECT_URL
     &scope=openid profile email offline_access listings:read listings:write
     &state=RANDOM_VALUE
     &code_challenge=YOUR_CHALLENGE
     &code_challenge_method=S256
   ```

3. From your server, exchange the code for tokens. Never put the client secret in a browser or mobile app.

   ```
   POST https://api.rendy.io/oauth/oauth2/token
   Content-Type: application/x-www-form-urlencoded

   grant_type=authorization_code
   &code=RETURNED_CODE
   &redirect_uri=YOUR_REDIRECT_URL
   &client_id=YOUR_CLIENT_ID
   &client_secret=YOUR_CLIENT_SECRET
   &code_verifier=YOUR_VERIFIER

   → { "access_token": "rat_…", "refresh_token": "rrt_…", "id_token": "…",
       "token_type": "Bearer", "expires_in": 3600, "scope": "…" }
   ```

4. Call the public API as that user with the access token. Read who they are from the userinfo endpoint.

   ```
   GET https://api.rendy.io/api/public/v1/listings
   Authorization: Bearer ACCESS_TOKEN

   GET https://api.rendy.io/oauth/oauth2/userinfo
   Authorization: Bearer ACCESS_TOKEN
   → { "sub": "user id", "name": "…", "email": "…", "email_verified": true }
   ```

5. Access tokens last one hour. Refresh before then and save the new refresh token every time: the old one stops working. Sending a used refresh token again counts as theft and disconnects the user. A refresh token left unused for 90 days expires.

   ```
   POST https://api.rendy.io/oauth/oauth2/token
   Content-Type: application/x-www-form-urlencoded

   grant_type=refresh_token
   &refresh_token=CURRENT_REFRESH_TOKEN
   &client_id=YOUR_CLIENT_ID
   &client_secret=YOUR_CLIENT_SECRET
   ```

6. To disconnect, revoke the refresh token. Users can also disconnect your app from their side on /developer/auth, after which your tokens answer 401.

   ```
   POST https://api.rendy.io/oauth/oauth2/revoke
   Content-Type: application/x-www-form-urlencoded

   token=REFRESH_TOKEN
   &client_id=YOUR_CLIENT_ID
   &client_secret=YOUR_CLIENT_SECRET
   ```

Endpoints:

| Name | URL |
| --- | --- |
| `Authorize` | https://api.rendy.io/oauth/oauth2/authorize |
| `Token` | https://api.rendy.io/oauth/oauth2/token |
| `Revoke` | https://api.rendy.io/oauth/oauth2/revoke |
| `User info` | https://api.rendy.io/oauth/oauth2/userinfo |
| `Discovery` | https://api.rendy.io/oauth/.well-known/openid-configuration |
| `API base` | https://api.rendy.io/api/public/v1 |

Scopes:

| Scope | Grants |
| --- | --- |
| `openid` | Required for an ID token (OpenID Connect) |
| `profile` | The user's name |
| `email` | The user's email address |
| `offline_access` | A refresh token, to stay connected after the access token expires |
| `listings:read` | Read listings, catalogs (presets, staging, camera moves), webhooks, generations and balance. Only if your client is allowed it |
| `listings:write` | Upload images, create listings and generations (spends credits), manage webhooks. Only if your client is allowed it |
| `exports:read` | Poll export job status. Only if your client is allowed it |
| `exports:write` | Start zip export jobs. Only if your client is allowed it |

An access token can only call these routes (everything else needs an API key):

- `GET /listings`
- `POST /listings`
- `GET /listings/:id`
- `GET /listings/:id/status`
- `POST /listings/:id/export`
- `GET /exports/:jobId`
- `POST /images/upload`
- `GET /presets`
- `GET /staging/styles`
- `GET /staging/animations`
- `GET /camera-movements`

## Listings API

### POST /images/upload — Upload image

Scope: `listings:write`

Upload a single image to get a hosted URL you can pass in the imageUrls array when creating a listing. Send the file as multipart/form-data with the field name "image". Images are optimized to WebP automatically. Max 20 MB.

**Request**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `image` | file (multipart) | yes | Image file (JPEG, PNG, WebP, etc.). |

**Response**

```
200 OK
{
  "url": "https://...supabase.co/.../public-api/uuid.webp"
}
```

**Example**

```bash
curl -X POST https://api.rendy.io/api/public/v1/images/upload \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@/path/to/photo.jpg"
```

**Notes for agents**

You are calling the Rendy API to upload a single image and receive a hosted URL.

Endpoint: POST https://api.rendy.io/api/public/v1/images/upload
Auth: x-api-key header.
Content-Type: multipart/form-data
Field: "image" — the image file (JPEG, PNG, WebP). Max 20 MB. Converted to WebP automatically.

Response (200):
{ url: string }

Use the returned url in the imageUrls[].url field of POST /listings.
Upload images one at a time; call this endpoint once per photo.

### GET /presets — List Presets

Scope: `listings:read`

List all active effect presets usable as imageUrls[].presetKey when creating a listing. Returns descriptive data only: name, description, a sample video, and good/bad input image examples. Presets with staging: true are virtual-staging presets and require the staging fields on POST /listings.

**Response**

```
200 OK
{
  "presets": [
    {
      "key": "DEFAULT",
      "name": "string | null",
      "description": "string | null",
      "sampleVideoUrl": "string | null",
      "goodImageExampleUrl": "string | null",
      "badImageExampleUrl": "string | null",
      "iconUrl": "string | null",
      "order": 0,
      "staging": false,
      "roomType": "string | undefined",  // staging presets only (e.g. "kitchen")
      "categories": ["string"]
    }
  ]
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/presets \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API to list available effect presets.

Endpoint: GET https://api.rendy.io/api/public/v1/presets
Auth: x-api-key header.

Response (200):
{ presets: [{ key, name, description, sampleVideoUrl, goodImageExampleUrl, badImageExampleUrl, iconUrl, order }] }

Use presets[].key as imageUrls[].presetKey when calling POST /listings. "DEFAULT" is the standard camera-movement preset; others apply special effects. sampleVideoUrl shows what the preset produces; goodImageExampleUrl / badImageExampleUrl show which input photos work well or poorly.

staging === true marks a virtual-staging preset: those images MUST also send stagingInputState (and stagingStyleId for "empty-room"). roomType is the room the staging preset targets.

### GET /staging/styles — List Staging Styles

Scope: `listings:read`

Active virtual-staging styles (furniture/decor looks). Use id as imageUrls[].stagingStyleId on POST /listings — required when stagingInputState is "empty-room".

**Response**

```
200 OK
{
  "styles": [
    {
      "id": "uuid",
      "name": "string",
      "order": 0
    }
  ]
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/staging/styles \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API to list virtual-staging styles.

Endpoint: GET https://api.rendy.io/api/public/v1/staging/styles
Auth: x-api-key header.

Response (200):
{ styles: [{ id, name, order }] }

Use styles[].id as imageUrls[].stagingStyleId on POST /listings. It is REQUIRED when that image sets stagingInputState: "empty-room", and ignored for "already-staged". Never invent style ids — always read them from this endpoint.

### GET /staging/animations — List Staging Animations

Scope: `listings:read`

Active virtual-staging animations (the motion applied to a staged room). Use id as imageUrls[].stagingAnimationId on POST /listings. Optional — omit for a static, no-motion staged clip.

**Response**

```
200 OK
{
  "animations": [
    {
      "id": "uuid",
      "name": "string",
      "previewUrl": "string | null",
      "iconUrl": "string | null",
      "order": 0
    }
  ]
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/staging/animations \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API to list virtual-staging animations.

Endpoint: GET https://api.rendy.io/api/public/v1/staging/animations
Auth: x-api-key header.

Response (200):
{ animations: [{ id, name, previewUrl, iconUrl, order }] }

Use animations[].id as imageUrls[].stagingAnimationId on POST /listings (works with both "empty-room" and "already-staged"). It is optional: omit it for a static staged image with no camera motion. previewUrl shows what the animation looks like.

### GET /camera-movements — List Camera Movements

Scope: `listings:read`

Manual camera-movement action keys you can pick per image instead of letting Rendy choose. Use key as imageUrls[].cameraActionKey on POST /listings (DEFAULT preset only). Only keys whose underlying movement is currently configured are returned, so always read from here rather than hardcoding.

**Response**

```
200 OK
{
  "cameraMovements": [
    {
      "key": "SLIDER_LEFT",          // pass as imageUrls[].cameraActionKey
      "movement": "SLIDER",          // underlying movement
      "direction": "LEFT" | "RIGHT" | "FORWARD"
    }
  ]
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/camera-movements \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API to list manual camera-movement keys.

Endpoint: GET https://api.rendy.io/api/public/v1/camera-movements
Auth: x-api-key header.

Response (200):
{ cameraMovements: [{ key, movement, direction }] }

Use cameraMovements[].key as imageUrls[].cameraActionKey on POST /listings to force a specific camera move on that image instead of the automatic choice.

Rules:
- Only valid with presetKey "DEFAULT".
- Mutually exclusive with stagingInputState and endFrameUrl on the same image.
- Omit it to let Rendy pick the movement automatically.
- The list is environment-dependent — always fetch it instead of hardcoding keys.

### POST /listings — Create listing and generate

Scope: `listings:write`

Creates a listing, saves your image URLs, and starts generation in the background. Returns immediately with listingId (HTTP 202). Poll GET /listings/:id/status until done, then GET /listings/:id for video URLs.

**Request**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | string | yes | Property street address. |
| `ratio` | "portrait" \| "landscape" | yes | Aspect ratio and output resolution for generated videos (single field; no separate resolution). |
| `imageUrls` | array of objects | yes | Array of images to generate videos from. |
| `imageUrls[].url` | string (URL) | yes | Public URL of the source image (JPEG/PNG/WebP). |
| `imageUrls[].presetKey` | string | no | Effect preset key. Default: "DEFAULT". Controls the camera movement/effect style. List available keys with GET /presets. |
| `imageUrls[].crop` | object | no | Crop rectangle: { x: number, y: number, width: number, height: number }. All values are pixel coordinates relative to the original image (top-left origin), and the rect must fit inside the image. If omitted, a centered crop matching the listing ratio is applied automatically — same behavior as the web app. |
| `imageUrls[].originalImageWidth` | integer | no | Original image width in pixels (after EXIF rotation). Recommended when sending crop; if omitted, the server downloads the image to measure it. |
| `imageUrls[].originalImageHeight` | integer | no | Original image height in pixels (after EXIF rotation). Recommended when sending crop; if omitted, the server downloads the image to measure it. |
| `imageUrls[].cameraActionKey` | string | no | Force a specific camera movement on this image instead of the automatic choice. Must be a key from GET /camera-movements (e.g. "SLIDER_LEFT", "PUSH-IN"). Only valid with presetKey "DEFAULT". Mutually exclusive with stagingInputState and endFrameUrl. |
| `imageUrls[].stagingInputState` | "empty-room" \| "already-staged" | no | Enables virtual staging for this image. Requires a staging preset (a preset with staging: true from GET /presets). Mutually exclusive with cameraActionKey and endFrameUrl. |
| `imageUrls[].stagingStyleId` | string (uuid) | no | Staging style from GET /staging/styles. Required when stagingInputState is "empty-room"; ignored for "already-staged". |
| `imageUrls[].stagingAnimationId` | string (uuid) | no | Staging animation from GET /staging/animations. Optional — omit for a static, no-motion staged clip. |
| `imageUrls[].endFrameUrl` | string (URL) | no | Start/end frame effect: the clip animates from url to this end-frame image. Both must be real photos of the same space. Only valid with presetKey "DEFAULT". Mutually exclusive with cameraActionKey and stagingInputState. |

**Response**

```
202 Accepted
{
  "listingId": "uuid",
  "message": "Generation started. Poll GET /listings/:id/status ..."
}

400 — invalid body, no credits, etc.
{ "error": "..." }
```

**Example**

```bash
curl -X POST https://api.rendy.io/api/public/v1/listings \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "123 Main St, Los Angeles, CA",
    "ratio": "portrait",
    "imageUrls": [
      { "url": "https://example.com/photo1.jpg", "presetKey": "DEFAULT" },
      {
        "url": "https://example.com/photo2.jpg",
        "presetKey": "DEFAULT",
        "cameraActionKey": "SLIDER_LEFT"
      }
    ]
  }'
```

**Notes for agents**

You are calling the Rendy API to create a listing and start video generation (async).

Endpoint: POST https://api.rendy.io/api/public/v1/listings
Auth: x-api-key header with the API key.

Request body (JSON):
- address (string, required): Property street address.
- ratio (string, required): "portrait" or "landscape" — used for both listing aspect ratio and generation output (no separate resolution field).
- imageUrls (array, required): Each item has url (required), optional presetKey (default "DEFAULT"), optional crop, originalImageWidth, originalImageHeight, and the optional per-image modes below.
- crop is { x, y, width, height } in PIXEL coordinates relative to the original image (top-left origin); the rect must fit inside the image. If crop is omitted, the server applies a centered crop matching ratio automatically (same as the web app), so most callers can skip crop entirely.

Per-image modes (at most ONE of cameraActionKey / stagingInputState / endFrameUrl per image — sending two is a 400):
- cameraActionKey (string): forces a camera move. Value must come from GET /camera-movements. presetKey must be "DEFAULT". Omit to let Rendy choose automatically.
- stagingInputState ("empty-room" | "already-staged"): virtual staging. presetKey must be a preset with staging: true from GET /presets. For "empty-room", stagingStyleId (from GET /staging/styles) is REQUIRED. stagingAnimationId (from GET /staging/animations) is optional for both states; omit for a static staged clip.
- endFrameUrl (URL): start/end frame effect — the clip animates from url to endFrameUrl. Both must be real photos of the same space. presetKey must be "DEFAULT".

Never hardcode preset keys, camera keys, style ids or animation ids — fetch them from the discovery endpoints first; unknown values return 400.

Response (202 Accepted):
{ listingId: string, message: string }

Generation runs in the background. Poll GET /listings/:listingId/status every few seconds until status is "success" or "error" and textHooks is not "pending", then GET /listings/:listingId for video URLs. This avoids proxy timeouts (e.g. Cloudflare 524).

### GET /listings — List Listings

Scope: `listings:read`

List your organization's listings, newest first. Page with limit (1-100, default 20) and offset (default 0); hasMore tells you whether another page exists.

**Response**

```
200 OK
{
  "listings": [
    {
      "id": "uuid",
      "address": "string",
      "ratio": "portrait" | "landscape",
      "status": "generating" | "success" | "error" | "regenerating" | null,
      "progress": 0-100,
      "thumbnailUrl": "string | null",
      "createdAt": "ISO8601",
      "updatedAt": "ISO8601"
    }
  ],
  "hasMore": false
}
```

**Example**

```bash
curl "https://api.rendy.io/api/public/v1/listings?limit=20&offset=0" \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API to list the organization's listings.

Endpoint: GET https://api.rendy.io/api/public/v1/listings?limit=20&offset=0
Auth: x-api-key header (or an OAuth access token).
Query: limit (integer 1-100, default 20), offset (integer >= 0, default 0).

Response (200):
{ listings: [{ id, address, ratio, status, progress, thumbnailUrl, createdAt, updatedAt }], hasMore: boolean }

Listings are ordered newest first. While hasMore is true, request the next page with offset += limit. Call GET /listings/:id for a listing's videos.

### GET /listings/:id — Get Listing

Scope: `listings:read`

Fetch listing details and all generated videos. Each video includes the final render URL and a flat list of per-clip playback URLs (source clips before template assembly).

**Response**

```
200 OK
{
  "listing": {
    "id": "uuid",
    "address": "string",
    "ratio": "string",
    "status": "generating" | "success" | "error" | "regenerating" | null,
    "progress": 0-100,
    "thumbnailUrl": "string | null",
    "createdAt": "ISO8601",
    "updatedAt": "ISO8601",
    ...
  },
  "videos": [
    {
      "id": "uuid",
      "url": "string | null",
      "templateId": "uuid",
      "status": "rendering" | "success" | "error" | null,
      "progress": 100,
      "createdAt": "ISO8601",
      "updatedAt": "ISO8601",
      "clips": ["https://...", "https://..."]
    }
  ],
  "textHooks": "applied" | "pending" | "unavailable" | "failed" | null
}

textHooks tells you whether the AI text overlay is baked into the video files:
- "applied"     — the URLs above already include it
- "pending"     — still being written; the URLs will be replaced by a new render
- "unavailable" — no text for this listing (address not usable, or turned off)
- "failed"      — text generation errored; the videos themselves are fine
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/listings/LISTING_ID \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API to fetch full listing details with all videos.

Endpoint: GET https://api.rendy.io/api/public/v1/listings/:id
Auth: x-api-key header.
URL param: id = listing UUID.

Response (200):
{
  listing: { id, address, ratio, status, progress (0-100), thumbnailUrl, createdAt, updatedAt, ... },
  videos: [
    {
      id: uuid,
      url: string | null (final rendered video when ready),
      templateId: string,
      status: "rendering" | "success" | "error" | null,
      progress: number,
      createdAt, updatedAt,
      clips: string[] (playback URLs for each clip in order)
    }
  ],
  textHooks: "applied" | "pending" | "unavailable" | "failed" | null
}

Use videos[].url for the final assembled output; videos[].clips are individual clip file URLs.

textHooks reports the AI text overlay: "applied" means videos[].url already contains it, "pending" means a newer render with the text is still coming, "unavailable" means this listing gets no text, "failed" means text generation errored (the videos are still valid). Only download when textHooks is not "pending".

### GET /listings/:id/status — Get Listing Status

Scope: `listings:read`

Lightweight polling endpoint that returns progress, status, the AI text-hook state, and the last updated time. Use this for efficient polling during generation instead of fetching the full listing.

**Response**

```
200 OK
{
  "progress": 0-100,                 // percentage complete
  "status": "generating" | "success" | "error" | "regenerating" | null,
  "textHooks": "applied" | "pending" | "unavailable" | "failed" | null,
  "updatedAt": "ISO8601"             // last modified timestamp
}

Wait for status === "success" AND textHooks !== "pending" before downloading —
"pending" means an AI text overlay is still being rendered into the files and
the video URLs will be replaced.
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/listings/LISTING_ID/status \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are polling the Rendy API for listing generation progress.

Endpoint: GET https://api.rendy.io/api/public/v1/listings/:id/status
Auth: x-api-key header.
URL param: id = listing UUID.

Response (200):
{
  progress: number (0-100, percentage complete),
  status: "generating" | "success" | "error" | "regenerating" | null,
  textHooks: "applied" | "pending" | "unavailable" | "failed" | null,
  updatedAt: ISO8601 string
}

Usage pattern:
1. After calling POST /listings (or in parallel), poll this endpoint every 3-5 seconds.
2. When status === "success" and progress === 100, generation is complete.
3. When status === "error", generation failed — check logs or retry.
4. status === null means generation hasn't started yet.
5. textHooks is the AI text overlay state. "pending" means the text is still being rendered into the files and the video URLs will change — keep polling. "applied" means the current URLs include it. "unavailable" (no text for this listing) and "failed" (text generation errored) are both final: the videos are ready as-is.
6. This is much cheaper than GET /listings/:id for polling since it returns minimal data.

### POST /listings/:id/export — Export listing (zip)

Scope: `exports:write`

Start an async zip job with a fixed layout: every final render under final/video-{order}-{template}.mp4 and every active clip under clips/video-{order}-clip-{clipOrder}.mp4. No request body. If an identical export was recently built, returns the cached download URL immediately.

**Response**

```
202 Accepted (job started):
{ "jobId": "string" }

200 OK (cached export available):
{
  "jobId": "string",
  "downloadUrl": "https://..."
}
```

**Example**

```bash
curl -X POST https://api.rendy.io/api/public/v1/listings/LISTING_ID/export \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API to zip-export an entire listing.

Endpoint: POST https://api.rendy.io/api/public/v1/listings/:id/export
Auth: x-api-key header.
URL param: id = listing UUID.
No JSON body.

The zip always includes all rendered videos (final/) and all active clips (clips/) for that listing in a stable naming scheme.

Response (202): { jobId } — poll GET /exports/:jobId until status is "ready", then use downloadUrl.

Response (200): { jobId, downloadUrl } when a matching zip was already built recently.

### GET /exports/:jobId — Get Export Status

Scope: `exports:read`

Poll the status of a zip export job. When status is 'ready', use the downloadUrl to retrieve the zip file. The download link is temporary and expires after a short period.

**Response**

```
200 OK
{
  "status": "pending" | "building" | "ready" | "error",
  "progress": 0,                     // files processed so far
  "total": 6,                        // total files in the zip
  "downloadToken": "string | undefined",
  "downloadUrl": "string | undefined",  // full URL when ready
  "filename": "string | undefined",
  "error": "string | undefined"         // error message if failed
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/exports/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are polling the Rendy API for export job completion.

Endpoint: GET https://api.rendy.io/api/public/v1/exports/:jobId
Auth: x-api-key header.
URL param: jobId = the job ID from POST /listings/:id/export.

Response (200):
{
  status: "pending" | "building" | "ready" | "error",
  progress: number (files processed so far),
  total: number (total files being zipped),
  downloadToken: string | undefined,
  downloadUrl: string | undefined (full download URL when status is "ready"),
  filename: string | undefined,
  error: string | undefined (error message when status is "error")
}

Usage:
1. Poll every 2-3 seconds after starting an export.
2. When status === "ready", use downloadUrl to download the zip file.
3. When status === "error", the export failed — check the error field.
4. Download URLs are temporary and expire after a short period.

## Webhooks

Rendy POSTs a signed JSON event to your HTTPS endpoint when a listing generation finishes, so you don't have to poll. Events cover every listing in the organization. Webhooks need an API key; OAuth access tokens can't manage them.

Events: "listing.generation.completed" (status is "success" and textHooks is not "pending", so the videos are final) and "listing.generation.failed" (status is "error"). They cover every listing in the organization, and a listing announces again after it is regenerated or edited.

Each delivery is a JSON POST:
{
  "id": "event uuid",
  "type": "listing.generation.completed",
  "createdAt": "ISO8601",
  "data": { "listingId", "status", "progress", "textHooks", "address", "ratio", "thumbnailUrl", "updatedAt" }
}
Headers: x-rendy-signature, x-rendy-event-id, x-rendy-event-type, x-rendy-delivery-id.

Signature: x-rendy-signature is "t=<unix seconds>,v1=<hex>", where v1 is the HMAC-SHA256 of "<t>.<raw body>" using the webhook secret. Reject old timestamps.

Respond with a 2xx within 10 seconds. Anything else is retried, up to 8 attempts over about 20 hours. Redirects are not followed. Delivery is at least once and can be out of order, so dedupe on the event id, and call GET /listings/:id for the video URLs.

Verify the signature against the raw request body before parsing it:

```js
// In your receiver: verify against the raw request body
const crypto = require("crypto");

function verifyRendySignature(rawBody, header, secret) {
  const { t, v1 } = Object.fromEntries(
    header.split(",").map((part) => part.split("="))
  );
  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${t}.${rawBody}`)
    .digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
  return (
    fresh &&
    v1.length === expected.length &&
    crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected))
  );
}
```

```python
# In your receiver: verify against the raw request body
import hashlib, hmac, time

def verify_rendy_signature(raw_body: bytes, header: str, secret: str) -> bool:
    parts = dict(part.split("=", 1) for part in header.split(","))
    signed = parts["t"].encode() + b"." + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    fresh = abs(time.time() - int(parts["t"])) < 300
    return fresh and hmac.compare_digest(parts["v1"], expected)
```

### POST /webhooks — Create webhook

Scope: `listings:write`

Get notified when a listing generation finishes instead of polling. Rendy POSTs a signed JSON event to your URL, usually within seconds. The signing secret is returned only here, so store it. An organization can have up to 10 webhooks.

**Request**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | Public https URL. IP addresses and private hosts are rejected. |
| `events` | string[] | no | Any of "listing.generation.completed", "listing.generation.failed". Defaults to both. |
| `description` | string | no | Your own label, up to 200 characters. |

**Response**

```
201 Created
{
  "webhook": {
    "id": "uuid",
    "url": "https://example.com/rendy",
    "description": "string | null",
    "events": ["listing.generation.completed", "listing.generation.failed"],
    "enabled": true,
    "createdAt": "ISO8601",
    "updatedAt": "ISO8601"
  },
  "secret": "whsec_..."
}
```

**Example**

```bash
curl -X POST https://api.rendy.io/api/public/v1/webhooks \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/rendy"}'
```

**Notes for agents**

You are calling the Rendy API.

Endpoint: POST https://api.rendy.io/api/public/v1/webhooks
Auth: x-api-key header (scope listings:write).

Get notified when a listing generation finishes instead of polling. Rendy POSTs a signed JSON event to your URL, usually within seconds. The signing secret is returned only here, so store it. An organization can have up to 10 webhooks.

Response:
201 Created
{
  "webhook": {
    "id": "uuid",
    "url": "https://example.com/rendy",
    "description": "string | null",
    "events": ["listing.generation.completed", "listing.generation.failed"],
    "enabled": true,
    "createdAt": "ISO8601",
    "updatedAt": "ISO8601"
  },
  "secret": "whsec_..."
}

Events: "listing.generation.completed" (status is "success" and textHooks is not "pending", so the videos are final) and "listing.generation.failed" (status is "error"). They cover every listing in the organization, and a listing announces again after it is regenerated or edited.

Each delivery is a JSON POST:
{
  "id": "event uuid",
  "type": "listing.generation.completed",
  "createdAt": "ISO8601",
  "data": { "listingId", "status", "progress", "textHooks", "address", "ratio", "thumbnailUrl", "updatedAt" }
}
Headers: x-rendy-signature, x-rendy-event-id, x-rendy-event-type, x-rendy-delivery-id.

Signature: x-rendy-signature is "t=<unix seconds>,v1=<hex>", where v1 is the HMAC-SHA256 of "<t>.<raw body>" using the webhook secret. Reject old timestamps.

Respond with a 2xx within 10 seconds. Anything else is retried, up to 8 attempts over about 20 hours. Redirects are not followed. Delivery is at least once and can be out of order, so dedupe on the event id, and call GET /listings/:id for the video URLs.

### GET /webhooks — List webhooks

Scope: `listings:read`

All of the organization's webhooks. Secrets are not included.

**Response**

```
200 OK
{ "webhooks": [ ... ] }
```

**Example**

```bash
curl -X GET https://api.rendy.io/api/public/v1/webhooks \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API.

Endpoint: GET https://api.rendy.io/api/public/v1/webhooks
Auth: x-api-key header (scope listings:read).

All of the organization's webhooks. Secrets are not included.

Response:
200 OK
{ "webhooks": [ ... ] }

### PATCH /webhooks/:id — Update webhook

Scope: `listings:write`

Change the URL, events or description, or pause it with enabled: false. Send only the fields to change.

**Request**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | no | Public https URL. IP addresses and private hosts are rejected. |
| `events` | string[] | no | Any of "listing.generation.completed", "listing.generation.failed". Defaults to both. |
| `description` | string | no | Your own label, up to 200 characters. |
| `enabled` | boolean | no | false stops deliveries, including queued ones. |

**Response**

```
200 OK
{ "webhook": { ... } }
```

**Example**

```bash
curl -X PATCH https://api.rendy.io/api/public/v1/webhooks/WEBHOOK_ID \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false}'
```

**Notes for agents**

You are calling the Rendy API.

Endpoint: PATCH https://api.rendy.io/api/public/v1/webhooks/:id
Auth: x-api-key header (scope listings:write).

Change the URL, events or description, or pause it with enabled: false. Send only the fields to change.

Response:
200 OK
{ "webhook": { ... } }

### DELETE /webhooks/:id — Delete webhook

Scope: `listings:write`

Removes the webhook and its delivery history.

**Response**

```
204 No Content
```

**Example**

```bash
curl -X DELETE https://api.rendy.io/api/public/v1/webhooks/WEBHOOK_ID \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API.

Endpoint: DELETE https://api.rendy.io/api/public/v1/webhooks/:id
Auth: x-api-key header (scope listings:write).

Removes the webhook and its delivery history.

Response:
204 No Content

### POST /webhooks/:id/rotate-secret — Rotate webhook secret

Scope: `listings:write`

Replaces the signing secret. The old one stops working immediately.

**Response**

```
200 OK
{ "secret": "whsec_..." }
```

**Example**

```bash
curl -X POST https://api.rendy.io/api/public/v1/webhooks/WEBHOOK_ID/rotate-secret \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API.

Endpoint: POST https://api.rendy.io/api/public/v1/webhooks/:id/rotate-secret
Auth: x-api-key header (scope listings:write).

Replaces the signing secret. The old one stops working immediately.

Response:
200 OK
{ "secret": "whsec_..." }

### POST /webhooks/:id/test — Send test event

Scope: `listings:write`

Queues a signed "webhook.test" event to this webhook. Check the result with the deliveries endpoint.

**Response**

```
202 Accepted
{ "deliveryId": "uuid", "eventId": "uuid" }
```

**Example**

```bash
curl -X POST https://api.rendy.io/api/public/v1/webhooks/WEBHOOK_ID/test \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API.

Endpoint: POST https://api.rendy.io/api/public/v1/webhooks/:id/test
Auth: x-api-key header (scope listings:write).

Queues a signed "webhook.test" event to this webhook. Check the result with the deliveries endpoint.

Response:
202 Accepted
{ "deliveryId": "uuid", "eventId": "uuid" }

### GET /webhooks/:id/deliveries — List webhook deliveries

Scope: `listings:read`

Most recent deliveries first, kept for 30 days. Use ?limit= (1-100, default 20).

**Response**

```
200 OK
{
  "deliveries": [{
    "id": "uuid",
    "eventId": "uuid",
    "eventType": "listing.generation.completed",
    "status": "pending" | "delivered" | "failed",
    "attempts": 1,
    "responseStatus": 200,
    "lastError": "string | null",
    "nextAttemptAt": "ISO8601 | null",
    "deliveredAt": "ISO8601 | null",
    "createdAt": "ISO8601",
    "payload": { ... }
  }]
}
```

**Example**

```bash
curl -X GET https://api.rendy.io/api/public/v1/webhooks/WEBHOOK_ID/deliveries \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

You are calling the Rendy API.

Endpoint: GET https://api.rendy.io/api/public/v1/webhooks/:id/deliveries
Auth: x-api-key header (scope listings:read).

Most recent deliveries first, kept for 30 days. Use ?limit= (1-100, default 20).

Response:
200 OK
{
  "deliveries": [{
    "id": "uuid",
    "eventId": "uuid",
    "eventType": "listing.generation.completed",
    "status": "pending" | "delivered" | "failed",
    "attempts": 1,
    "responseStatus": 200,
    "lastError": "string | null",
    "nextAttemptAt": "ISO8601 | null",
    "deliveredAt": "ISO8601 | null",
    "createdAt": "ISO8601",
    "payload": { ... }
  }]
}

## Enterprise API (single clips)

One photo plus a preset or camera move in, one clip out. Enterprise access is enabled per organization by Rendy (contact us); there is no self-serve sign-up. Each generation takes your organization's price from its prepaid balance when it is queued and is refunded if it fails. Add credit and set up auto top-up on /developer/enterprise. Use your existing API keys; upload photos with POST /images/upload and find camera moves with GET /camera-movements.

### POST /generations — Create a generation

Scope: `listings:write`

Queues one video clip from one photo and returns right away (202). Send exactly one of presetKey, cameraActionKey or cameraCustom. Its price is taken from your prepaid credit when it is queued and refunded if it fails. Send an Idempotency-Key header to retry safely: repeating a key returns the original generation.

**Request**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `imageUrl` | string | yes | A URL returned by POST /images/upload. |
| `ratio` | "portrait" \| "landscape" | yes | The photo is center-cropped to 9:16 or 16:9. |
| `presetKey` | string | no | A key from GET /generation-presets. |
| `cameraActionKey` | string | no | A key from GET /camera-movements. |
| `cameraCustom` | object | no | A custom move: horizontal, vertical, zoom, pan, tilt and rotate, each from -10 to 10. |
| `model` | string | no | Required only if your organization has several models. |

**Response**

```
202 Accepted (200 when an Idempotency-Key is repeated)
{
  "generation": {
    "id": "6f1c7f0e-…",
    "model": "rendy-2.1",
    "status": "queued",
    "presetKey": "PRESET_KEY",
    "cameraActionKey": null,
    "cameraCustom": null,
    "ratio": "portrait",
    "imageUrl": "https://…",
    "videoUrl": null,
    "error": null,
    "chargedUsd": 0.5,
    "createdAt": "2026-11-19T10:00:00.000Z",
    "completedAt": null
  }
}

402 insufficient_balance · spend_limit_reached
403 enterprise_access_required
409 idempotency_key_reused · 429 queue_full
```

**Example**

```bash
curl -X POST https://api.rendy.io/api/public/v1/generations \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: your-unique-id" \
  -H "Content-Type: application/json" \
  -d '{
  "imageUrl": "https://…/storage/v1/object/public/input/public-api/photo.webp",
  "ratio": "portrait",
  "presetKey": "PRESET_KEY"
}'
```

**Notes for agents**

Rendy generations API. POST https://api.rendy.io/api/public/v1/generations with header x-api-key and JSON { imageUrl (from POST /images/upload), ratio ("portrait"|"landscape"), and exactly one of presetKey (GET /generation-presets), cameraActionKey (GET /camera-movements) or cameraCustom }. Send an Idempotency-Key header. It returns 202 with generation.id; poll GET /generations/:id every 10 seconds until status is "succeeded" (use videoUrl) or "failed" (read error; failures are refunded).

### GET /generations/:id — Get a generation

Scope: `listings:read`

Poll this until status is "succeeded" or "failed". Clips usually take a few minutes, so every 10 seconds is enough. GET /generations lists your latest ones (limit up to 100).

**Response**

```
200 OK
{
  "generation": {
    "id": "6f1c7f0e-…",
    "model": "rendy-2.1",
    "status": "succeeded",
    "presetKey": "PRESET_KEY",
    "cameraActionKey": null,
    "cameraCustom": null,
    "ratio": "portrait",
    "imageUrl": "https://…",
    "videoUrl": "https://…/output/6f1c7f0e-…/1763560000000.mp4",
    "error": null,
    "chargedUsd": 0.5,
    "createdAt": "2026-11-19T10:00:00.000Z",
    "completedAt": "2026-11-19T10:02:41.000Z"
  }
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/generations/GENERATION_ID \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

GET https://api.rendy.io/api/public/v1/generations/:id with header x-api-key returns { generation } with status queued, processing, succeeded or failed. videoUrl is set when succeeded; error is set when failed.

### GET /balance — Get your credit balance

Scope: `listings:read`

Your prepaid credit and auto top-up settings. Generations fail with 402 insufficient_balance when the balance can't cover one.

**Response**

```
200 OK
{
  "balanceUsd": 42.5,
  "autoTopUp": { "enabled": true, "thresholdUsd": 10, "amountUsd": 50 }
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/balance \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

GET https://api.rendy.io/api/public/v1/balance with header x-api-key returns { balanceUsd, autoTopUp }. Generations are paid from this prepaid balance; POST /generations returns 402 insufficient_balance when it is too low.

### GET /generation-presets — List generation presets

Scope: `listings:read`

The presets you can pass as presetKey, with names, descriptions and sample videos. Same shape as GET /presets.

**Response**

```
200 OK
{
  "presets": [
    {
      "key": "PRESET_KEY",
      "name": "Preset name",
      "description": "…",
      "sampleVideoUrl": "https://…",
      "iconUrl": "https://…",
      "order": 1,
      "staging": false,
      "categories": ["…"]
    }
  ]
}
```

**Example**

```bash
curl https://api.rendy.io/api/public/v1/generation-presets \
  -H "x-api-key: YOUR_API_KEY"
```

**Notes for agents**

GET https://api.rendy.io/api/public/v1/generation-presets with header x-api-key returns { presets }. Use a preset's key as presetKey on POST /generations.

## Errors

Every error has the same shape:

```json
{ "error": "Human-readable error message" }
```

| Status | Meaning |
| --- | --- |
| `400` | Invalid request body or parameters (a details field may say which) |
| `401` | Missing or invalid API key or access token |
| `402` | Not enough credit (enterprise generations: insufficient_balance) |
| `403` | Missing scope, wrong organization, or no enterprise access |
| `404` | Resource not found, or not in your organization |
| `409` | Idempotency-Key reused with a different body |
| `429` | Rate limit exceeded, or the generation queue is full |
| `500` | Internal server error. Safe to retry reads; retry writes with an Idempotency-Key where supported |

## Rate limits

Requests are limited per API key, 300 per minute by default. Over the limit the API answers 429 Too Many Requests; wait and retry with backoff.

## Tips

- Generation takes minutes. Prefer a webhook; when polling, wait 3-5 seconds between listing status checks and about 10 seconds between generation checks.
- Only download a listing's videos once `textHooks` is not `"pending"`: a pending listing's video URLs are replaced by a new render.
- Send an `Idempotency-Key` header on `POST /generations` so a retried request can't charge twice.
