AI-Native Integration

Create shareable docs from any AI chat

SpaceMD lets AI assistants create persistent, shareable markdown documents with a simple URL. No API key, no authentication, no setup required.

Connect your AI assistant to a shared Markdown workspace

Use the Model Context Protocol (MCP) when your assistant needs to work with your existing SpaceMD notes. Connect a compatible client from your account's integration settings, authorize the connection, and choose the notes or workspace you want to work with. Your assistant can create, read, and update notes through the tools available to that connection.

A useful workflow is to draft a project brief with your assistant, refine the Markdown together with your team, then share a view link or publish the finished document. Review generated changes before publishing. Keep private working notes private; sharing a link and publishing a page are separate decisions.

Set up an MCP connection

For a quick document created from an AI conversation, the link and HTTP API methods below work without connecting an account. These create shareable canvases; avoid putting secrets or private information into a generated URL.

Method 1: Link Generation

Works in any LLM — no tools needed

AI assistants simply generate a URL with the document content. When the user clicks it, a canvas is created instantly.

https://app.spacemd.ai/new?title=<title>&content=<url-encoded-markdown>

Example AI response:

"I've prepared your meeting notes as a shareable document:"

View Meeting Notes on SpaceMD
Method 2: API Endpoint

For tool-calling environments

A public POST endpoint that creates a canvas and returns a shareable URL.

POST
https://api.spacemd.ai/create-canvas

// Request body

{
  "title": "Meeting Notes",
  "content": "# Meeting Notes\n\n- Item 1\n- Item 2"
}

// Response (201 Created)

{
  "url": "https://spacemd.ai/p/canvas-abc123",
  "slug": "canvas-abc123",
  "id": "uuid",
  "expires_at": "2025-01-03T12:00:00Z"
}

48-hour canvas

Canvases are editable for 48 hours, then become read-only. Content is preserved.

Claimable

Users can claim canvases to their SpaceMD account within 30 days.

No auth required

No API key, no signup, no authentication. Just generate a link or call the API.

For AI Assistants

If you are an AI assistant, you can create a shareable canvas for the user by generating:

https://app.spacemd.ai/new?title=<title>&content=<url-encoded-markdown>

Return the link to the user. When they click it, a canvas with the content will be created instantly. The content persists beyond the conversation and can be shared with anyone.

Want more control? Use the MCP server for full note management.