2.7 KiB
2.7 KiB
Ghost API Endpoints Documentation
Content API Endpoints (Read-Only)
Base URL Structure
- Base URL:
http://localhost:2368/ghost/api/content/ - Authentication: Content API key as query parameter
- Version: v5.0 (current)
Documented Endpoints
Posts
GET /posts/- List all published postsGET /posts/{id}/- Get specific post by IDGET /posts/slug/{slug}/- Get specific post by slug
Pages
GET /pages/- List all published pagesGET /pages/{id}/- Get specific page by IDGET /pages/slug/{slug}/- Get specific page by slug
Tags
GET /tags/- List all tagsGET /tags/{id}/- Get specific tag by IDGET /tags/slug/{slug}/- Get specific tag by slug
Authors
GET /authors/- List all authorsGET /authors/{id}/- Get specific author by IDGET /authors/slug/{slug}/- Get specific author by slug
Other
GET /tiers/- List membership tiersGET /settings/- Get public settings
Admin API Endpoints (Read/Write)
Base URL Structure
- Base URL:
http://localhost:2368/ghost/api/admin/ - Authentication: JWT token in Authorization header
- Version: v5.0 (current)
Documented Endpoints
Site Information
GET /site/- Get site information (tested - requires auth)
Users
GET /users/me/- Get current user (tested - requires auth)
Posts (Admin)
GET /posts/- Browse all posts (including drafts)GET /posts/{id}/- Read specific postPOST /posts/- Create new postPUT /posts/{id}/- Update existing postPOST /posts/{id}/copy/- Copy postDELETE /posts/{id}/- Delete post
Pages (Admin)
GET /pages/- Browse all pagesGET /pages/{id}/- Read specific pagePOST /pages/- Create new pagePUT /pages/{id}/- Update existing pagePOST /pages/{id}/copy/- Copy pageDELETE /pages/{id}/- Delete page
Tags (Admin)
GET /tags/- Browse all tagsGET /tags/{id}/- Read specific tagPOST /tags/- Create new tagPUT /tags/{id}/- Update existing tagDELETE /tags/{id}/- Delete tag
Members (Admin)
GET /members/- Browse membersGET /members/{id}/- Read specific memberPOST /members/- Create new memberPUT /members/{id}/- Update existing member
Media (Admin)
POST /images/upload/- Upload imagesPOST /media/upload/- Upload media files
Integrations (Admin)
GET /integrations/- List integrationsPOST /integrations/- Create integration (for API keys)
Research Status
- ✅ Base URL structure identified
- ✅ Authentication requirements confirmed
- ⏳ Individual endpoint testing pending API keys
- ⏳ Parameter documentation pending
- ⏳ Response format documentation pending