Skip to main content
GET
/
post-categories
List post categories
curl --request GET \
  --url https://psn-api.paystub.dev/post-categories
{
  "success": true,
  "data": [
    {
      "id": 123,
      "site_id": 123,
      "type": "<string>",
      "country": "<string>",
      "name": "<string>",
      "slug": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "links": {
    "first": "https://api.paystub.dev/post-categories?page=1",
    "last": "https://api.paystub.dev/post-categories?page=1",
    "prev": "<string>",
    "next": "<string>"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": "<string>",
        "label": "<string>",
        "active": true
      }
    ],
    "path": "https://api.paystub.dev/post-categories",
    "per_page": 15,
    "to": 1,
    "total": 1
  }
}

Query Parameters

filter[type]
string

Filter by category type

filter[country]
string

Filter by country

filter[name]
string

Filter by name

include
enum<string>

Include related resources

Available options:
posts,
site
sort
enum<string>

Sort by field

Available options:
name,
-name,
created_at,
-created_at

Response

200 - application/json

List of post categories

success
boolean
Example:

true

data
object[]
meta
object