Skip to content

Prompt Endpoint

POST /agent/prompt

HeaderValue
X-API-Keybk_YOUR_KEY
Content-Typeapplication/json

Body:

{
"prompt": "your natural language instruction"
}
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": "Buy $10 of PEPE on Base"}'
Response — 200 OK
{
"jobId": "job_abc123"
}

The prompt enters the job queue. Your agent interprets the natural language instruction, builds the appropriate transaction, and executes it. Poll using GET /agent/job/:jobId to track the job through its lifecycle: pendingprocessingcompleted (or failed / cancelled).

  • Be specific in your prompts. Include the chain name, token name, and exact amounts whenever possible.
  • Always specify the chain — “on Base”, “on Ethereum”, “on Solana” — so the agent knows where to execute.