# Ghost.org (Admin API) — Pipedream Connect

> Open source publishing platform

- API slug: `ghost_org_admin_api` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Web & App Development
- Website: https://ghost.io
- This page (HTML): https://pipedream.com/apps/ghost-org-admin-api
- Tools: 4 actions · 6 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: ghost_org_admin_api`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "ghost_org_admin_api",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Member:
const result = await mcp.callTool({
  name: "ghost_org_admin_api-create-member",
  arguments: {
    email: "Email",
    name: "Name",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Ghost.org (Admin API) endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "ghost_org_admin_api-create-member",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ghost_org_admin_api: { authProvisionId: "apn_xxxxxxx" },
    email: "Email",
    name: "Name",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (4)

### `ghost_org_admin_api-create-member` — Create Member (Write)

Create a new member in Ghost. See the documentation

Full schema: https://pipedream.com/apps/ghost-org-admin-api/actions/create-member.md

### `ghost_org_admin_api-create-post` — Create post (Write)

Create a post. See the documentation.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/actions/create-post.md

### `ghost_org_admin_api-list-member-options` — List Member Options (Read-only)

Retrieves available options for the Member field.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/actions/list-member-options.md

### `ghost_org_admin_api-update-member` — Update Member (Write)

Update a member in Ghost. See the documentation

Full schema: https://pipedream.com/apps/ghost-org-admin-api/actions/update-member.md

## Triggers (6)

### `ghost_org_admin_api-member-deleted` — Member Deleted (Instant) (Instant)

Emit new event each time a member is deleted from a site.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/triggers/member-deleted.md

### `ghost_org_admin_api-member-updated` — Member Updated (Instant) (Instant)

Emit new event each time a member is updated.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/triggers/member-updated.md

### `ghost_org_admin_api-member-created` — New Member Created (Instant) (Instant)

Emit new event for each new member added to a site.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/triggers/member-created.md

### `ghost_org_admin_api-page-published` — Page Published (Instant) (Instant)

Emit new event for each new page published on a site.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/triggers/page-published.md

### `ghost_org_admin_api-post-published` — Post Published (Instant) (Instant)

Emit new event for each new post published on a site.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/triggers/post-published.md

### `ghost_org_admin_api-new-tag` — Tag Added (Instant) (Instant)

Emit new event for each new tag created on a site.

Full schema: https://pipedream.com/apps/ghost-org-admin-api/triggers/new-tag.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
