Skip to content

Agent API Overview

The Bankr Agent API is a REST API at https://api.bankr.bot. Submit natural language prompts, and your agent executes the corresponding transactions — swaps, transfers, token launches, and more. It gives you full programmatic control over everything your agent can do.

When to use the Agent API:

  • You want direct HTTP access from any language or platform.
  • You are building a custom integration (bot, backend service, automation pipeline).
  • You need fine-grained control over prompts, polling, and error handling.

Authentication: Every request requires an API key passed via the X-API-Key header. Keys start with bk_. Get yours at bankr.bot/api.

The API is asynchronous and job-based. Every prompt follows the same three-step flow:

  1. Submit a prompt — send a natural language instruction and receive a jobId.
  2. Poll the job — the status progresses through pendingprocessingcompleted (or failed / cancelled).
  3. Read the result — once completed, the response contains the agent’s output and any transaction metadata.
1. Submit a prompt
curl -X POST https://api.bankr.bot/agent/prompt \
-H "X-API-Key: bk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "What is my ETH balance on Base?"}'
Response
{ "jobId": "job_abc123" }
2. Poll for result
curl https://api.bankr.bot/agent/job/job_abc123 \
-H "X-API-Key: bk_YOUR_KEY"
Response
{
"status": "completed",
"response": "Your ETH balance on Base is 0.05 ETH (~$150.00)"
}
MethodPathDescription
POST/agent/promptSubmit a natural language prompt
GET/agent/job/:jobIdPoll job status
DELETE/agent/job/:jobIdCancel a job
GET/agent/userGet user info and wallets
POST/agent/signSign messages
POST/agent/submitSubmit raw transactions