docs.dev

List published pages

GET
/api/admin/pages

Slugs of every built documentation page. The empty string is the docs home page.

docsdev_admin<token>

Sealed (AES-256-GCM) session cookie issued by POST /api/admin/login or the GitHub OAuth callback.

In: cookie

Response Body

application/json

application/json

curl -X GET "https://example.com/api/admin/pages"
{  "ok": true,  "pages": [    "",    "reading-experience",    "test"  ]}
{  "ok": false,  "error": "string"}