FIKRA API
Agent-assisted accounts

Any AI agent can create an account for a human, then use the whole API.

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.

1. Create the provisional account

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.

2. Use the delegated token

Authorization: Bearer <agent token>

Scopes: keys:read, keys:write, chat:write, usage:read, balance:read, topup:link, topup:charge.

EndpointWhat it does
GET /v1/agents/meAccount, scopes, balance and token expiry
POST /v1/agents/keysCreate an API key, returned once
GET /v1/agents/keysList keys without secrets
POST /v1/agents/keys/{id}/revokeRevoke a key
GET /v1/agents/balanceWallet balance
GET /v1/agents/usageRecent usage and totals
POST /v1/agents/topupWhop USD card checkout
GET /v1/agents/topup/{reference}Payment status
POST /v1/agents/token/refreshNew 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.

3. Payments

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.

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.

4. The human claim link

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.

5. Safety rules

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.

Copy-paste agent prompt

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.