Categories

categories#index - List of all categories

Request

Route

GET /v1/categories

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer your_access_token
Host: api.producthunt.com

Response

Status

200 OK

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Rate-Limit-Limit: 900
X-Rate-Limit-Remaining: 900
X-Rate-Limit-Reset: 900
ETag: "3af3bee36198ffc0aed411de57ad83f9"
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 182

Body

{
  "categories" : [
    {
      "id" : 1,
      "slug" : "tech",
      "name" : "Tech",
      "color" : "#da552f",
      "item_name" : "product"
    },
    {
      "id" : 2,
      "slug" : "category-2",
      "name" : "Category 2",
      "color" : "#da552f",
      "item_name" : "product"
    }
  ]
}