---
title: "The newest pages or posts of a connected site (read through its REST API)"
method: GET
path: "/wordpress/connections/{connectionId}/content"
tags: ["WordPress"]
---

# The newest pages or posts of a connected site (read through its REST API)

`GET /wordpress/connections/{connectionId}/content`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/wordpress/connections/{connectionId}/content`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `connectionId` string, uuid, required

## Query parameters

- `type` 'page' | 'post': page (default) or post

## Response `200`

Pages or posts

- object
  - `items` object[], required
    - `id` integer, required
    - `type` 'page' | 'post', required
    - `title` string, required
    - `status` string, required: WordPress post status: publish, draft, pending, private or future
    - `modifiedAt` string, nullable, required: ISO-8601 timestamp
    - `link` string, nullable, required
    - `editUrl` string, nullable, required
  - `seoPlugin` 'yoast' | 'rankmath' | 'null', nullable, required
  - `truncated` boolean, required

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `402`: A paid add-on (code upgrade_required, details.feature) or no Build Credits left (code limit_reached)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Conflicting state: a run is already running on the site, or the result was already saved (code conflict)
- `429`: Too many requests, or the AI assistant's daily capacity is used up (code rate_limited); see Retry-After
- `501`: No AI model, or no public API address for the site containers, on this server (code not_configured)
- `503`: The site or the model did not answer (code provider_unavailable)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
