ChatGPT, Codex, Claude Code, Cursor, custom agents and bots can create a provisional Fikra API account for a human, create API keys, call chat completions, read usage, check balance and top up. The agent gets a 6-hour delegated token. A claim link lets the human turn the account into a full account they control.
No signup credit on agent-created accounts. The agent must top up before chat works. This is deliberate, to stop credit farming and unsolicited accounts. If the human signs up directly instead, they get $0.50 in credit and the free DeepSeek route.
curl -X POST https://api.fikraapi.co.ke/v1/agents/accounts \
-H 'Content-Type: application/json' \
-d '{
"email": "[email protected]",
"agent_name": "my-agent",
"agent_version": "1.0",
"idempotency_key": "one-per-request"
}'
The response contains account_id, a 6-hour token, and a claim_url. Give the claim URL to the human. Do not email it yourself unless the human asked you to.
Authorization: Bearer <agent token>
Scopes: keys:read, keys:write, chat:write, usage:read, balance:read, topup:link, topup:charge.
| Endpoint | What it does |
|---|---|
GET /v1/agents/me | Account, scopes, balance and token expiry |
POST /v1/agents/keys | Create an API key, returned once |
GET /v1/agents/keys | List keys without secrets |
POST /v1/agents/keys/{id}/revoke | Revoke a key |
GET /v1/agents/balance | Wallet balance |
GET /v1/agents/usage | Recent usage and totals |
POST /v1/agents/topup | Whop USD card checkout |
GET /v1/agents/topup/{reference} | Payment status |
POST /v1/agents/token/refresh | New 6-hour token after the human claims the account |
For chat, create an API key and call POST /v1/chat/completions exactly like a normal Fikra key.
Agents never handle card numbers. Every charge needs an explicit amount, confirm: true, and an account the human has already claimed. There is no default amount. The minimum is $5.00.
Top-ups are USD-only. Whop-hosted card checkout, charged in dollars with a 3% card fee on top of the amount. The minimum top-up is $5.00. After payment Whop credits the USD wallet automatically.
POST /v1/agents/topup {"amount_usd": 10, "confirm": true} returns a Whop checkout URL. Send it to the human. They pay on the checkout page and the wallet is credited in USD.Auto-recharge is not available to agents. It is a human dashboard setting. No card data is ever stored in Fikra logs or returned to the agent.
The agent sends the claim_url to the human. The human sets a password and the account becomes a normal full account. The link is valid for 30 days. The agent token still expires after 6 hours; after a claim, the agent can call POST /v1/agents/token/refresh.
If the human never claims, the account stays dormant with zero balance. Top-ups made before a claim remain on that account and can be claimed with the same link.
Machine-readable spec: /agents.json. Related: agent start · pricing · models · public stats · status · support. Questions: [email protected]. Operated by Lacesse Ventures. No contractual SLA on the self-serve plan. As of 2026-11-14.
Read https://fikraapi.co.ke/for-agents and follow it. You are operating for me. Before you charge anything, confirm two things with me: 1. the account email to use; 2. the funding amount. Wait for my explicit confirmation of both. Create the Fikra API account, mint the key, and send me the claim link. Wait for me to claim the account before the first charge. Then top up with confirm: true. Send me the balance and each receipt id.