> ## Documentation Index
> Fetch the complete documentation index at: https://docs.overlap.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Render Clip

> POST endpoint to re-render a clip after subtitle or trimming updates

### Endpoint

```http theme={null}
POST https://api.joinoverlap.com/render
```

This endpoint renders an existing clip when changes are made on the frontend (e.g., subtitle edits, trimming adjustments). This process runs synchronously and will take about 20 seconds + 50% of the video length

### Authentication

```http theme={null}
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```

***

## Request Body

```json theme={null}
{
  "companyId": "string",
  "clipId": "string" // As obtained from the clip document in /workflow-results
}
```

```javascript javascript theme={null}
// Node.js (using fetch)
import fetch from "node-fetch";

const apiUrl = "https://api.joinoverlap.com/render";

const headers = {
  "Content-Type": "application/json",
  "Authorization": "Bearer YOUR_API_KEY"
};

const payload = {
  companyId: "brandlive-prod",
  clipId: "<CLIP_ID>"
};

fetch(apiUrl, {
  method: "POST",
  headers,
  body: JSON.stringify(payload)
})
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));
```

```python python theme={null}
import requests

api_url = "https://api.joinoverlap.com/render"

headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_KEY"
}

payload = {
    "companyId": "brandlive-prod",
    "clipId": "<CLIP_ID>"
}

response = requests.post(api_url, json=payload, headers=headers)
print(response.json())
```

```bash cURL theme={null}
curl -X POST "https://api.joinoverlap.com/render" \
     -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
           "companyId": "brandlive-prod",
           "clipId": "<CLIP_ID>"
         }'
```

### Field Descriptions

| Field | Type | Description |
| - | - | - |
| `companyId` | string | Organization identifier |
| `clipId` | string | ID of the clip to re-render |

***

## Response

```json theme={null}
{
 	"status": "finished" | "failed" | "rendering",
	"renderUrl": "string",
	"error": // if relevant
	"code": // Specific error event, if relevant
}
```

### Field Descriptions

| Field | Type | Description |
| - | - | - |
| `status` | string | `success` or `error` |
| `renderUrl` | string | URL of the newly rendered clip |

***

## Performance & Behavior

* **Runs synchronously**
* **Expected runtime:** `20 seconds + video_length_seconds * 0.5`

***

> [card] [View Clip Data Model](https://docs.overlap.ai/brandlive/clip-model.md)
>
> Understand all available clip fields


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.