Skip to main content
GET
/
post-categories
/
{slug}
Get a post category by slug
curl --request GET \
  --url https://psn-api.paystub.dev/post-categories/{slug}
{
  "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"
  },
  "message": "<string>"
}

Path Parameters

slug
string
required

Post Category slug

Query Parameters

include
enum<string>

Include related resources

Available options:
posts,
site

Response

Post category details

success
boolean
Example:

true

data
object
message
string | null