Install
openclaw skills install chatdoc-studio-apiChatDOC Studio API usage guide - complete documentation and examples for PDF parsing, chat applications, agent applications, content retrieval, and data extraction APIs
openclaw skills install chatdoc-studio-apiChatDOC Studio is an AI-powered document processing and conversation platform providing multiple API capabilities:
https://api.chatdoc.studio/v1
All API requests require a JWT Token in the HTTP Header:
Authorization: Bearer YOUR_API_KEY
Manage API configuration through environment variables:
| Environment Variable | Description | Default Value |
|---|---|---|
CHATDOC_STUDIO_BASE_URL | API Base URL | https://api.chatdoc.studio/v1 |
CHATDOC_STUDIO_API_KEY | API authentication key | - |
| API | DOC | DOCX | MD | TXT | |
|---|---|---|---|---|---|
| PDF Parser | ✓ | ✗ | ✗ | ✗ | ✗ |
| Chat App | ✓ | ✓ | ✓ | ✓ | ✓ |
| Agent App | ✓ | ✓ | ✓ | ✗ | ✗ |
| RAG App | ✓ | ✓ | ✓ | ✗ | ✗ |
| Extract App | ✓ | ✓ | ✓ | ✗ | ✗ |
Required for all apps except PDF Parser. Upload documents to your team before using them in Chat Apps, Agent Apps, RAG Apps, or Extract Apps.
Documentation: uploads/uploads_api.md Code Examples: uploads/uploads_api_examples.md
Parse PDF documents into structured data, supporting JSON, Markdown, and Excel exports.
Documentation: parsers/pdf_parser.md Code Examples: parsers/pdf_parser_examples.md
Create document-based Q&A chat applications with multi-turn conversations and source tracing.
Documentation: chat/chat_app.md Code Examples: chat/chat_app_examples.md
Submit uploaded files to published Agent Apps, poll task status, and fetch final task results.
Documentation: agent/agent_app.md Code Examples: agent/agent_app_examples.md
Perform semantic retrieval based on document content to retrieve relevant document fragments.
Documentation: retrieval/rag_app.md Code Examples: retrieval/rag_app_examples.md
Extract structured data from documents based on JSON Schema definitions.
Documentation: extraction/extract_app.md Code Examples: extraction/extract_app_examples.md
Manage all types of applications (Chat, Agent, Extract, RAG) in your team - list and delete apps.
Documentation: apps/apps.md Code Examples: apps/apps_examples.md
All uploaded documents go through a processing status flow. Understanding document status is crucial for proper API usage.
Documentation: docs/document_status.md
All API responses follow a unified format:
Success Response:
{
"type": "System",
"code": "success",
"data": { ... },
"detail": null
}
Error Response:
{
"type": "...",
"code": "...",
"data": ...,
"detail": "...."
}
In addition to API-specific error codes, the following error codes may be returned by any API endpoint:
These errors are related to your subscription plan's credit and capacity limits. Your API usage consumes credits and counts against your plan's capacity.
| Error Code | Description |
|---|---|
credit_not_enough | Insufficient credits to perform the operation. Top up your credits or upgrade your plan. |
capacity_not_enough | Storage capacity exceeded. Delete unused documents or upgrade your plan. |
app_count_not_enough | Maximum number of apps allowed by your plan has been reached. |
member_count_not_enough | Maximum number of team members allowed by your plan has been reached. |
upgrade_plan_error | Error occurred during plan upgrade process. |
not_found | Plan not found. Contact support. |
These are general system-level errors that may occur during API operations.
| Error Code | Description |
|---|---|
unknown_error | An unexpected error occurred. Try again or contact support if it persists. |
validation_error | Request validation failed. Check your request parameters. |
project_expired | The project or subscription has expired. Renew your subscription to continue. |
handshake_error | Authentication handshake failed. Check your API key. |
API calls are subject to rate limits based on your subscription plan. HTTP 429 status code will be returned when limits are exceeded.
PDF Parser: Upload and parse → Get JSON/Markdown/Excel
Chat App: Upload documents → Create Chat App → Send messages
Agent App: Upload document → Create Agent task → Poll status → Get final result
RAG App: Upload documents → Create RAG App → Query content
Extract App: Create Extract App with schema → Upload document → Get extracted data