> ## 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.

# API Error Codes

## Overview

Overlap API endpoints return structured error responses when a request fails. This page lists common error codes you may receive across all integrations, what they mean, and the typical HTTP status codes/messages.

### Error response shape

```json theme={null}
{
  "errorCode": "INVALID_REQUEST",
  "message": "Missing request body"
}
```

**Notes**

* `errorCode` is the stable, programmatic identifier to key off of.
* `message` is human-readable and may change slightly over time.
* HTTP status codes generally align with the category (4xx client errors, 5xx server errors).

***

## Error Code Reference

### Auth / API Key

> [accordion] INVALID\_API\_KEY (401)
>
> Missing or invalid `Authorization` header / API key for the endpoint or company.\
> **Typical messages:** `"Missing API key"`, `"Invalid API key"`.

***

### Request Validation (Generic)

> [accordion] INVALID\_REQUEST (400)
>
> Missing request body or required parameters (varies by endpoint).\
> **Typical messages:** `"Missing request body"`, `"Missing companyId parameter"`, `"Missing clipId parameter"`.

***

### URL / Time Validation (Clip Generation)

> [accordion] INVALID\_URL (400)
>
> Missing or invalid URL parameter.\
> **Typical messages:** `"Missing URL parameter"`.

> [accordion] INVALID\_YOUTUBE\_URL (400)
>
> URL appears to be YouTube but fails format validation.\
> **Typical messages:** `"Invalid YouTube URL format"`.

> [accordion] INVALID\_TIME (400)
>
> `minimumTime` / `maximumTime` out of allowed range.

> [accordion] VIDEO\_TOO\_SHORT (400)
>
> Video is shorter than the requested minimum clip length.

> [accordion] VIDEO\_LENGTH\_ERROR (400)
>
> Couldn’t fetch or compute video length.\
> **Typical messages:** contains provider-specific detail about the failure.

> [accordion] INSUFFICIENT\_HOURS (403)
>
> Team/company doesn’t have enough quota hours to process the request.\
> **Typical messages:** includes quota detail in the message.

***

### Task / Workflow Lookup + Authorization

> [accordion] TASK\_NOT\_FOUND (404)
>
> Task ID doesn’t exist.

> [accordion] UNAUTHORIZED\_ACCESS (403)
>
> Task exists but belongs to a different team/company.

> [accordion] WORKFLOW\_TRIGGER\_NOT\_FOUND (404)
>
> Workflow trigger ID not found.

***

### Workflow Validation / Quotas

> [accordion] WORKFLOW\_TRIGGER\_LIMIT\_REACHED (403)
>
> Company hit workflow trigger quota limit.

> [accordion] VALIDATION\_ERROR (varies)
>
> Workflow/company validation failed (validator returns the details).\
> **Typical messages:** depends on the specific validation failure.

> [accordion] WORKFLOW\_NOT\_FOUND (404)
>
> Workflow document not found for the company.

***

### Render Endpoint

> [accordion] MISSING\_COMPANY\_ID (400)
>
> `/render` missing `companyId`.

> [accordion] MISSING\_CLIP\_ID (400)
>
> `/render` missing `clipId`.

> [accordion] EXCEEDED\_RATE\_LIMIT (429)
>
> Too many in-flight render jobs for the company.\
> **Typical messages:** `"Render job limit reached..."`.

> [accordion] CLIP\_NOT\_FOUND (404)
>
> Clip doc not found under `companies/{companyId}/clips/{clipId}`.

> [accordion] RENDER\_FAILED (500)
>
> Rendering returned no URL.\
> **Typical messages:** `"Failed to render video..."`.

***

### Analytics Endpoints

> [accordion] MISSING\_POST\_ID (400)
>
> `/post-analytics` missing `postId`.

> [accordion] POST\_NOT\_FOUND (404)
>
> Post doc not found under `companies/{companyId}/posts/{postId}`.

> [accordion] INVALID\_QUERY (400)
>
> Invalid query parameter combination on `/posts` or `/post-analytics` —
> e.g. an unsupported `sortBy` value, a non-integer `limit`, or
> `startDate`/`endDate` combined with a metric sort.

> [accordion] INVALID\_CURSOR (400)
>
> `/posts` received a `cursor` that doesn't reference a known post. Cursors
> come from the previous page's response and shouldn't be constructed by hand.

***

### Playback Helper

> [accordion] REPLAY\_URL\_NOT\_FOUND (404)
>
> Playback API returned 200 but no `replayHLSURL`.

> [accordion] PLAYBACK\_API\_ERROR (varies)
>
> Playback API returned a non-200 response.\
> **Typical messages:** `"Failed to fetch playback data"`.

> [accordion] INTERNAL\_ERROR (500)
>
> Exception while calling the Playback API.\
> **Typical messages:** `"Internal server error"`.

***

### Subtitles Endpoints

> [accordion] SUBTITLE\_CONFIG\_NOT\_FOUND (422)
>
> Clip exists but has no `subtitleConfig`.

> [accordion] INVALID\_STYLE\_ID\_TYPE (400)
>
> `subtitleConfig.styleId` exists but isn’t a string.

> [accordion] INVALID\_SUBTITLE\_CONFIG (400)
>
> `subtitleConfig` in the request is not a JSON object (dict).

> [accordion] CLIP\_NOT\_FOUND (404)
>
> Clip not found when fetching or updating subtitles.

> [accordion] SERVER\_ERROR (500)
>
> Failure retrieving/updating subtitle configuration.\
> **Typical messages:** `"Failed to retrieve/update subtitle configuration: ..."`.

***

### Server / Processing Failures

> [accordion] SERVER\_ERROR (500)
>
> Unhandled exception in an endpoint.\
> **Typical messages:** often the exception string.

> [accordion] TRIGGER\_ERROR (500)
>
> Exception while processing a workflow trigger request.\
> **Typical messages:** `"Failed to process workflow trigger: ..."`.

> [accordion] KEY\_GENERATION\_ERROR (500)
>
> Failure generating an API key.\
> **Typical messages:** `"Failed to generate API key: ..."`.

***

## Recommended Client Handling

### Retryable (usually)

* `SERVER_ERROR`, `TRIGGER_ERROR`, `INTERNAL_ERROR`
* `PLAYBACK_API_ERROR` when the HTTP status is 5xx

Use exponential backoff and cap retries.

### Fix request and retry

* `INVALID_REQUEST`, `INVALID_URL`, `INVALID_YOUTUBE_URL`, `INVALID_TIME`, `INVALID_SUBTITLE_CONFIG`

### Auth / permissions

* `INVALID_API_KEY`, `UNAUTHORIZED_ACCESS`

### Quotas / throttling

* `INSUFFICIENT_HOURS`, `WORKFLOW_TRIGGER_LIMIT_REACHED`, `EXCEEDED_RATE_LIMIT`

Avoid retries until quota resets or concurrency drops.


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