Skip to content
agovena.
agovena.
Get started
Community

API overview

Read a category and its products

Choose an operation to see its request, response shape, access rules and implementation source.

ReadPublic

GET/api/v1/categories/{slug}

Read a category and its products

No auth:sanctum or bearer ability is required by this route.

Request
FieldInRule
slugPath parameterRequired active resource slug, not a numeric ID.
pageQuery stringOptional page number; default 1. No per_page or sort override.

No request body.

cURL
curl --request GET "https://shop.example.test/api/v1/categories/example-slug" \
  --header 'Accept: application/json' \
  --get \
  --data-urlencode 'page=1'
Response200
Success: 200

Response shape (notation, not a captured response)

schema
{ data: { category: Category, products: Product[] }, meta: { current_page, last_page, total } }

Full response schema

Common errors
HTTP statusMeaning
404not_found: missing, inactive or foreign-owned resource.
429rate_limited: back off before retrying, especially writes.
Error envelope and global caveats

Search documentation

Search guides, commands and API endpoints

What are you looking for?

Documentation