Loading...
Loading...
Publish or update a Markdown document as a hosted web page using the JotBird API (jotbird.com). Use this whenever the user asks to "publish", "share as a link", "put this on JotBird", "update my JotBird doc/page", or wants Markdown content turned into a public URL. Also covers checking/updating page settings (theme, visibility, password) and listing or removing published JotBird documents.
npx skill4agent add hoangsoft90/ai_skills jotbird-publishhttps://www.jotbird.comexport JOTBIRD_API_KEY="jb_c57e765852df55f32daa0f8c745b3241552a052ddfbe1907f73a4d67d107fe4b"$JOTBIRD_API_KEYcurl -s -X POST https://www.jotbird.com/api/v1/publish \
-H "Authorization: Bearer $JOTBIRD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Hello World\n\nContent here."
}'title# H1slugnamespaced: trueshare.jotbird.com/@username/slugslug201200{
"slug": "bright-calm-meadow",
"username": null,
"url": "https://share.jotbird.com/bright-calm-meadow",
"title": "Hello World",
"expiresAt": "2026-05-10T12:00:00.000Z",
"ttlDays": 90,
"created": true
}slugurlslugcurl -s -X POST https://www.jotbird.com/api/v1/publish \
-H "Authorization: Bearer $JOTBIRD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown": "# Updated\n\nNew content.", "slug": "bright-calm-meadow"}'curl -s https://www.jotbird.com/api/v1/documents \
-H "Authorization: Bearer $JOTBIRD_API_KEY"slugusernametitleurlsourcecliwebapiupdatedAtexpiresAtthemehideBrandingvisibilitytagscurl -s https://www.jotbird.com/api/v1/documents/<slug>/settings \
-H "Authorization: Bearer $JOTBIRD_API_KEY"curl -s -X PATCH https://www.jotbird.com/api/v1/documents/<slug>/settings \
-H "Authorization: Bearer $JOTBIRD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"theme": "essay", "visibility": "public"}'themedefaultminimalessayterminalhideBrandingvisibilityunlistedpublicpasswordpasswordpassword@username/slug?namespaced=truepublicunlistedcurl -s -X DELETE "https://www.jotbird.com/api/v1/documents?slug=<slug>" \
-H "Authorization: Bearer $JOTBIRD_API_KEY"&namespaced=true@username/slug| Code | Meaning | Typical cause |
|---|---|---|
| 400 | Bad Request | missing |
| 401 | Unauthorized | missing/invalid API key |
| 403 | Forbidden | not your document, or free-tier 10-doc cap reached |
| 429 | Rate limited | check |
| 413 | Payload too large | rendered HTML > 512 KB |
| 503 | Service unavailable | retry later |
slugcurl$JOTBIRD_API_KEYurlslug