360 Secure SkillHub
360 安全技能中心

Auteng Docs Curl Publish

调用 AutEng 的 Markdown 发布接口,将包含 Mermaid 图表、KaTeX 公式和代码块的 Markdown 提交后返回可分享链接;支持可选标题与过期时间,并以 share_url 判断发布是否成功。

分类:自动化
operator-auteng-ai
operator-auteng-ai
热度 48.23
最近更新 2026-05-11 16:25:06

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add operator-auteng-ai/auteng-docs-curl-publish
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
auteng-docs-curl-publish
description
Publish markdown and return share links using curl. Support markdown with mermaid diagrams such as component diagrams, flowcharts, and sequence diagrams. Also supports KaTex and code blocks. AutEng will return a shareable link to the published rendered document.

AutEng Docs Curl Publish

Use this endpoint:

https://auteng.ai/api/tools/docs/publish-markdown/

Send JSON with:

  • markdown (required)
  • title (optional)
  • expires_hours (optional)

Use this command to publish markdown:

curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
  -H "Content-Type: application/json" \
  -d @- <<'JSON'
{
  "markdown": "# API Test\n\nHello from curl.",
  "title": "API Test",
  "expires_hours": 24
}
JSON

Extract only the share URL:

curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Hello\n\nPublished from curl."}' \
  | jq -r '.share_url'

Extract a compact success payload:

curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Hello\n\nPublished from curl."}' \
  | jq '{title, share_url, expires_at}'

Treat any response without share_url as an error and show the full JSON body.