Skip to content
artifakt.one
HTTP API

HTTP API

JSON over HTTPS. Base URL https://artifakt.one/api/v1. Concepts and access levels are on the Quickstart.

Endpoints

MethodPathActionSuccess
POST/api/v1/pagesPublish a page201 page link, or 200 upload ticket
GET/api/v1/pagesList pages200 { "items": [...] }
GET/api/v1/pages/:idRead a page and its source200 page
PUT/api/v1/pages/:idAdd a new version200 page link, or 200 upload ticket
PUT/api/v1/pages/:id/detailsChange title or description200 page summary
PUT/api/v1/pages/:id/accessSet the access level200 id, url, access
DELETE/api/v1/pages/:idDelete a page and every version200 { "id": "...", "deleted": true }
PUT/api/v1/uploads/:tokenSend the file for an upload ticket200 page link

Request bodies are JSON. Every response is JSON, errors included. A path not listed here answers 404. A method a path does not take answers 405.

Authentication

header
Authorization: Bearer ak_...

Every endpoint except PUT /api/v1/uploads/:token needs this header. A person creates the key in the dashboard under Settings, API keys. The key acts as that person in that team.

OperationPages the key reaches
List, readEvery page in the team except other members' only_me pages
Update, details, access, deletePages the key's creator published. A team owner's key reaches every page it can read

No key, an unknown key or a revoked key: 401. A page the key cannot read: 404. A page it can read but not change: 403.

Publish a page

endpoint
POST /api/v1/pages
FieldTypeRequiredRules
formatstringyesmarkdown or html. Fixed for the life of the page.
contentstringcontent or uploadThe whole document. Size caps in Limits.
uploadtruecontent or uploadReturns an upload ticket instead of publishing. Not with content, not with password access.
titlestringnoUp to 200 characters. Default: the first level-1 heading of markdown, the <title> of HTML, else Untitled.
descriptionstringno1 to 300 characters after trimming. Without it, link previews use the first paragraph of a markdown page, and the field reads back null.
accessstringnopublic, password, team or only_me. Default public.
passwordstringwhen access is password8 to 200 characters. Refused with any other access level.
provenanceobjectnoShown in the page footer. Optional keys: tool and model, strings up to 100 characters; conversation_url, an https URL.
shell
curl https://artifakt.one/api/v1/pages \
  -H "Authorization: Bearer $ARTIFAKT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"format": "markdown", "content": "# Plan\n\nShip on Friday.", "access": "only_me", "provenance": {"tool": "Claude Code"}}'
201 Created
{
  "id": "7Hq2xK9mPq3vRt8w",
  "url": "https://artifakt.one/p/7Hq2xK9mPq3vRt8w",
  "version": 1
}

List pages

endpoint
GET /api/v1/pages?query=&status=&cursor=&limit=
ParameterTypeRules
querystringOptional. Up to 200 characters. Matches titles that contain it, ignoring case.
limitintegerOptional. 1 to 50, default 20.
statusstringOptional. One of public, password, team, only_me or revoked.
cursorstringOptional. The next_cursor of the previous answer.

Answers { "items": [...], "next_cursor": "..." }, newest updated_at first. Each item has the summary fields in Page fields. next_cursor is null on the last batch; send it as cursor to read the next one.

Read a page

endpoint
GET /api/v1/pages/:id

Answers every field in Page fields, including the current version's source.

200 OK
{
  "id": "7Hq2xK9mPq3vRt8w",
  "url": "https://artifakt.one/p/7Hq2xK9mPq3vRt8w",
  "version": 2,
  "title": "Plan",
  "format": "markdown",
  "access": "only_me",
  "revoked": false,
  "updated_at": "2026-11-01T09:30:00.000Z",
  "created_at": "2026-10-30T14:02:11.000Z",
  "description": null,
  "source": "# Plan\n\nShip on Friday."
}

Update a page

endpoint
PUT /api/v1/pages/:id

