Trade Mind API
Last updated
Last updated
Trade Mind API is a powerful set of RESTful interfaces that allow developers to interact with the Trade Mind platform programmatically. You can create and manage agents, models, files, tools, prompts, categories, and more.
All API requests use the following base URL:
Trade Mind API uses API Token Authentication.
You can get your API Token via:
Official Website: Log in to → Profile Settings → API Token.
API Request:
Include your token in the HTTP headers for all API calls:
API Tokens are in the format:
To reset a compromised token:
Note: Resetting will invalidate your old token.
Trade Mind offers a simple dialogue API for real-time agent interaction.
Send your API Token in the X-API-Token
header.
message
string
Yes
User message content
conversation_id
string
No
Optional ID to continue a conversation
Curl Example
Python Example
The response is Server-Sent Events (SSE):
event: status – Status updates
event: message – Actual chat message content
Example:
/api/open/token
POST
Obtain API Token
/api/open/token/reset
POST
Reset API Token
/api/agents
GET
List all agents
/api/agents
POST
Create new agent
/api/agents/{agent_id}
GET
Get agent details
/api/agents/{agent_id}
PUT
Update agent
/api/agents/{agent_id}
DELETE
Delete agent
/api/agents/{agent_id}/chat
POST
Chat with agent
/api/open/agents/{agent_id}/dialogue
POST
Open dialogue with agent
/api/models
GET
List all models
/api/models
POST
Add new model
/api/models/{model_id}
GET
Get model details
/api/models/{model_id}
PUT
Update model
/api/models/{model_id}
DELETE
Delete model
/api/files
GET
List all files
/api/files
POST
Upload file
/api/files/{file_id}
GET
Get file details
/api/files/{file_id}/download
GET
Download file
/api/files/{file_id}
DELETE
Delete file
/api/tools
GET
List all tools
/api/tools
POST
Create new tool
/api/tools/{tool_id}
GET
Get tool details
/api/tools/{tool_id}
PUT
Update tool
/api/tools/{tool_id}
DELETE
Delete tool
/api/prompts
GET
List prompts
/api/prompts
POST
Create prompt
/api/prompts/{prompt_id}
GET
Get prompt
/api/prompts/{prompt_id}
PUT
Update prompt
/api/prompts/{prompt_id}
DELETE
Delete prompt
/api/categories
GET
List categories
/api/categories
POST
Create category
/api/categories/{category_id}
GET
Get category details
/api/categories/{category_id}
PUT
Update category
/api/categories/{category_id}
DELETE
Delete category
/api/mcp/create
POST
Create MCP server
/api/mcp/list
GET
List MCP servers
/api/mcp/{mcp_name}
DELETE
Delete MCP server
/api/mcp/{mcp_name}/prompts
POST
Add prompt to MCP server
/api/mcp/{mcp_name}/resources
POST
Add resource to MCP server
/api/mcp/tools/{tool_id}
GET
Get MCP tool information
/mcp/{mcp_name}
GET/POST
MCP server endpoint
All API responses follow a unified format:
0
Success
10001
Invalid token
10002
Token expired
10003
Invalid credentials
10004
User not found
20001
Resource doesn't exist
20002
Resource already exists
30001
Parameter error
40001
API call error
50001
Internal server error
Requests per IP
60 requests/minute
Requests per user
120 requests/minute
Chat API
10 chat requests/minute
Exceeding limits returns HTTP 429 status.
Python
JavaScript
Trade Mind API empowers developers to build, manage, and scale intelligent Web3 agents with secure, verifiable infrastructure on Solana and beyond.