Design & media

Nishare Api

Try it

Use when the user wants to publish, update, or explain how to publish AI-generated HTML, image, or document content to Nishare via its API, needs curl exampl...

What it does

Use when the user wants to publish, update, or explain how to publish AI-generated HTML, image, or document content to Nishare via its API, needs curl examples, API-Key/Bearer authentication, 工作组 targeting, payload validation rules, or wants an agent prompt that returns a Nishare shareUrl.

The skill document

Nishare API

Use this skill when helping a user or another AI tool publish generated content to Nishare.

Quick Workflow

  1. Choose the base URL:
    • Production: https://nishare.com
  2. Choose an endpoint:
    • Create a share: POST /api/ai/publish
    • Update an existing project: POST /api/ai/update
  3. Choose content type:
    • HTML: full HTML document only
    • Markdown: document text
    • Image: imageDataUrl, imageBase64, or imageUrl
  4. Add authentication only when publishing into an account/工作组 or updating:
    • X-Nishare-Key: nsk_xxx, or
    • Authorization: Bearer nsk_xxx
  5. Return shareUrl to the user on success. On failure, surface message and any matches.

Copyable Agent Prompt

Use this prompt when instructing another AI tool:

把内容发布到 Nishare:POST https://nishare.com/api/ai/publish,成功后返回 shareUrl,失败时返回 message。

For full HTML pages:

请把你生成的完整页面 HTML 通过 POST 发送到 https://nishare.com/api/ai/publish,JSON 格式为 {"title":"页面标题","type":"html","html":"完整页面 HTML"},然后把响应里的 shareUrl 返回给我。

Essential Examples

Publish HTML:

curl -s https://nishare.com/api/ai/publish \
  -H 'Content-Type: application/json' \
  -d '{"title":"AI 生成演示","type":"html","html":"<!doctype html>Hello"}'

Publish with API Key:

curl -s https://nishare.com/api/ai/publish \
  -H 'Content-Type: application/json' \
  -H 'X-Nishare-Key: nsk_xxx' \
  -d '{"title":"AI 生成演示","type":"html","html":"<!doctype html>Hello"}'

Update a project:

curl -s https://nishare.com/api/ai/update \
  -H 'Content-Type: application/json' \
  -H 'X-Nishare-Key: nsk_xxx' \
  -d '{"projectId":"project_id","title":"更新后的演示","type":"html","html":"<!doctype html>Updated"}'

Detailed Reference

Read references/api.md when you need:

  • All accepted payload fields and headers
  • Markdown, image, raw HTML, or text examples
  • 工作组 targeting
  • Response shapes
  • Validation limits and common errors

Related skills

Nusii Proposals (nusii.com). Use this skill for ANY Nusii Proposals request — reading, creating, and updating data. Whenever a task involves Nusii Proposals, use this skill instead of calling the API directly.

1 installs

Discover, prepare, and execute any Risha.ai capability available to the authenticated account. Use when Codex needs to authenticate to a Risha workspace, loa...

11 installs

NinjaPear (nubela.co). Use this skill for ANY NinjaPear request — searching and reading data. Whenever a task involves NinjaPear, use this skill instead of c...

1 installs

Use when you need to share static web content (HTML/CSS/JS/images) via a publicly accessible URL — uploading generated files, creating shareable pages, or deploying single-page web artifacts

1 installs

Upload, edit, and export documents via Nudocs.ai. Use when creating shareable document links for collaborative editing, uploading markdown/docs to Nudocs for rich editing, or pulling back edited content. Triggers on "send to nudocs", "upload to nudocs", "edit in nudocs", "pull from nudocs", "get the nudocs link", "show my nudocs documents".

92 installs1 stars

Extract normalized content from public share URLs, RSS/Atom feeds, timed-text/subtitle documents, and web pages using a protocol-first fallback ladder. Use for public AI chat shares, social/media links, RSS/Atom feeds, WebVTT/SRT/TTML captions, articles, oEmbed pages, public JSON endpoints, or when an agent needs the highest-fidelity public content without bypassing authentication, CAPTCHAs, paywalls, or access controls.