HTTP API
JSON over HTTPS. Base URL https://artifakt.one/api/v1. Concepts and access levels are on the Quickstart.
Endpoints
| Method | Path | Action | Success |
|---|---|---|---|
POST | /api/v1/pages | Publish a page | 201 page link, or 200 upload ticket |
GET | /api/v1/pages | List pages | 200 { "items": [...] } |
GET | /api/v1/pages/:id | Read a page and its source | 200 page |
PUT | /api/v1/pages/:id | Add a new version | 200 page link, or 200 upload ticket |
PUT | /api/v1/pages/:id/details | Change title or description | 200 page summary |
PUT | /api/v1/pages/:id/access | Set the access level | 200 id, url, access |
DELETE | /api/v1/pages/:id | Delete a page and every version | 200 { "id": "...", "deleted": true } |
PUT | /api/v1/uploads/:token | Send the file for an upload ticket | 200 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
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.
| Operation | Pages the key reaches |
|---|---|
| List, read | Every page in the team except other members' only_me pages |
| Update, details, access, delete | Pages 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
POST /api/v1/pages| Field | Type | Required | Rules |
|---|---|---|---|
format | string | yes | markdown or html. Fixed for the life of the page. |
content | string | content or upload | The whole document. Size caps in Limits. |
upload | true | content or upload | Returns an upload ticket instead of publishing. Not with content, not with password access. |
title | string | no | Up to 200 characters. Default: the first level-1 heading of markdown, the <title> of HTML, else Untitled. |
description | string | no | 1 to 300 characters after trimming. Without it, link previews use the first paragraph of a markdown page, and the field reads back null. |
access | string | no | public, password, team or only_me. Default public. |
password | string | when access is password | 8 to 200 characters. Refused with any other access level. |
provenance | object | no | Shown in the page footer. Optional keys: tool and model, strings up to 100 characters; conversation_url, an https URL. |
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"}}'{
"id": "7Hq2xK9mPq3vRt8w",
"url": "https://artifakt.one/p/7Hq2xK9mPq3vRt8w",
"version": 1
}List pages
GET /api/v1/pages?query=&status=&cursor=&limit=| Parameter | Type | Rules |
|---|---|---|
query | string | Optional. Up to 200 characters. Matches titles that contain it, ignoring case. |
limit | integer | Optional. 1 to 50, default 20. |
status | string | Optional. One of public, password, team, only_me or revoked. |
cursor | string | Optional. 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
GET /api/v1/pages/:idAnswers every field in Page fields, including the current version's source.
{
"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
PUT /api/v1/pages/:idAdds 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.
| Field | Type | Required | Rules |
|---|---|---|---|
content | string | content or upload | The whole new document. |
upload | true | content or upload | Returns an upload ticket. Not with content. |
title | string | no | Up to 200 characters. Default: the title found in the new content. Without one, the current title stays. |
description | string | no | 1 to 300 characters after trimming. Without it, the current description stays. |
provenance | object | no | Same 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:
{
"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
commandwith the file path in place of<file>. It sends the raw file as aPUTbody. - 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_largeorrate_limitedrefusal uses the URL up, so ask for a new ticket. - A used, expired or wrong URL answers
404.
Change title or description
PUT /api/v1/pages/:id/details| Field | Type | Required | Rules |
|---|---|---|---|
title | string | one of the two | 1 to 200 characters after trimming. |
description | string | one of the two | 1 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
PUT /api/v1/pages/:id/access| Field | Type | Required | Rules |
|---|---|---|---|
access | string | yes | public, password, team or only_me |
password | string | when access is password | 8 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
DELETE /api/v1/pages/:idRemoves 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.
| Field | Type | Meaning |
|---|---|---|
id | string | 16 random base58 characters |
url | string | The link to share, https://artifakt.one/p/:id |
version | integer | Current version. The first is 1 |
title | string | Page title |
format | string | markdown or html |
access | string | public, password, team or only_me |
revoked | boolean | true when the publisher turned the link off. The link then answers 410 |
updated_at | string | ISO 8601 UTC time of the last change to the page |
created_at | string | ISO 8601 UTC time of the first publish |
description | string or null | The description the publisher set |
source | string | Markdown or HTML of the current version, cut at 100,000 characters |
note | string | Only when source is cut. Gives the full length |
Errors
{
"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.
| Status | error | Cause |
|---|---|---|
| 400 | invalid_request | Body is not valid JSON, a field is missing or wrong, or an uploaded file is empty or not UTF-8 |
| 401 | unauthorized | No key, or an unknown or revoked key |
| 403 | forbidden | The key can read the page but not change it, or the upload URL's creator left the team |
| 404 | not_found | No page with this id that the key can read, no route at this path, or a used, expired or wrong upload URL |
| 405 | method_not_allowed | The path does not take this method. The message names the methods it takes |
| 409 | conflict | Another update to the page landed at the same moment. Send the update again |
| 413 | too_large | Content or request body over its limit |
| 429 | rate_limited | Too many publishes and updates in a minute. The message gives the seconds to wait. No Retry-After header |
| 500 | internal | Server error. Try again later |
Limits
| Limit | Value |
|---|---|
| Markdown content | 1,000,000 bytes |
| HTML content | 5,000,000 bytes |
| Request body, including an upload | 12,000,000 bytes |
| Publishes and updates, including finished uploads | 60 a minute per team, 600 a minute per IP address. Asking for an upload ticket does not count |
| Pages in one list response | 50 |
| Source in a read response | 100,000 characters |
| Upload URL | One use, 10 minutes |