Add Admin API Endpoint

Add endpoints to Ghost's Admin API with controllers, routes, and e2e tests.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/NovaAI-innovation/Infinite-Agency --skill add-admin-api-endpoint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Add Admin API Endpoint
Source: https://github.com/NovaAI-innovation/Infinite-Agency/tree/main/.qwen/skills/add-admin-api-endpoint
Command: npx skills add https://github.com/NovaAI-innovation/Infinite-Agency --skill add-admin-api-endpoint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new functionalities to Ghost's backend by providing a structured way to create new Admin API endpoints.

Core Features & Use Cases

  • Endpoint Creation: Define and register new API endpoints for custom resource management.
  • Route Definition: Integrate new endpoints into the existing API routing system.
  • Testing: Ensure new endpoints function correctly with end-to-end tests.
  • Use Case: You need to add a new API endpoint to manage custom user settings in Ghost. This skill guides you through creating the controller, defining routes, and writing tests.

Quick Start

Use the add-admin-api-endpoint skill to add a new endpoint for managing custom user profiles.

Frequently Asked Questions about Add Admin API Endpoint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new endpoint to Ghost's Admin API?

To add a Ghost Admin API endpoint, you create a new controller file, register the route in `ghost/core/core/server/web/api/endpoints/admin/routes.js`, and implement e2e tests in `ghost/core/test/e2e-api/admin`.

What do I need to know before extending Ghost's backend API?

Extending Ghost's backend API requires an understanding of Ghost's API framework and controller structure to properly define routes and manage resources under `ghost/api/admin/**`.

How does route definition work for custom Ghost API endpoints?

Ghost API route definition involves updating the existing API routing system by appending new endpoint mappings to the admin routes file, connecting custom URLs to their corresponding controller logic.

Where should I write tests for new Ghost Admin API endpoints?

You should write end-to-end tests for new Ghost Admin API endpoints in the `ghost/core/test/e2e-api/admin` directory to ensure the controllers and routes function correctly.

Can I use this approach to manage custom user settings in Ghost?

Yes, you can use this approach to add a new API endpoint for managing custom user settings or profiles by creating the specific controller, defining the route, and writing the required tests.