API docs

A small REST API for the reaction library: list, get, download. Every call needs an API key, and keys come with a license.

The API opens together with the downloads. This page shows how it works.

Quick start

1. Create a key in your account. It is shown once, so copy it right away.

2. Keep it in an environment variable. Never paste it into code, a link or a chat.

Terminal
export HOOKFACES_API_KEY="hf_live_..."

3. Call the API.

curl -H "Authorization: Bearer $HOOKFACES_API_KEY" \
  "https://hookfaces.com/api/v1/reactions?emotion=shock&limit=5"
const response = await fetch("https://hookfaces.com/api/v1/reactions?emotion=shock&limit=5", {
  headers: { Authorization: `Bearer ${process.env.HOOKFACES_API_KEY}` }
});
const { data } = await response.json();
import os, requests

response = requests.get(
    "https://hookfaces.com/api/v1/reactions",
    params={"emotion": "shock", "limit": 5},
    headers={"Authorization": f"Bearer {os.environ['HOOKFACES_API_KEY']}"},
)
data = response.json()["data"]

Auth

Send the key as a Bearer token in the Authorization header of every call. The base URL is https://hookfaces.com/api/v1.

Header
Authorization: Bearer $HOOKFACES_API_KEY

List reactions

GET/api/v1/reactions

Every reaction, or only the ones that match. Every query value is optional.

QueryWhat it does
personaOnly this face, for example zoe.
emotionOnly this reaction, for example shock.
limitFrom 1 to 100. Default 50.
offsetHow many to skip. Default 0.
curl
curl -H "Authorization: Bearer $HOOKFACES_API_KEY" \
  "https://hookfaces.com/api/v1/reactions?persona=zoe&limit=2"
Response
{
  "data": [
    {
      "id": "zoe-shock-012",
      "persona": "Zoe",
      "emotion": "shock",
      "seconds": 3.4,
      "preview_url": "https://hookfaces.com/api/v1/reactions/zoe-shock-012/preview",
      "poster_url": "https://hookfaces.com/api/v1/reactions/zoe-shock-012/poster"
    }
  ],
  "total": 48,
  "limit": 2,
  "offset": 0,
  "has_more": true
}

preview_url: previews are small (540 × 960) and muted. The full file comes from the download endpoint.

Get one reaction

GET/api/v1/reactions/{id}

One reaction by its id, with its size and a download_url.

curl
curl -H "Authorization: Bearer $HOOKFACES_API_KEY" \
  https://hookfaces.com/api/v1/reactions/zoe-shock-012

Download the file

GET/api/v1/reactions/{id}/download

The clean 1080 × 1920 MP4: no watermark, no sound. The response is the file itself.

curl
curl -sS --fail -H "Authorization: Bearer $HOOKFACES_API_KEY" \
  -o zoe-shock-012.mp4 \
  https://hookfaces.com/api/v1/reactions/zoe-shock-012/download

List personas

GET/api/v1/personas

Every face in the library, how many clips it has and which reactions.

curl
curl -H "Authorization: Bearer $HOOKFACES_API_KEY" https://hookfaces.com/api/v1/personas

Errors

Every error is JSON with the same shape. Check the HTTP status first, then the code.

Error
{
  "error": {
    "code": "invalid_key",
    "message": "This API key is not valid or was revoked."
  }
}
StatusCodeWhat happened
400invalid_requestA query value is out of range or not a number.
400key_in_urlThe key came in the URL. Send it in the header.
401missing_keyThere is no Authorization header.
401invalid_keyThe key is wrong or was revoked.
403license_inactiveThe license behind the key is not active, for example after a refund.
404not_foundNo reaction has that id, or the endpoint does not exist.
429rate_limitedToo many calls. Wait the seconds in Retry-After.
500internal_errorSomething failed on our side. Try again in a minute.

Rate limits

WhatLimit
All calls120 a minute per key
Downloads30 a minute per key
Calls with a wrong key20 a minute per IP address

Over a limit you get a 429 with a Retry-After header in seconds. Every response also carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.

Use it with Claude Code

Claude Code runs on your computer, so it can call the API and edit the video with ffmpeg. Set the variable in the same terminal, start Claude Code and paste the prompt below with your own caption and screen recording.

Terminal
export HOOKFACES_API_KEY="hf_live_..."
claude
Prompt
My hookfaces API key is in the environment variable HOOKFACES_API_KEY. Never print it and never ask me for it.
The API is documented at https://hookfaces.com/docs. Send the key in the header "Authorization: Bearer $HOOKFACES_API_KEY".
1. List shock reactions: GET https://hookfaces.com/api/v1/reactions?emotion=shock&limit=20
2. Choose one and download it from its /download URL into this folder.
3. With ffmpeg, start with the reaction, write the caption "wait… this app does WHAT??" over it (bold white text with a black outline, centred, TikTok style), then cut to my screen recording demo.mp4.
4. Export a single 1080x1920 MP4 and tell me its file name.

Claude reads the key from the environment variable, so the key itself never goes into the chat. Formats to copy are in Discover