This skill should be used when the user asks about "Bankr API", "Bankr Agent API", "how does Bankr work", "Bankr job status", "Bankr response format", or "building on Bankr". Provides endpoint documentation, job patterns, and TypeScript interfaces.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
This skill should be used when the user asks about "Bankr API", "Bankr Agent API", "how does Bankr work", "Bankr job status", "Bankr response format", or "building on Bankr". Provides endpoint documentation, job patterns, and TypeScript interfaces.
version
1.0.0
Bankr Agent API Essentials
When answering questions about the Bankr API:
Explain the asynchronous job pattern (submit-poll-complete)
Reference the endpoint documentation and TypeScript examples below
For detailed response structures, consult references/job-response-schema.md
Point developers to working examples in examples/ directory
The Bankr Agent API enables programmatic access to crypto trading, market analysis, and prediction markets through a simple asynchronous job pattern.
Core Concept: Asynchronous Job Pattern
All Bankr operations follow a submit-poll-complete pattern:
Submit a natural language prompt to start a job
Poll the job status every 2 seconds
Receive results when status is terminal (completed/failed/cancelled)
This pattern handles operations that may take 30 seconds to 2+ minutes (trades, complex analysis).
API Endpoints
Base URL
https://api.bankr.bot
Authentication
All requests require the x-api-key header:
x-api-key: bk_your_api_key_here
The API key is tied to a specific user's Bankr account and wallet.
Endpoint 1: Submit Prompt
POST /agent/prompt
Content-Type: application/json
{
"prompt": "Buy $50 of ETH on Base"
}
{"success":true,"jobId":"job_abc123","status":"completed","prompt":"What is the price of ETH?","response":"Ethereum (ETH) is currently trading at $3,245.67...","transactions":[],"statusUpdates":[{"message":"Fetching price data...","timestamp":"2024-01-15T10:00:02Z"}],"createdAt":"2024-01-15T10:00:00Z","completedAt":"2024-01-15T10:00:05Z","processingTime":5000}