# Ghost Integration via LowCodeAPI

**Last Updated**: February 10, 2026

## Overview
Publishing platform

**Categories:**
- {'id': 'content-management', 'name': 'Content Management', 'description': 'Content management systems and publishing platforms', 'priority': 13}

## Base Endpoint
https://api.lowcodeapi.com/ghost

**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`

## Authentication
**Type:** TOKEN

**Official Documentation:** https://ghost.org/docs/admin-api/

## URL Format (Important)

LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.

### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`

### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`

### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider

## API Categories

## Common Endpoints

### The image object

**Method:** POST
**LowCodeAPI Path:** /admin/images/upload

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/images/upload?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/images/upload?api_token=YOUR_API_TOKEN

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/ghost/admin/images/upload?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#the-image-object

### Uploading an Image

**Method:** POST
**LowCodeAPI Path:** /admin/images/upload

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/images/upload?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/images/upload?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| file | file |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/ghost/admin/images/upload?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#uploading-an-image

### Creating a member

**Method:** POST
**LowCodeAPI Path:** /admin/members

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/members?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/members?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| members | array |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/ghost/admin/members?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#creating-a-member

### Updating a member

**Method:** PUT
**LowCodeAPI Path:** /admin/members/{id}

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/members/{id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/members/id?id={id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| id | string |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| members | array |  |

**Example Request (New Format):**

```bash
curl -X PUT 'https://api.lowcodeapi.com/ghost/admin/members/{id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#updating-a-member

### Creating a Newsletter

**Method:** POST
**LowCodeAPI Path:** /admin/newsletters

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/newsletters?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/newsletters?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| newsletters | array |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/ghost/admin/newsletters?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#creating-a-newsletter

### Sender email validation

**Method:** PUT
**LowCodeAPI Path:** /admin/newsletters

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/newsletters?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/newsletters?api_token=YOUR_API_TOKEN

**Example Request (New Format):**

```bash
curl -X PUT 'https://api.lowcodeapi.com/ghost/admin/newsletters?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#sender-email-validation

### The offer object

**Method:** GET
**LowCodeAPI Path:** /admin/offers

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/offers?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/offers?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string |  |
| filter | string |  |
| include | string |  |
| limit | integer |  |
| order | string |  |
| page | integer |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/ghost/admin/offers?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#the-offer-object

### Creating an Offer

**Method:** POST
**LowCodeAPI Path:** /admin/offers

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/offers?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/offers?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| offers | array |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/ghost/admin/offers?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#creating-an-offer

### Updating an Offer

**Method:** PUT
**LowCodeAPI Path:** /admin/offers/{id}

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/offers/{id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/offers/id?id={id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| id | string |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| offers | array |  |

**Example Request (New Format):**

```bash
curl -X PUT 'https://api.lowcodeapi.com/ghost/admin/offers/{id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#updating-an-offer

### The post object

**Method:** GET
**LowCodeAPI Path:** /admin/posts

**New Format URL:**
https://api.lowcodeapi.com/ghost/admin/posts?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/ghost/admin/posts?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string |  |
| filter | string |  |
| include | string |  |
| limit | integer |  |
| order | string |  |
| page | integer |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/ghost/admin/posts?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://ghost.org/docs/admin-api/#the-post-object


## Usage Examples

### Example 1: Basic API Request (New Format)

Making a simple GET request to retrieve resources:

```bash
# Get a list of resources - no path parameters needed
curl -X GET "https://api.lowcodeapi.com/ghost/endpoint?api_token=YOUR_API_TOKEN"
```

### Example 2: Request with Path Parameters (New Format)

Retrieving a specific resource using its ID:

```bash
# Get specific resource by ID - replace RESOURCE_ID with actual ID from previous response
curl -X GET "https://api.lowcodeapi.com/ghost/endpoint/{RESOURCE_ID}?api_token=YOUR_API_TOKEN"
# Note: RESOURCE_ID typically comes from a previous list request or from the provider dashboard
```

### Example 3: POST Request with Body (New Format)

Creating a new resource:

```bash
# Create a new resource
curl -X POST "https://api.lowcodeapi.com/ghost/endpoint?api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"field": "value", "another_field": "another_value"}'
```

## Error Handling

LowCodeAPI returns standard HTTP status codes. Common errors:

| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |

All error responses include error details:

```json
{
  "data": {
    "error": {
      "message": "Error description",
      "code": "ERROR_CODE"
    }
  }
}
```

## Complete Endpoint Reference

| Endpoint | Method | Category |
|----------|--------|----------|
| The image object | POST | Admin/Images |
| Uploading an Image | POST | Admin/Images |
| Creating a member | POST | Admin/Members |
| Updating a member | PUT | Admin/Members |
| Creating a Newsletter | POST | Admin/Newsletter |
| Sender email validation | PUT | Admin/Newsletter |
| The offer object | GET | Admin/Offers |
| Creating an Offer | POST | Admin/Offers |
| Updating an Offer | PUT | Admin/Offers |
| The post object | GET | Admin/Posts |
| Creating a Post | POST | Admin/Posts |
| Copying a Post | POST | Admin/Posts |
| Updating a Post | PUT | Admin/Posts |
| Deleting a Post | DELETE | Admin/Posts |
| Publishing and scheduling posts | PUT | Admin/Posts |
| The site object | GET | Admin/Site |
| Uploading a theme | POST | Admin/Themes |
| Creating a Tier | POST | Admin/Tiers |
| Updating a Tier | PUT | Admin/Tiers |
| Fetch users | GET | Admin/Users |
| The roles resource provides an endpoint for fetchi... | GET | Admin/Users |
| Create a staff user invite | POST | Admin/Users |
| Updating a user | PUT | Admin/Users |
| Deleting a user | DELETE | Admin/Users |
| Creating a Webhook | POST | Admin/Webhooks |
| Updating a Webhook | PUT | Admin/Webhooks |
| Deleting a Webhook | DELETE | Admin/Webhooks |
| Browse pages | GET | Content/Pages |
| Read a page by ID | GET | Content/Pages |
| Read a page by slug | GET | Content/Pages |
| Browse posts | GET | Content/Posts |
| Read a post by ID | GET | Content/Posts |
| Read a post by slug | GET | Content/Posts |
| Browse settings | GET | Content/Settings |
| Browse tags | GET | Content/Tags |
| Read a tag by ID | GET | Content/Tags |
| Read a tag by slug | GET | Content/Tags |
| Browse tiers | GET | Content/Tiers |
| Browse authors | GET | Content/Authors |
| Read an author by ID | GET | Content/Authors |
| Read a author by slug | GET | Content/Authors |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/ghost/openapi'
```

**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/ghost/definition'
```

## Response Format

All responses are wrapped in a `data` key:

```json
{
  "data": {
    // Actual response from provider (object or array)
  }
}
```