ReferencePremium
CoullWorks Blog for Laravel API endpoints reference
Every JSON:API route, query parameter and response shape, by route name.
Updated 16 November 2026Back to the package pageBuy
The JSON:API module. See API reference for how to switch the write routes on and how authentication works.
Read endpoints#
Applies to every row below: Accept: application/vnd.api+json. Throttle blog-api (api.rate_limit.default 60). Cache-Control from api.cache.
| Endpoint | Route name | What it does |
|---|---|---|
GET /api/blog/v1/blogs | cwb.api.blogs.index | List blogs. |
GET /api/blog/v1/blogs/{blog} | cwb.api.blogs.show | One blog. |
GET /api/blog/v1/posts | cwb.api.posts.index | List posts. |
GET /api/blog/v1/posts/{id} | cwb.api.posts.show | One post (id numeric). |
GET /api/blog/v1/categories | cwb.api.categories.index | List categories. |
GET /api/blog/v1/categories/{id} | cwb.api.categories.show | One category (id numeric). |
GET /api/blog/v1/tags | cwb.api.tags.index | List tags. |
GET /api/blog/v1/tags/{id} | cwb.api.tags.show | One tag (id numeric). |
GET /api/blog/v1/authors | cwb.api.authors.index | List authors. |
GET /api/blog/v1/authors/{id} | cwb.api.authors.show | One author (id numeric). |
GET /api/blog/v1/search | cwb.api.search.index | Search posts (filter[q], filter[locale], page); throttle blog-api-search (20/min). |
GET /api/blog/v1/schema/blocks | cwb.api.schema.blocks | JSON Schema of block types. |
GET /api/blog/v1/blogs/{blog}/posts | cwb.api.blog.posts.index | List posts. |
GET /api/blog/v1/blogs/{blog}/posts/{id} | cwb.api.blog.posts.show | One post (id numeric). |
GET /api/blog/v1/blogs/{blog}/categories | cwb.api.blog.categories.index | List categories. |
GET /api/blog/v1/blogs/{blog}/categories/{id} | cwb.api.blog.categories.show | One category (id numeric). |
GET /api/blog/v1/blogs/{blog}/tags | cwb.api.blog.tags.index | List tags. |
GET /api/blog/v1/blogs/{blog}/tags/{id} | cwb.api.blog.tags.show | One tag (id numeric). |
GET /api/blog/v1/blogs/{blog}/authors | cwb.api.blog.authors.index | List authors. |
GET /api/blog/v1/blogs/{blog}/authors/{id} | cwb.api.blog.authors.show | One author (id numeric). |
GET /api/blog/v1/blogs/{blog}/search | cwb.api.blog.search.index | Search posts (filter[q], filter[locale], page); throttle blog-api-search (20/min). |
GET /api/blog/v1/blogs/{blog}/schema/blocks | cwb.api.blog.schema.blocks | JSON Schema of block types. |
Write endpoints#
Applies to every row below: Content-Type application/vnd.api+json (415 otherwise); needs an Authorization header; host guard from api.write.middleware; limiter blog-api-write (30/min); no-store.
| Endpoint | Route name | What it does |
|---|---|---|
POST /api/blog/v1/posts | cwb.api.posts.store | Create draft; 201 + Location; refuses status/scheduled_at/featured (422). |
PATCH /api/blog/v1/posts/{id} | cwb.api.posts.update | Change translation named by locale; 409 on refused status move. |
DELETE /api/blog/v1/posts/{id} | cwb.api.posts.destroy | 204; published post leaves 410. |
POST /api/blog/v1/categories | cwb.api.categories.store | Create category. |
PATCH /api/blog/v1/categories/{id} | cwb.api.categories.update | Update category. |
DELETE /api/blog/v1/categories/{id} | cwb.api.categories.destroy | Delete category; 409 if a category has children. |
POST /api/blog/v1/tags | cwb.api.tags.store | Create tag. |
PATCH /api/blog/v1/tags/{id} | cwb.api.tags.update | Update tag. |
DELETE /api/blog/v1/tags/{id} | cwb.api.tags.destroy | Delete tag. |
POST /api/blog/v1/authors | cwb.api.authors.store | Create author. |
PATCH /api/blog/v1/authors/{id} | cwb.api.authors.update | Update author. |
DELETE /api/blog/v1/authors/{id} | cwb.api.authors.destroy | Delete author (?replacement= id for authors). |
POST /api/blog/v1/media | cwb.api.media.store | Multipart field file; 201 {disk,path,url,width,height,mime}. |
POST /api/blog/v1/blogs/{blog}/posts | cwb.api.blog.posts.store | Create draft; 201 + Location; refuses status/scheduled_at/featured (422). |
PATCH /api/blog/v1/blogs/{blog}/posts/{id} | cwb.api.blog.posts.update | Change translation named by locale; 409 on refused status move. |
DELETE /api/blog/v1/blogs/{blog}/posts/{id} | cwb.api.blog.posts.destroy | 204; published post leaves 410. |
POST /api/blog/v1/blogs/{blog}/categories | cwb.api.blog.categories.store | Create category. |
PATCH /api/blog/v1/blogs/{blog}/categories/{id} | cwb.api.blog.categories.update | Update category. |
DELETE /api/blog/v1/blogs/{blog}/categories/{id} | cwb.api.blog.categories.destroy | Delete category; 409 if a category has children. |
POST /api/blog/v1/blogs/{blog}/tags | cwb.api.blog.tags.store | Create tag. |
PATCH /api/blog/v1/blogs/{blog}/tags/{id} | cwb.api.blog.tags.update | Update tag. |
DELETE /api/blog/v1/blogs/{blog}/tags/{id} | cwb.api.blog.tags.destroy | Delete tag. |
POST /api/blog/v1/blogs/{blog}/authors | cwb.api.blog.authors.store | Create author. |
PATCH /api/blog/v1/blogs/{blog}/authors/{id} | cwb.api.blog.authors.update | Update author. |
DELETE /api/blog/v1/blogs/{blog}/authors/{id} | cwb.api.blog.authors.destroy | Delete author (?replacement= id for authors). |
POST /api/blog/v1/blogs/{blog}/media | cwb.api.blog.media.store | Multipart field file; 201 {disk,path,url,width,height,mime}. |
Query parameters#
Applies to every row below: Unknown parameters or values return a JSON:API error (400/422).
| Parameter | Allowed on and rules |
|---|---|
filter[locale] | Allowed on posts, post, search, categories, tags, authors. BCP-47-like tag max 12. |
filter[slug] | Allowed on posts. |
filter[category] | Allowed on posts. |
filter[tag] | Allowed on posts. |
filter[author] | Allowed on posts. |
filter[featured] | Allowed on posts. true or false. |
filter[year] | Allowed on posts. |
filter[month] | Allowed on posts. needs year. |
filter[q] | Allowed on search. max 10000 chars. |
sort | Allowed on posts. -publishedAt (default), publishedAt, title, -title. |
include | Allowed on posts: authors, categories, tags, categories.parent, nav; post: authors,categories,tags,categories.parent; search: authors,categories,tags,categories.parent; categories: parent. comma list. |
fields[type] | Allowed on all. sparse fieldsets. |
page[number]/page[size] | Allowed on posts, search. size default api.page.size 12, max api.page.max 50. |
preview | Allowed on post (single). signed preview token. |
Responses#
| Item | What it is |
|---|---|
| 401/403/404/409/415/422/429 error documents | JSON:API error objects with source.pointer; Retry-After on 429 |
| Resource types | posts, categories, tags, authors, blogs (ApiResource classes in src/Api/Resources) |
| Post attributes (read) | title, slug, excerpt, blocks, SEO fields, template, rail (takeaways, relatedPostIds, authorId), dates, featured image; meta.nav with include=nav |
| Licence gate on API | 404 when the licence gate refuses the host |
Block schema and GraphQL#
- GraphQL: This package has no GraphQL API. The GraphQL add-on belongs to the Magento module.







