Skip to main content
GET
/
admin
/
post-categories
/
{id}
Get a post category
curl --request GET \
  --url https://psn-api.paystub.dev/admin/post-categories/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "category": {
      "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>"
}

Authorizations

Authorization
string
header
required

Use your API token

Path Parameters

id
integer
required

Post Category ID

Response

Post category details

success
boolean
Example:

true

data
object
message
string | null