API Reference (API Key)

Technical specifications for the Minara Agent API endpoints.

Developer API

The core endpoint for interacting with Minara's conversational AI.

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
chevron-right
200

Successful response

post
/v1/developer/chat

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
chevron-right
200

Swap transaction generated

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

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
chevron-right
200

Perpetual trading suggestion

application/json
post
/v1/developer/perp-trading-suggestion

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
chevron-right
200

Prediction market analysis

application/json
post
/v1/developer/prediction-market-ask

Developer API

Chat

Endpoint

POST https://api-developer.minara.ai/v1/developer/chat

Request Body

Parameter
Type
Required
Description

mode

string

Yes

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

stream

boolean

Yes

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

message

object

Yes

Message object with role and content

message.role

string

Yes

Message sender role, must be 'user'.

message.content

string

Yes

The user's query content.

Example Request

Responses

Standard Response (stream: false)

Returns a JSON object with the complete response.

Streaming Response (stream: true)

Returns Content-Type: text/event-stream using Server-Sent Events (SSE).


Intent to Swap Transaction

Endpoint

POST https://api-developer.minara.ai/v1/developer/intent-to-swap-tx

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

Request Body

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", "bsc", "arbitrum", "optimism")

Example Request

Response


Perpetual Trading Suggestion

Endpoint

POST https://api-developer.minara.ai/v1/developer/perp-trading-suggestion

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.

Request Body

Parameter
Type
Required
Description

symbol

string

Yes

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

style

string

No

Trading style: "scalping", "day-trading", or "swing-trading"

marginUSD

number

No

Margin in USD

leverage

number

No

Leverage multiplier (max: 40)

strategy

string

No

Strategy type (more strategies coming soon)

Example Request

Response


Prediction Market Analysis

Endpoint

POST https://api-developer.minara.ai/v1/developer/prediction-market-ask

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

Request Body

Parameter
Type
Required
Description

link

string

Yes

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

mode

string

Yes

Chat mode: "fast" or "expert"

only_result

boolean

No

Only return prediction probabilities without reasoning

customPrompt

string

No

Custom instructions to guide the analysis

Example Request

Response

Last updated

Was this helpful?