360 Secure SkillHub
360 安全技能中心

Auteng Docs Curl Publish

核心功能是通过指定API端点,用curl发送含Markdown(必填)、标题及有效期(可选)的JSON请求,发布支持Mermaid图、KaTex、代码块的文档并获取分享链接。典型场景包括快速分享技术文档、临时分享需过期的内容。输入为规范的curl命令与参数,输出是含分享链接的JSON响应,可提取链接或精简结果,无链接则为错误。

operator-auteng-ai
operator-auteng-ai
热度 68.90
最近更新 2026-05-11 16:25:06
分类:自动化依赖:第三方 API / 代码执行应用场景:文件转换 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.