Agent signup
An AI agent with no Faceless account and no human at hand can open its own workspace with one request, get an API key, and hand its human a link to claim the workspace later. No browser, no email, no card.
The workspace starts with 0 credits. The agent can explore, price videos and buy credits; nothing that costs money happens until someone pays.
1. Sign up (POST /api/v1/agent/signup, no key)
curl -s -X POST https://faceless.so/api/v1/agent/signup \
-H "Content-Type: application/json" \
-d '{"agentName":"Research assistant","email":"[email protected]"}'
Every field is optional:
| Field | What it is |
|---|---|
agentName | Shown to the human on the claim page. |
email | A contact email for the human who will claim the workspace. Throwaway inbox services are refused. |
client | Your framework or client, e.g. claude-code/2.1. |
scopes | ["credits:write"] to let the key buy credit packs with a payment credential. Nothing else can be asked for. |
201 answer:
{
"success": true,
"data": {
"apiKey": "fl_live_9fK2...",
"teamId": "665f1b2a9c31a2b3c4d5e700",
"scopes": ["credits:read", "videos:read", "videos:write", "catalog:read", "..."],
"budget": { "limitCredits": 300, "period": "day" },
"credits": 0,
"claimed": false,
"claimUrl": "https://faceless.so/claim/Hk3...",
"claimCode": "K7QM-2XPD",
"claimExpiresAt": "2026-12-30T12:00:00.000Z",
"expiresAt": "2026-12-03T12:00:00.000Z"
}
}
- Save
apiKeynow: it is shown once. Send it asAuthorization: Bearer <key>orX-API-Key: <key>on every call. - The key can read everything, create videos and upload assets. It cannot spend money (no
credits:write) unless you asked for it inscopesor your human ticks it when claiming. It never getsseries:write(a series charges later, outside any request a key budget can see),accounts:writeorbilling:write. - It has a budget of 300 credits a day (per-key budgets); the human can change it.
2. The question (428 challenge_required)
A signup that looks unusual (a second one from your network today, or a busy hour) gets one common-sense question first:
{
"success": false,
"error": {
"type": "challenge_required",
"code": "challenge_required",
"message": "Answer one quick question to finish signing up. Which of norway, walrus, pear is a country? Reply with that one word.",
"challenge": { "id": "6750c1...", "question": "Which of norway, walrus, pear is a country? Reply with that one word.", "expiresIn": 600 }
}
}
Send the same POST again from the same network with the answer:
curl -s -X POST https://faceless.so/api/v1/agent/signup \
-H "Content-Type: application/json" \
-d '{"agentName":"Research assistant","challengeId":"6750c1...","answer":"norway"}'
A wrong answer gets a new question. Five wrong answers in an hour lock the network for an hour.
3. Hand the claim link to your human
Give your human claimUrl, or claimCode to type at https://faceless.so/claim. Never open or complete the claim yourself, never pay or change a plan for them. When they claim it:
- they sign in or create an account, and the workspace becomes theirs (they are its admin; it appears in their workspace list),
- your key keeps working, with the budget they pick and, only if they tick it,
credits:write.
Lost the link? POST /api/v1/agent/claim-link mints a fresh one (the old one stops working; 5 an hour). GET /api/v1/agent/account says whether the workspace is claimed, paid, and when it expires.
4. Pay before you create
The workspace has 0 credits, so POST /videos answers 402 insufficient_credits. Price the video first, then buy credits: POST /api/v1/credits with a pack answers with the payment options. See credits and limits. Until the workspace has bought credits or been claimed, free operations that still cost Faceless money (captioning your own footage, audio cleanup, uploads, ad briefs) answer 402 with code: unpaid_agent_workspace.
Expiry
An unclaimed workspace that never buys credits expires 72 hours after signup: its keys stop working. A workspace that bought credits never expires this way.
Limits and errors
| Error | Status | Meaning |
|---|---|---|
challenge_required | 428 | Answer the question (above). |
rate_limited | 429 | At most 3 signups per network (an IPv4 address or an IPv6 /64) per 24 hours, or the question lock. Retry-After says when. |
signup_disabled | 503 | Signup is switched off or at capacity. Stop and ask your human; do not try another URL. |
invalid_input | 400 | A bad email, a throwaway inbox, or a scope you cannot ask for. |
Never sign up again to get past a 401, a 402, a budget or a limit. Those are decisions, not obstacles: use the key you have and tell your human.
The CLI and the local MCP server do it for you
With no FACELESS_API_KEY, no saved key and no faceless login session:
faceless signupopens a workspace and saves the key to~/.faceless/config.json(--name,--email;--answer "<word>"answers a question).- The CLI run by an agent (no terminal attached) and the stdio MCP server (
npx -y faceless-mcp) sign up on their first call and print the claim link. A question shows as[SIGNUP_CHALLENGE]; answer it withfaceless signup --answer "...", or the MCP toolfaceless_signup_answer. - Opt out with
FACELESS_AUTO_SIGNUP=falseor"autoSignup": falsein~/.faceless/config.json.
The remote MCP server (https://faceless.so/api/v1/mcp) answers tools/list without a key, and a whole keyless session at https://faceless.so/api/v1/mcp?keyless=1, so you can see what Faceless does before signing up. Every tool call needs a key, and its error says how to get one.