# List project posts

> List all posts for a project. Accepts a dashboard session or an account API key that owns the project.

HTML version: https://blogizi.com/docs/api-list-posts
Markdown version: https://blogizi.com/docs/api-list-posts.md

## Request

```http
GET /api/projects/{projectId}/posts
Authorization: Bearer YOUR_ACCOUNT_API_KEY
```

`projectId` is the Mongo ObjectId of the project (from [List projects](/docs/api-list-projects)), not the public slug.

## Response

```json
{
  "data": [
    {
      "id": "…",
      "title": "How we built our auth flow",
      "slug": "how-we-built-our-auth-flow",
      "status": "draft"
    }
  ]
}
```

Posts are sorted newest first.
