API Key

The API Key method is available to Pro and Partner plan users. Generate keys from your Minara profile and include them in the Authorization header of every request.


Requirements

The Minara Agent API is available exclusively to Pro and Partner plan subscribers. If you are on a free plan, navigate to the API tab in your profile to see the upgrade prompt.

If you downgrade your subscription, all active API keys are automatically paused and resume when you renew.


Creating an API key

  1. Go to your Account Profile at minara.ai.

  2. Select the API Key tab from the left menu and click Create.

API Key tab in Minara account profile showing Create button
  1. Enter a name and description to identify the key's usage.

Create API key dialog with name and description fields
  1. Once created, your API key is displayed. Copy and store it securely — it will not be shown again.

Newly created API key displayed for copying

Managing API keys

Action
Details

View keys

Keys are listed with only the last 4 characters visible. Click to reveal the full key.

Key limit

Up to 5 API keys per Pro/Partner account.

Delete key

Requires 2FA confirmation. Deletion is permanent.


Authentication

Include your API key in the Authorization header of every request:

Example:


Billing

All API calls consume credits from your Minara account. If credits run out, API requests pause until replenished.


API reference

Base URL: https://api.minara.ai

Chat

POST /v1/developer/chat

Developer Chat

post

Developer chat endpoint supporting both streaming and non-streaming response modes.

Authorizations
AuthorizationstringRequired

Format: Authorization: Bearer <YOUR_API_KEY>

Body
modestring · enumRequired

Required. Model mode: 'fast' for quick responses, 'expert' for in-depth analysis.

Possible values:
streambooleanRequired

Required. Set to true for streaming (SSE), false for standard JSON response.

Responses
200

Successful response

chatIdstringOptional

Unique conversation ID.

messageIdstringOptional

Unique message ID for this response.

contentstringOptional

The AI-generated response content.

usageobjectOptional

Usage statistics for the request.

post
/v1/developer/chat
Parameter
Type
Required
Description

mode

string

Yes

fast for quick responses, expert for in-depth analysis

stream

boolean

Yes

true for SSE streaming, false for standard JSON

message.role

string

Yes

Must be user

message.content

string

Yes

The query content

Example:


Intent to swap transaction

POST /v1/developer/intent-to-swap-tx

Intent to Swap Transaction

post

Convert natural language trading intent into an executable swap transaction payload. Compatible with OKX DEX by default.

Authorizations
AuthorizationstringRequired

Format: Authorization: Bearer <YOUR_API_KEY>

Body
intentstringRequired

Required. Natural language swap intent (e.g., 'swap 0.1 ETH to USDC').

walletAddressstringRequired

Required. User wallet address (0x...).

chainstringOptional

Optional. Chain name (e.g., 'base', 'ethereum', 'bsc', 'arbitrum', 'optimism').

Responses
200

Swap transaction generated

application/json
post
/v1/developer/intent-to-swap-tx

Convert natural language trading intent into an executable swap transaction payload, compatible with OKX DEX by default.

Parameter
Type
Required
Description

intent

string

Yes

Natural language swap intent (e.g., "swap 0.1 ETH to USDC")

walletAddress

string

Yes

User wallet address (0x...)

chain

string

No

Chain name (e.g., "base", "ethereum", "arbitrum")

Example:


Perpetual trading suggestion

POST /v1/developer/perp-trading-suggestion

Perpetual Trading Suggestion

post

Get AI-powered perpetual trading suggestions with long/short recommendations, entry price, stop loss, take profit levels, and confidence score based on comprehensive market analysis.

Authorizations
AuthorizationstringRequired

Format: Authorization: Bearer <YOUR_API_KEY>

Body
symbolstringRequired

Required. Trading symbol (e.g., 'BTC', 'ETH', 'SOL').

stylestring · enumOptional

Optional. Trading style: 'scalping', 'day-trading', or 'swing-trading'. Default: 'scalping'.

Default: scalpingPossible values:
marginUSDnumberOptional

Optional. Margin in USD. Default: 1000.

Default: 1000
leveragenumber · min: 1 · max: 40Optional

Optional. Leverage multiplier (max: 40). Default: 10.

Default: 10
strategystringOptional

Optional. Strategy type. Default: 'max-profit'. More strategies coming soon.

Default: max-profit
Responses
200

Perpetual trading suggestion

application/json
entryPricenumberOptional

Recommended entry price.

sidestring · enumOptional

Trading side recommendation.

Possible values:
stopLossPricenumberOptional

Recommended stop loss price.

takeProfitPricenumberOptional

Recommended take profit price.

confidencenumber · max: 100Optional

Confidence score (0-100).

reasonsstring[]Optional

Analysis reasons based on technical indicators.

risksstring[]Optional

Risk factors to consider.

post
/v1/developer/perp-trading-suggestion

Get AI-powered perpetual trading suggestions with long/short recommendations, entry, stop loss, take profit, and confidence score.

Parameter
Type
Required
Description

symbol

string

Yes

Trading symbol (e.g., "BTC", "ETH", "SOL")

style

string

No

scalping, day-trading, or swing-trading

marginUSD

number

No

Margin in USD

leverage

number

No

Leverage multiplier (max: 40)

strategy

string

No

Strategy type

Example:


Prediction market analysis

POST /v1/developer/prediction-market-ask

Prediction Market Analysis

post

AI-powered prediction market analysis. Analyze prediction market events and get probability estimates for each outcome with detailed reasoning.

Authorizations
AuthorizationstringRequired

Format: Authorization: Bearer <YOUR_API_KEY>

Body
linkstringRequired

Required. Prediction market page link (e.g., Polymarket event URL).

modestring · enumRequired

Required. Chat mode: 'fast' or 'expert'.

Possible values:
only_resultbooleanOptional

Optional. Only return prediction probabilities without reasoning. Default: false.

Default: false
customPromptstringOptional

Optional. Custom instructions to guide the analysis. Use this to specify focus areas, risk preferences, or analysis style.

Responses
200

Prediction market analysis

application/json
reasoningstringOptional

AI reasoning and analysis (empty if only_result=true).

post
/v1/developer/prediction-market-ask

AI-powered probability estimates for prediction market outcomes.

Parameter
Type
Required
Description

link

string

Yes

Prediction market event URL (e.g., Polymarket)

mode

string

Yes

fast or expert

only_result

boolean

No

Return probabilities only, without reasoning

customPrompt

string

No

Custom instructions to guide the analysis

Example:

Last updated

Was this helpful?