Ghost API
14 endpoints for Ghost, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.
- Base URL
- https://cotlet.dev/api/v1/ghost
- Connects with
- Your own Ghost Admin staff login on your admin domain. What your agent can do follows your role: Contributors cannot publish, Authors can, Administrators have full permissions. You sign in in your own browser and keep your device verification and email 2FA.
- Integration page
- Ghost
Read (8)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | List posts with their status, tags and publish date. |
| GET | Read one post with its content, tags, authors and email status. |
| GET | List members, filtered by status, label, signup post, email activity or last visit. |
| GET | Read one member with subscriptions, newsletters and signup source. |
| GET | List the newsletters of the site with their slugs. |
| GET | List the free and paid tiers with prices and benefits. |
| GET | List member labels, with how many members carry each. |
| GET | List the tags used on posts, with how many posts carry each. |
Write (6)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Create a post as a draft. Nobody sees it until it is published or scheduled. |
| PATCH | Change the title, content, tags, access or excerpt of an existing post. |
| POST | Schedule a draft to publish at a future time, with an optional newsletter send. |
| POST | Publish a draft now, with an optional newsletter send. |
| POST | Add a label to members, or remove it from them. |
| POST | Turn off newsletter emails for the given members. |