Create anonymously
curl -X POST https://jotspot.io/api/v1/jots/text -d "Hello world"
Draft by default. Add ?visibility=public to publish immediately.
Create, share, and fetch JotSpot notes from your terminal.
`POST /api/v1/jots/text` creates a draft jot with a short slug and returns the share URL, raw URL, and private manage URL.
curl -X POST https://jotspot.io/api/v1/jots/text -d "Hello world"
Draft by default. Add ?visibility=public to publish immediately.
curl -H "Authorization: Bearer <api_key>" -X POST https://jotspot.io/api/v1/jots/text --data-binary @notes.md
cat README.md | curl -X POST https://jotspot.io/api/v1/jots/text --data-binary @-
curl -X PATCH "https://jotspot.io/api/v1/jots/abc123/text?token=<owner_token>" --data-binary @notes.md
Add &visibility=public to publish, or &visibility=draft to unpublish.
curl -H "Authorization: Bearer <api_key>" -X PATCH "https://jotspot.io/api/v1/jots/abc123/text" --data-binary @notes.md
curl https://jotspot.io/j/abc123.txt
curl https://jotspot.io/j/abc123.md
curl -H "Accept: text/plain" https://jotspot.io/j/abc123
curl -s -X POST "https://jotspot.io/api/v1/jots/text?format=text" -d "Hello"
{
"success": true,
"jot_id": "x93dst55",
"url": "https://jotspot.io/j/abc123",
"raw_url": "https://jotspot.io/j/abc123.txt",
"manage_url": "https://jotspot.io/manage/abc123/<token>",
"visibility": "draft"
}
AnonymousAccount-ownedAuthorization: Bearer <api_key>.Visibility?visibility=public to publish immediately or when editing.successjot_id/j/<id>.urlraw_urlmanage_urlvisibilitydraft.