{ "opencollection": "1.0.0", "info": { "name": "Ghost Admin Authors Pages API", "version": "5.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Pages", "type": "folder" }, "items": [ { "info": { "name": "Browse pages", "type": "http" }, "http": { "method": "GET", "url": "https://{site}.ghost.io/ghost/api/admin/pages/", "params": [ { "name": "include", "value": "", "type": "query", "description": "Comma-separated list of related resources to include. Supported values are authors and tags." }, { "name": "fields", "value": "", "type": "query", "description": "Comma-separated list of fields to return in the response." }, { "name": "filter", "value": "", "type": "query", "description": "Apply fine-grained filters using Ghost's NQL query language." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of resources to return per page. Defaults to 15." }, { "name": "page", "value": "", "type": "query", "description": "Page number for paginated results. Defaults to 1." }, { "name": "order", "value": "", "type": "query", "description": "Field and direction to order results by." }, { "name": "formats", "value": "", "type": "query", "description": "Comma-separated list of content formats to include in the response." } ] }, "docs": "Retrieve a paginated list of pages including draft and published pages." }, { "info": { "name": "Create a page", "type": "http" }, "http": { "method": "POST", "url": "https://{site}.ghost.io/ghost/api/admin/pages/", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new page. Pages share the same structure as posts and require a title field." }, { "info": { "name": "Read a page by ID", "type": "http" }, "http": { "method": "GET", "url": "https://{site}.ghost.io/ghost/api/admin/pages/:id/", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource" }, { "name": "include", "value": "", "type": "query", "description": "Comma-separated list of related resources to include. Supported values are authors and tags." }, { "name": "fields", "value": "", "type": "query", "description": "Comma-separated list of fields to return in the response." }, { "name": "formats", "value": "", "type": "query", "description": "Comma-separated list of content formats to include in the response." } ] }, "docs": "Retrieve a single page by its unique identifier." }, { "info": { "name": "Update a page", "type": "http" }, "http": { "method": "PUT", "url": "https://{site}.ghost.io/ghost/api/admin/pages/:id/", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update an existing page. The updated_at field must be included to prevent update collisions." }, { "info": { "name": "Delete a page", "type": "http" }, "http": { "method": "DELETE", "url": "https://{site}.ghost.io/ghost/api/admin/pages/:id/", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource" } ] }, "docs": "Permanently delete a page by its unique identifier." }, { "info": { "name": "Read a page by slug", "type": "http" }, "http": { "method": "GET", "url": "https://{site}.ghost.io/ghost/api/admin/pages/slug/:slug/", "params": [ { "name": "slug", "value": "", "type": "path", "description": "The URL slug of the resource" }, { "name": "include", "value": "", "type": "query", "description": "Comma-separated list of related resources to include. Supported values are authors and tags." }, { "name": "fields", "value": "", "type": "query", "description": "Comma-separated list of fields to return in the response. Use this to limit the size of the response by only requesting the fields you need." }, { "name": "formats", "value": "", "type": "query", "description": "Comma-separated list of content formats to include. By default only html is returned. Use formats=html,plaintext to also include plaintext." } ] }, "docs": "Retrieve a single published page by its URL slug." } ] } ], "bundled": true }