Skip to content
Available for new work
Pages in Blog

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.

EndpointRoute nameWhat it does
GET /api/blog/v1/blogscwb.api.blogs.indexList blogs.
GET /api/blog/v1/blogs/{blog}cwb.api.blogs.showOne blog.
GET /api/blog/v1/postscwb.api.posts.indexList posts.
GET /api/blog/v1/posts/{id}cwb.api.posts.showOne post (id numeric).
GET /api/blog/v1/categoriescwb.api.categories.indexList categories.
GET /api/blog/v1/categories/{id}cwb.api.categories.showOne category (id numeric).
GET /api/blog/v1/tagscwb.api.tags.indexList tags.
GET /api/blog/v1/tags/{id}cwb.api.tags.showOne tag (id numeric).
GET /api/blog/v1/authorscwb.api.authors.indexList authors.
GET /api/blog/v1/authors/{id}cwb.api.authors.showOne author (id numeric).
GET /api/blog/v1/searchcwb.api.search.indexSearch posts (filter[q], filter[locale], page); throttle blog-api-search (20/min).
GET /api/blog/v1/schema/blockscwb.api.schema.blocksJSON Schema of block types.
GET /api/blog/v1/blogs/{blog}/postscwb.api.blog.posts.indexList posts.
GET /api/blog/v1/blogs/{blog}/posts/{id}cwb.api.blog.posts.showOne post (id numeric).
GET /api/blog/v1/blogs/{blog}/categoriescwb.api.blog.categories.indexList categories.
GET /api/blog/v1/blogs/{blog}/categories/{id}cwb.api.blog.categories.showOne category (id numeric).
GET /api/blog/v1/blogs/{blog}/tagscwb.api.blog.tags.indexList tags.
GET /api/blog/v1/blogs/{blog}/tags/{id}cwb.api.blog.tags.showOne tag (id numeric).
GET /api/blog/v1/blogs/{blog}/authorscwb.api.blog.authors.indexList authors.
GET /api/blog/v1/blogs/{blog}/authors/{id}cwb.api.blog.authors.showOne author (id numeric).
GET /api/blog/v1/blogs/{blog}/searchcwb.api.blog.search.indexSearch posts (filter[q], filter[locale], page); throttle blog-api-search (20/min).
GET /api/blog/v1/blogs/{blog}/schema/blockscwb.api.blog.schema.blocksJSON 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.

EndpointRoute nameWhat it does
POST /api/blog/v1/postscwb.api.posts.storeCreate draft; 201 + Location; refuses status/scheduled_at/featured (422).
PATCH /api/blog/v1/posts/{id}cwb.api.posts.updateChange translation named by locale; 409 on refused status move.
DELETE /api/blog/v1/posts/{id}cwb.api.posts.destroy204; published post leaves 410.
POST /api/blog/v1/categoriescwb.api.categories.storeCreate category.
PATCH /api/blog/v1/categories/{id}cwb.api.categories.updateUpdate category.
DELETE /api/blog/v1/categories/{id}cwb.api.categories.destroyDelete category; 409 if a category has children.
POST /api/blog/v1/tagscwb.api.tags.storeCreate tag.
PATCH /api/blog/v1/tags/{id}cwb.api.tags.updateUpdate tag.
DELETE /api/blog/v1/tags/{id}cwb.api.tags.destroyDelete tag.
POST /api/blog/v1/authorscwb.api.authors.storeCreate author.
PATCH /api/blog/v1/authors/{id}cwb.api.authors.updateUpdate author.
DELETE /api/blog/v1/authors/{id}cwb.api.authors.destroyDelete author (?replacement= id for authors).
POST /api/blog/v1/mediacwb.api.media.storeMultipart field file; 201 {disk,path,url,width,height,mime}.
POST /api/blog/v1/blogs/{blog}/postscwb.api.blog.posts.storeCreate draft; 201 + Location; refuses status/scheduled_at/featured (422).
PATCH /api/blog/v1/blogs/{blog}/posts/{id}cwb.api.blog.posts.updateChange translation named by locale; 409 on refused status move.
DELETE /api/blog/v1/blogs/{blog}/posts/{id}cwb.api.blog.posts.destroy204; published post leaves 410.
POST /api/blog/v1/blogs/{blog}/categoriescwb.api.blog.categories.storeCreate category.
PATCH /api/blog/v1/blogs/{blog}/categories/{id}cwb.api.blog.categories.updateUpdate category.
DELETE /api/blog/v1/blogs/{blog}/categories/{id}cwb.api.blog.categories.destroyDelete category; 409 if a category has children.
POST /api/blog/v1/blogs/{blog}/tagscwb.api.blog.tags.storeCreate tag.
PATCH /api/blog/v1/blogs/{blog}/tags/{id}cwb.api.blog.tags.updateUpdate tag.
DELETE /api/blog/v1/blogs/{blog}/tags/{id}cwb.api.blog.tags.destroyDelete tag.
POST /api/blog/v1/blogs/{blog}/authorscwb.api.blog.authors.storeCreate author.
PATCH /api/blog/v1/blogs/{blog}/authors/{id}cwb.api.blog.authors.updateUpdate author.
DELETE /api/blog/v1/blogs/{blog}/authors/{id}cwb.api.blog.authors.destroyDelete author (?replacement= id for authors).
POST /api/blog/v1/blogs/{blog}/mediacwb.api.blog.media.storeMultipart 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).

ParameterAllowed 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.
sortAllowed on posts. -publishedAt (default), publishedAt, title, -title.
includeAllowed 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.
previewAllowed on post (single). signed preview token.

Responses#

ItemWhat it is
401/403/404/409/415/422/429 error documentsJSON:API error objects with source.pointer; Retry-After on 429
Resource typesposts, 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 API404 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.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.