API documentation

The Notcuk API lets you connect your agents, scripts and automations to your account. Your agent can create notes, list and read them, update them and move them to the trash. Every request uses your own API key and can only reach your own notes.

Create an account

1. Get an API key

  1. Sign in to your account and verify your email address.
  2. In Settings > API keys, give your key a name (e.g. "Research agent") and create it.
  3. Copy the key right away: for your security it is shown only once. If you lose it, revoke it and create a new one.
  4. You can have up to 5 active keys. Using a separate key for each agent lets you revoke just one when needed.

2. Authentication

Send your key in the Authorization header with every request. For tools that cannot set it, the X-API-Key header is also accepted. Use Content-Type: application/json for requests with a body. All URLs start with:

https://notcuk.com/api/v1
Authorization: Bearer ntk_…
X-API-Key: ntk_…

3. Endpoints

Method and pathDescription
GET /api/v1/meReturns the account the key belongs to. Use it to test your connection.
GET /api/v1/notesLists your notes (without content). Parameters: page, per_page (max 100), q (title/link search), status=active|trashed.
POST /api/v1/notesCreates a note. Returns 201 and the full note on success.
GET /api/v1/notes/{slug}Returns a note with its content.
PATCH /api/v1/notes/{slug}Updates only the fields you send.
DELETE /api/v1/notes/{slug}Moves the note to the trash. It becomes unavailable but can be restored.
POST /api/v1/notes/{slug}/restoreRestores a note from the trash.

4. Note fields

FieldDescription
contentRequired when creating. Note content, up to 100,000 characters. Leading/trailing whitespace is trimmed for text and preserved for code.
titleOptional title, up to 255 characters.
formattext (default) or code.
slugOptional custom link: 3–80 characters, lowercase letters, digits and hyphens. Leave empty for a four-letter short link. Can only be set when creating.
passwordOptional note password, up to 100 characters. Send null or "" with PATCH to remove it. A note password limits access; content is not end-to-end encrypted.

5. Example: create a note

curl https://notcuk.com/api/v1/notes \
  -H "Authorization: Bearer $NOTCUK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Agent raporu","content":"Bugünkü özet…","format":"text"}'

Example response:

{
    "data": {
        "slug": "kaye",
        "url": "https://notcuk.com/kaye",
        "title": "Agent raporu",
        "format": "text",
        "has_password": false,
        "status": "active",
        "expires_at": "2026-12-10T09:00:00+00:00",
        "created_at": "2026-12-03T09:00:00+00:00",
        "updated_at": "2026-12-03T09:00:00+00:00",
        "content": "Bugünkü özet…"
    }
}

The same request in Python:

import os, requests

r = requests.post(
    "https://notcuk.com/api/v1/notes",
    headers={"Authorization": f"Bearer {os.environ['NOTCUK_API_KEY']}"},
    json={"title":"Agent raporu","content":"Bugünkü özet…","format":"text"},
    timeout=10,
)
r.raise_for_status()
print(r.json()["data"]["url"])

6. Expiry of API notes

  • Notes created through the API become unavailable after 7 days. The expiry time is in the expires_at field of the response.
  • To keep a note longer, sign in on the website before it expires and choose "Extend 7 days" or "Keep without expiry" on your dashboard. Expiry cannot be extended through the API.
  • An expired note is no longer listed or readable and cannot be restored. It is permanently deleted after 30 days.

7. Errors

Errors always use the same shape; branch on the code field, while message is a human-readable explanation.

{"error":{"code":"invalid_api_key","message":"API key is invalid or revoked."}}
HTTPcodeDescription
400invalid_json, invalid_queryThe body is not a valid JSON object or a query parameter is invalid.
401missing_api_key, invalid_api_keyNo key was sent, or the key is wrong or revoked.
403account_blocked, email_not_verifiedThe account is blocked or its email address is not verified.
404not_foundThe note does not exist, is not yours, or has expired.
405method_not_allowedThis path does not support the method.
422validation_failed, invalid_fieldA field value is invalid. validation_failed responses include a details list.
429rate_limitedLimit exceeded. Wait for the time given in the Retry-After header.

8. Limits

  • 120 requests and 30 new notes per minute per key.
  • Attempts with invalid keys are rate-limited per IP address.
  • API use keeps your account active: the one-year inactivity period counts from your last login or last API use.

9. Security

  • Never share your key or commit it to source code or public repositories. Store it in an environment variable (e.g. NOTCUK_API_KEY).
  • A key can read and change all notes in your account. If you think it has leaked, revoke it right away in Settings.
  • Notes created by agents belong to your account and are subject to the Terms of Service.

Terms of Service