List Posts by Type
GET
/api/v1/post-types/{key}/posts
Internal proxy to GET /api/v1/posts?type={key}. Forwards query params (page, limit, lang, status, …). Not a 302 redirect.
Parameters
Path Parameters
key*
type_key of the post type
Type
Requiredstring
Query Parameters
page
Type
integer
Minimum
1Default
1limit
Type
integer
Minimum
1Maximum
100Default
10lang
Type
string
status
Type
string
q
Type
string
Responses
Posts list (same envelope as blogListPosts)
List posts for a type. Internal proxy to GET /api/v1/posts?type={key} (not a redirect).
Auth: optional (same as blog list posts).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
key | path | string | Yes | type_key |
page | query | number | No | Page number |
limit | query | number | No | Items per page |
lang | query | string | No | Language filter |
status | query | string | No | Status filter |
q | query | string | No | Text search |
Request Body
None.
Response 200
json
{
"data": [],
"user_context": { "authenticated": false },
"meta": { "page": 1, "limit": 10, "total": 0, "hasMore": false }
}Response Errors
400invalid query parameters503MODULE_DISABLED
Notes
- Forwards listing query params to the Blog posts list with
typeset. - Prefer
GET /api/v1/posts?type=directly when you already use the Blog client.