# GET /api/v1/public/blog/posts

> List published blog posts

- **Tag:** blog-public
- **Operation ID:** `list_public_posts_api_v1_public_blog_posts_get`

## Description

Public, unauthenticated, cached list of published marketing blog posts (newest first). Excerpts only — fetch the slug endpoint for the full body.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `cursor` (query, string, optional) — Opaque pagination cursor.
- `limit` (query, integer, optional)
- `tag` (query, string, optional) — Filter to posts whose tags include this value. Lowercase-hyphenated to match the storage format.

## Responses

### 200 — Successful Response

Schema: `BlogPostPublicListResponse`

- `items` (array · BlogPostPublicSummary) → `BlogPostPublicSummary`
  - `slug` (string · required)
  - `title` (string · required)
  - `excerpt` (string)
  - `cover_image_url` (string)
  - `cover_image_alt` (string)
  - `published_at` (string · date-time · required)
  - `author_name` (string)
  - `tags` (array · string)
- `total` (integer)
- `limit` (integer)
- `next_cursor` (string)
- `has_next` (boolean)

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

### 429 — Too Many Requests - Rate limit exceeded

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/public/blog/posts' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/public/blog/posts', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/public/blog/posts", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/blog-public/list-public-posts
- OpenAPI slice: https://www.ondayzero.com/docs/reference/blog-public/list-public-posts/openapi.json
- Other endpoints in **blog-public**: https://www.ondayzero.com/docs/reference/blog-public