Adds the next version. The link and format stay the same. Older versions stay at /p/:id/v/:n. Answers the page link with the new version.

FieldTypeRequiredRules
contentstringcontent or uploadThe whole new document.
uploadtruecontent or uploadReturns an upload ticket. Not with content.
titlestringnoUp to 200 characters. Default: the title found in the new content. Without one, the current title stays.
descriptionstringno1 to 300 characters after trimming. Without it, the current description stays.
provenanceobjectnoSame shape as publish, for the new version.

Upload a file

Publish or update with "upload": true to send a local file without putting it in JSON. The answer is a ticket:

200 OK
{
  "upload_url": "https://artifakt.one/api/v1/uploads/up_...",
  "expires_at": "2026-11-10T09:10:00.000Z",
  "command": "curl --fail-with-body -sS -T <file> https://artifakt.one/api/v1/uploads/up_..."
}
  • Run command with the file path in place of <file>. It sends the raw file as a PUT body.
  • The URL needs no API key, works once and expires 10 minutes after it is issued.
  • The page gets every other field from the first request. The answer is the page link with status 200, also for a new page.
  • The file must be UTF-8 text and not empty. A too_large or rate_limited refusal uses the URL up, so ask for a new ticket.
  • A used, expired or wrong URL answers 404.

Change title or description

endpoint
PUT /api/v1/pages/:id/details
FieldTypeRequiredRules
titlestringone of the two1 to 200 characters after trimming.
descriptionstringone of the two1 to 300 characters after trimming.

Keeps the content and version. Answers the page summary plus description. A later update without a title takes the title from its new content again, when it has one.

Set access

endpoint
PUT /api/v1/pages/:id/access
FieldTypeRequiredRules
accessstringyespublic, password, team or only_me
passwordstringwhen access is password8 to 200 characters. Refused with any other access level.

The link stays the same. Any level other than password removes the stored password.

Delete a page

endpoint
DELETE /api/v1/pages/:id

Removes the page and every version. The link stops working. It cannot be undone.

Page fields

The page link is the first three fields. The page summary, used by list and details, is the first eight. Read returns all.

FieldTypeMeaning
idstring16 random base58 characters
urlstringThe link to share, https://artifakt.one/p/:id
versionintegerCurrent version. The first is 1
titlestringPage title
formatstringmarkdown or html
accessstringpublic, password, team or only_me
revokedbooleantrue when the publisher turned the link off. The link then answers 410
updated_atstringISO 8601 UTC time of the last change to the page
created_atstringISO 8601 UTC time of the first publish
descriptionstring or nullThe description the publisher set
sourcestringMarkdown or HTML of the current version, cut at 100,000 characters
notestringOnly when source is cut. Gives the full length

Errors

401 Unauthorized
{
  "error": "unauthorized",
  "message": "This API key is unknown or revoked. Create a new one in the dashboard."
}

Branch on error. Show message to the person as is. A 400 message starts with the field that failed.

StatuserrorCause
400invalid_requestBody is not valid JSON, a field is missing or wrong, or an uploaded file is empty or not UTF-8
401unauthorizedNo key, or an unknown or revoked key
403forbiddenThe key can read the page but not change it, or the upload URL's creator left the team
404not_foundNo page with this id that the key can read, no route at this path, or a used, expired or wrong upload URL
405method_not_allowedThe path does not take this method. The message names the methods it takes
409conflictAnother update to the page landed at the same moment. Send the update again
413too_largeContent or request body over its limit
429rate_limitedToo many publishes and updates in a minute. The message gives the seconds to wait. No Retry-After header
500internalServer error. Try again later

Limits

LimitValue
Markdown content1,000,000 bytes
HTML content5,000,000 bytes
Request body, including an upload12,000,000 bytes
Publishes and updates, including finished uploads60 a minute per team, 600 a minute per IP address. Asking for an upload ticket does not count
Pages in one list response50
Source in a read response100,000 characters
Upload URLOne use, 10 minutes