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.
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.
Authorization: Bearer $HOOKFACES_API_KEY
- A key sent in the URL is refused: links end up in logs and browser history.
- You can keep up to 5 keys. Revoke one in your account and it stops working at once.
- A key only works while its license is active.
- The API is for servers and scripts: it sends no CORS headers, so a web page on another site cannot call it.
List reactions
GET/api/v1/reactions
Every reaction, or only the ones that match. Every query value is optional.
| Query | What it does |
|---|---|
persona | Only this face, for example zoe. |
emotion | Only this reaction, for example shock. |
limit | From 1 to 100. Default 50. |
offset | How many to skip. Default 0. |
curl -H "Authorization: Bearer $HOOKFACES_API_KEY" \
"https://hookfaces.com/api/v1/reactions?persona=zoe&limit=2"
{
"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 -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 -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 -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": {
"code": "invalid_key",
"message": "This API key is not valid or was revoked."
}
}
| Status | Code | What happened |
|---|---|---|
| 400 | invalid_request | A query value is out of range or not a number. |
| 400 | key_in_url | The key came in the URL. Send it in the header. |
| 401 | missing_key | There is no Authorization header. |
| 401 | invalid_key | The key is wrong or was revoked. |
| 403 | license_inactive | The license behind the key is not active, for example after a refund. |
| 404 | not_found | No reaction has that id, or the endpoint does not exist. |
| 429 | rate_limited | Too many calls. Wait the seconds in Retry-After. |
| 500 | internal_error | Something failed on our side. Try again in a minute. |
Rate limits
| What | Limit |
|---|---|
| All calls | 120 a minute per key |
| Downloads | 30 a minute per key |
| Calls with a wrong key | 20 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.
export HOOKFACES_API_KEY="hf_live_..."
claude
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