> ## Documentation Index
> Fetch the complete documentation index at: https://help.aasaan.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get all categories.

> Get all categories.



## OpenAPI

````yaml get /categories
openapi: 3.0.0
info:
  title: AASAAN REST API
  version: 1.0.0
  description: >-
    REST API endpoints are organized by resource type. You’ll need to use
    different endpoints depending on your app’s requirements.
servers:
  - url: https://api.aasaan.shop/api/v1/stores
    description: Development server
security: []
tags: []
paths:
  /categories:
    get:
      tags:
        - Category
      summary: Get all categories.
      description: Get all categories.
      parameters:
        - in: query
          name: page
          schema:
            type: number
            description: Current Page
        - in: query
          name: perPage
          schema:
            type: integer
            description: Number of categories per page
      responses:
        '200':
          description: A list of all categories.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResult'
        '403':
          description: Invalid Api Key.
        '500':
          description: Internal Server Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    PaginatedResult:
      type: object
      properties:
        total:
          type: number
          description: Total number of records
        page:
          type: number
          description: Page Number
        perPage:
          type: number
          description: No of records per page
        results:
          type: array
          items: {}
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````