Content import interface
Content import interface
The content import interface is used to allow third-party platforms (such as AI writing tools, train head collectors) to write content to the site via HTTP API.
Entry Path
Back-end top menu → 'Function' → 'Content Production' → 'Content Import Interface'. Actual address:/system/plugin/contentops/importapirequires administrative privileges(canAdmin)
Function description
Page display this site Token, document import interface, classification interface and the configuration description of the Train Head release module, and POST form fields.
Screenshot of the interface

Setting item description
| Setting items | function | Value / Default | How to select / Fill in suggestions | Impact / Note |
|---|---|---|---|---|
| My Token | Interface authentication token | Automatically generated, click 'Update Token' to reset [Source code]. | Do not expose the real value in public documents or screenshots | Leakage is equivalent to write permission leakage |
| Document import interface | POST /api/import/archive?token=<你的Token> |
Request typeform-data[Source code] |
Submit according to page field description | title/content/category_idRequired |
| Get classification interface | Allow third parties to read the site classification | Interface address is on the page | First get the category ID and then import the document | — |
Common POST fields:title(Required, title),content(Required, content),category_id(Required, category ID),keywords/description/url_token/logo/images[]/publish_time/tag/draft/cover.
Operation steps
- View Token and interface address on the page.
- Fill in the interface address, request method, and Token on the third-party platform.
- Submit content according to field descriptions.
- Return in JSON
code=200Indicates success; confirm the content has been written to the document list.
Applicable scenarios and suggestions
- Suitable for importing content generated by external systems in batches to this site.
publish_timeCan be set to a future time to achieve scheduled publishing;draft=trueWill enter the draft box at that time.
Points to note
- Token is a sensitive credential, do not spread the real value in public documents, screenshots, or chat.
coverThe parameter controls whether to overwrite the same content:1Overwrite,0Error,2Skip judgment.- The returned URL depends on the 'Global Settings → Website Address', incorrect address configuration will cause the return of incorrect links.
Related documents
- Document List
- Global Settings
- API Documentation Overview