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

# Make (HTTP module)

> Call the Reap Automation API from a Make.com scenario with the HTTP "Make a request" module

> **For AI agents:** a documentation index is at [/llms.txt](https://docs.reap.video/llms.txt). Every page is also available as markdown, just append `.md` to the URL.

Make has no Reap app, so a scenario calls the Reap Automation API with Make's own **HTTP** app. This page sets up one request with your API key, then creates a clipping project and checks its status.

## Before You Start

You need:

* A Reap plan with API access, and an API key. See [Authentication](https://docs.reap.video/api-reference/2_authentication.md) to create one.
* A Make account and a scenario to add the modules to.

## The Address of Every Request

Every request goes to this address, followed by the name of the endpoint:

```
https://public.reap.video/api/v1/automation/<endpoint-name>
```

For example `https://public.reap.video/api/v1/automation/get-plan-usage`. The endpoint names are the ones in this API reference (`create-clips`, `get-project-status`, `get-project-clips`, ...).

> [!WARNING]
>
> Use `public.reap.video`, not `api.reap.video`, and use the endpoint names exactly as written here. A path such as `/v1/automation/projects` or `/v1/automation/status/<id>` does not exist and answers `404 Not Found`.

## Step 1: Save Your API Key in Make

Make keeps the key in a keychain entry, so it is never typed into a module.

**1. Add the HTTP module**

In your scenario, add the **HTTP** app and pick the **Make a request** module.

**2. Choose API key authentication**

Set **Authentication type** to **API key**, then add a new keychain under **Credentials**.

**3. Fill in the keychain**

* **Name**: something you will recognize, such as `Reap API`.
* **Key**: the word `Bearer`, a space, then your API key: `Bearer YOUR_API_KEY`. Make sends this value exactly as you type it, so the word `Bearer` must be part of it.
* **API key placement**: in the header.
* **API key parameter name**: `Authorization`.

Click **Create**.

Every **Make a request** module that uses this keychain now sends `Authorization: Bearer YOUR_API_KEY`.

> [!TIP]
>
> Check the connection first with a `GET` request to `https://public.reap.video/api/v1/automation/get-plan-usage`. A `200` answer with your plan's credits means the key works.

## Step 2: Create a Clipping Project

In a **Make a request** module with your keychain:

| Field | Value |
| - | - |
| **URL** | `https://public.reap.video/api/v1/automation/create-clips` |
| **Method** | `POST` |
| **Body content type** | `application/JSON` |
| **Body input method** | `JSON string` |
| **Body content** | the JSON below |
| **Parse response** | `Yes` |

```json theme={"system"}
{
  "sourceUrl": "https://www.youtube.com/watch?v=VIDEO_ID",
  "genre": "talking",
  "exportOrientation": "portrait",
  "exportResolution": 1080,
  "language": "en"
}
```

The answer's `id` is the project ID. Map it into the next module. See [Create Clips](https://docs.reap.video/api-reference/create-clips.md) for every field, and [Get Upload URL](https://docs.reap.video/api-reference/get-upload-url.md) to send a file instead of a link.

## Step 3: Check the Project's Status

In a second **Make a request** module with the same keychain:

| Field | Value |
| - | - |
| **URL** | `https://public.reap.video/api/v1/automation/get-project-status` |
| **Method** | `GET` |
| **Query parameters** | name `projectId`, value: the `id` from Step 2 |
| **Parse response** | `Yes` |

Projects take several minutes. Run this check on a schedule, or after a **Sleep** module, until `status` is `completed` or `failed`. Then get the clips with [Get Project Clips](https://docs.reap.video/api-reference/get-project-clips.md). You can also skip the checks and let Reap call your scenario when the project finishes: see [Webhooks](https://docs.reap.video/api-reference/webhooks.md).

> [!NOTE]
>
> To make the scenario stop when Reap refuses a request, set **Return error if HTTP request fails** to **Yes** under the module's advanced settings.

## When a Request Fails

| Answer | What is wrong | What to do |
| - | - | - |
| `404 Not Found` | The address is wrong | Use `https://public.reap.video/api/v1/automation/` and an endpoint name from this reference |
| `401 API_KEY_MISSING` | No `Authorization` header was sent | Set the module's **Authentication type** to **API key** and pick your keychain |
| `401 API_KEY_NOT_BEARER` | The key was sent without `Bearer ` in front of it | Edit the keychain's **Key** to `Bearer YOUR_API_KEY` |
| `401 INVALID_API_KEY` | The value after `Bearer ` is not a working API key | Copy the key again, or make a new one |
| `401 API_KEY_EXPIRED` | The API key is past its expiry date | Make a new key and update the keychain |
| `400 API_NEEDS_PAID_PLAN` | The workspace is on the free plan, which has no API access | Upgrade the plan |
| `404` with `"detail": "Project not found"` | The `projectId` is not one of your workspace's projects | Use the `id` that `create-clips` answered |
| `429 Too Many Requests` | Too many requests in a minute | Wait for the seconds in `Retry-After`, then try again |

See [Error Responses](https://docs.reap.video/api-reference/2_authentication.md#error-responses) for the shape of every error answer.


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