Ghost Themes API
Upload, activate, and manage themes that control the front-end appearance of the Ghost publication.
Upload, activate, and manage themes that control the front-end appearance of the Ghost publication.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ghost-org-themes-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Ghost Admin Themes API
description: The Ghost Admin API provides full read and write access to all content and configuration within a Ghost publication.
version: '5.0'
contact:
name: Ghost Foundation
url: https://ghost.org/docs/admin-api/
termsOfService: https://ghost.org/terms/
servers:
- url: https://{site}.ghost.io/ghost/api/admin
description: Ghost Pro Hosted Site
variables:
site:
default: your-site
description: Your Ghost site subdomain
- url: '{protocol}://{domain}/ghost/api/admin'
description: Self-Hosted Ghost Instance
variables:
protocol:
default: https
enum:
- https
- http
domain:
default: localhost:2368
description: Your Ghost instance domain and port
security:
- adminApiToken: []
tags:
- name: Themes
description: Upload, activate, and manage themes that control the front-end appearance of the Ghost publication.
paths:
/themes/upload/:
post:
operationId: adminUploadTheme
summary: Upload a theme
description: Upload a new theme as a zip file to the Ghost publication.
tags:
- Themes
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- file
properties:
file:
type: string
format: binary
description: The theme zip file to upload
responses:
'201':
description: Theme uploaded successfully
content:
application/json:
schema:
type: object
properties:
themes:
type: array
items:
$ref: '#/components/schemas/Theme'
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/ValidationError'
/themes/{name}/activate/:
put:
operationId: adminActivateTheme
summary: Activate a theme
description: Activate an installed theme by its name, making it the active front-end theme for the publication.
tags:
- Themes
parameters:
- name: name
in: path
required: true
description: The name of the theme to activate
schema:
type: string
responses:
'200':
description: Theme activated successfully
content:
application/json:
schema:
type: object
properties:
themes:
type: array
items:
$ref: '#/components/schemas/Theme'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
components:
responses:
ValidationError:
description: Request body validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
NotFound:
description: The requested resource was not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
Unauthorized:
description: Authentication failed or token is missing or invalid
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
schemas:
ErrorResponse:
type: object
description: Standard Ghost API error response
properties:
errors:
type: array
items:
type: object
properties:
message:
type: string
description: Human-readable error message
type:
type: string
description: Error type identifier
context:
type: string
description: Additional error context
nullable: true
Theme:
type: object
description: A Ghost theme controlling the front-end appearance.
properties:
name:
type: string
description: Theme name
package:
type: object
description: Theme package.json metadata
properties:
name:
type: string
description: Package name
version:
type: string
description: Package version
active:
type: boolean
description: Whether this is the currently active theme
securitySchemes:
adminApiToken:
type: http
scheme: bearer
bearerFormat: JWT
description: JSON Web Token generated from an Admin API key. The key is split into an ID and secret at the colon separator. The ID is used as the kid header and the secret is used to sign the token with HS256.
externalDocs:
description: Ghost Admin API Documentation
url: https://ghost.org/docs/admin-api/