DeepCore API
DeepCore API Documentation
Last updated
DeepCore API Documentation
Last updated
DeepCore API is a powerful set of RESTful API interfaces that provide the ability to interact with the DeepCore platform. These interfaces allow developers to create and manage agents, models, files, tools, prompts, categories, and other resources.
All API requests are based on the following base URL:
DeepCore API uses API Token authentication, which is simple to implement and suitable for both development and production environments.
API Token is a long-term authentication credential used to access DeepCore APIs. It simplifies the authentication process and is recommended for all integration scenarios.
Obtaining an API Token
You can obtain an API Token from one of the following sources:
DeepCore Official Website: Log in to and navigate to your profile settings to find your API Token.
API Token Endpoint: If you already have account credentials, you can use the following endpoint to obtain an API Token:
Using API Token
After obtaining an API Token, include it in the X-API-Token
request header for all API calls:
API Token Format
API Tokens follow a specific format: tk_
followed by a 20-character string. For example:
Resetting API Token
If your API Token is compromised or you need to reset it for security reasons, you can use the reset endpoint:
Note: Resetting your API Token will invalidate the previous token.
The Open Dialogue API is a mechanism provided by DeepCore that allows third-party applications to integrate agent dialogue functionality in a simplified way.
Uses API Token authentication via the X-API-Token
request header.
Parameter
Type
Required
Description
message
string
Yes
User message content
conversation_id
string
No
Conversation ID, used to continue an existing conversation. Developers are recommended to define and pass their own conversation ID for tracking and management purposes
The interface returns Server-Sent Events (SSE) format streaming responses. Each event is prefixed with event:
and data:
, and comes in two main types:
Status events: Indicate the current status of the request processing
Message events: Contain actual response content, usually in small chunks
Example Response
Path
Method
Description
/api/open/token
POST
Get API Token
/api/open/token/reset
POST
Reset API Token
Path
Method
Description
/api/agents
GET
Get list of all agents
/api/agents
POST
Create new agent
/api/agents/{agent_id}
GET
Get specific agent details
/api/agents/{agent_id}
PUT
Update specific agent
/api/agents/{agent_id}
DELETE
Delete specific agent
/api/agents/{agent_id}/chat
POST
Chat with an agent
Path
Method
Description
/api/open/agents/{agent_id}/dialogue
POST
Open agent dialogue interface, supports streaming responses
/api/open/examples
GET
Get API usage example code
Path
Method
Description
/api/models
GET
Get list of all models
/api/models
POST
Add new model
/api/models/{model_id}
GET
Get specific model details
/api/models/{model_id}
PUT
Update specific model
/api/models/{model_id}
DELETE
Delete specific model
Path
Method
Description
/api/files
GET
Get list of all files
/api/files
POST
Upload new file
/api/files/{file_id}
GET
Get specific file details
/api/files/{file_id}
DELETE
Delete specific file
/api/files/{file_id}/download
GET
Download specific file
Path
Method
Description
/api/tools
GET
Get list of all tools
/api/tools
POST
Create new tool
/api/tools/{tool_id}
GET
Get specific tool details
/api/tools/{tool_id}
PUT
Update specific tool
/api/tools/{tool_id}
DELETE
Delete specific tool
Path
Method
Description
/api/prompts
GET
Get list of all prompts
/api/prompts
POST
Create new prompt
/api/prompts/{prompt_id}
GET
Get specific prompt details
/api/prompts/{prompt_id}
PUT
Update specific prompt
/api/prompts/{prompt_id}
DELETE
Delete specific prompt
Path
Method
Description
/api/categories
GET
Get list of all categories
/api/categories
POST
Create new category
/api/categories/{category_id}
GET
Get specific category details
/api/categories/{category_id}
PUT
Update specific category
/api/categories/{category_id}
DELETE
Delete specific category
Path
Method
Description
/api/images
POST
Generate image
/api/images/history
GET
Get image generation history
Path
Method
Description
/api/open/chat
POST
Open chat interface
/api/open/agents
GET
Get list of publicly accessible agents
Path
Method
Description
/api/mcp/create
POST
Create new MCP server
/api/mcp/list
GET
List all MCP servers
/api/mcp/{mcp_name}
DELETE
Delete specified MCP server
/api/mcp/{mcp_name}/prompts
POST
Add prompt template to MCP server
/api/mcp/{mcp_name}/resources
POST
Add resource to MCP server
/api/mcp/tools/{tool_id}
GET
Get MCP service information for a tool
/mcp/{mcp_name}
GET/POST
MCP server endpoint
All API responses follow a unified format:
Error Code
Description
0
Success
10001
Invalid token
10002
Token expired
10003
Invalid username or password
10004
User not found
20001
Resource doesn't exist
20002
Resource already exists
30001
Parameter error
40001
API call error
50001
Internal server error
DeepCore API can be integrated with various programming languages and frameworks, including Python, JavaScript, Java, etc. Requests can be initiated through HTTP client libraries or using our official SDK.
To ensure service quality, API requests have the following limitations:
Maximum 60 requests per minute per IP address
Maximum 120 requests per minute per user
Maximum 10 chat API requests per minute per user
Exceeding these limits will result in HTTP 429 status code.
For more information and detailed documentation about the API, please visit .