AI Assistant

How can I help you today?

CategoriesGet Categories
Categories

GET /categories

Retrieve all pet categories

curl -X GET "https://api.petstore.example.com/v1/categories" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "categories": [
    {
      "id": 1,
      "name": "Dogs",
      "description": "All types of dogs"
    }
  ]
}
GET
/categories
GET
Security Scheme
Bearer Tokenstring
Required

JWT token obtained from the login endpoint

JWT token obtained from the login endpoint
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token obtained from the login endpoint

Responses

categoriesarray