Scripto docs
View as Markdown

GET /api/articles/[id]

Fetch one full article if owned by the authenticated user. A row owned by someone else returns 404, never 403.

The CLI equivalent is scripto articles get <id>. For the cheap section map, use scripto outline instead — it never returns bodies.

Returns the full article (including content) if you own it. A row owned by someone else returns 404, never 403 — Scripto doesn’t leak that an id exists.

Endpoint

GET https://scripto.codika.io/api/articles/{id}

Path parameters

ParamTypeDescription
idUUIDThe article id.

Auth

Authorization: Bearer scripto_…

Response (200)

{
  "success": true,
  "data": {
    "article": {
      "id": "0a1b2c3d-…",
      "title": "Our launch",
      "subtitle": "What changed and why",
      "premise": "A go-to-market piece…",
      "content": "<h1>Our launch</h1>…",
      "coverImage": "https://…/hero.png",
      "wordCount": 1240,
      "slug": "our-launch",
      "status": "published",
      "createdAt": "2026-06-20T10:00:00.000Z",
      "updatedAt": "2026-06-25T14:30:00.000Z",
      "publishedAt": "2026-06-22T09:00:00.000Z"
    }
  }
}

Errors

HTTPcodeCause
401unauthenticatedMissing or invalid key.
404not-foundNo such article, or you don’t own it.
500internalBackend error.

curl

curl -sS "https://scripto.codika.io/api/articles/$ID" \
  -H "Authorization: Bearer $SCRIPTO_API_KEY"

Next