API quick start
Make a key, connect it over MCP or REST, and make your first call. Start here if you are a developer or an AI assistant that has never seen Prow.
On this page
Prow has one API with two doors. MCP is for AI assistants such as Claude: they see Prow's tools and call them. REST is for scripts: the same tools as web addresses. Both use the same key, return the same answers and follow the same rules.
A key reads your data and builds bots. It never starts a bot and never moves money: you open the link it returns in Prow, check the limits and start the bot with your own signature. The rest of this section shows how to build every kind of bot, change it, copy it to another market or exchange, and read how it is doing. This is the one start page: the other pages link back here.
The three things to know
- Everything is a tool. The tool name is the same over MCP and REST. The page Tools and endpoints lists them all with their REST route.
- Build in four steps. Look up the type, validate the settings, save a draft, open the link. Nothing is saved until the third step and nothing starts until you press Start in Prow.
- Prow words every refusal. An error is one plain sentence with a code. Read it, fix the settings and call again. Errors, limits and retries lists the common ones.
Step 1: make a key
Open the key page
In Prow open Settings, then AI assistants and API, and tap Create key.Choose what it may do
See your account and bots reads. Build, pause and stop your bots also builds drafts, copies bots as drafts, changes a few settings of a running bot only in the safer direction (a safer setting can end a bot or close its position sooner), pauses and stops bots. Choose the second to follow this section. Concepts has the full list.Copy the key
Prow shows it once. Keep it private: anyone who has it can do what it allows. You can revoke it at any time.
Step 2a: connect an assistant over MCP
In Claude open Customize, then Connectors, then Add custom connector. Use the address https://app.prowdex.com/api/mcp and add a request header named x-api-key with your key as the value. Turn the connector on in a chat and ask "List my Prow bots". The assistant gets the tool list and a short set of instructions that explain the workflow. Claude says standard header names such as x-api-key work with any connector. On a Claude team plan only an owner can add a connector. If your Claude does not show a request header option, it cannot connect to Prow yet: use the REST API below from a script, or write to hello@prowdex.com. ChatGPT cannot be connected yet, because it does not accept an API key header for a connector.
To check the connection by hand, send the standard MCP call yourself:
curl -sS https://app.prowdex.com/api/mcp \
-H "x-api-key: $PROW_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
To call a tool, send tools/call with the tool name and its arguments. This is the shape every MCP example in this section uses:
{ "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "get_key_limits", "arguments": {} } }
Step 2b: call the REST API from a script
The base address is https://app.prowdex.com/api/v1. Send the key in the x-api-key header (never in the address). Bodies are JSON. A tool that only reads is a GET with its arguments in the query string. A tool that changes something is a POST, PUT or DELETE with its arguments in the JSON body, and the id in the address where the route has one.
export PROW_KEY="paste your key here"
export API="https://app.prowdex.com/api/v1"
curl -sS "$API/bots" -H "x-api-key: $PROW_KEY"
The machine-readable description is at openapi.json. It lists every route, argument and answer with examples.
Step 3: make your first call
Ask what your key may do. This works with any key:
{ "name": "get_key_limits", "arguments": {} }
curl -sS "$API/key" -H "x-api-key: $PROW_KEY"
Then read the market the bot will trade:
{ "name": "get_market", "arguments": { "venue": "hyperliquid", "market": "BTC" } }
curl -sS "$API/markets/hyperliquid/BTC" -H "x-api-key: $PROW_KEY"
Step 4: build a first bot
Ask Prow for an example at today's price. It already passes validation, so you only change what you want to change:
{ "name": "get_bot_type_schema", "arguments": { "type": "grid", "venue": "hyperliquid", "market": "BTC", "direction": "long" } }
curl -sS "$API/bot-types/grid?venue=hyperliquid&market=BTC&direction=long" -H "x-api-key: $PROW_KEY"
Take the example from the answer, check it with validate_bot_config, then save it with create_bot_draft. The answer carries confirm_url. Open it in Prow, check the limits and start the bot. The cookbook has a copy-paste example for every bot type.
Where to go next
Last updated