> ## Documentation Index
> Fetch the complete documentation index at: https://demo-8860220f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a cat by id.



## OpenAPI

````yaml get /api/meows/{id}
openapi: 3.0.3
info:
  title: Meow as a Service (MaaS) API documentation
  version: 1.0.0
  description: >-
    An API to manage cats or `meows` as we refer it, including listing, viewing,
    creating, updating, and deleting cats.
servers:
  - url: https://maas-alpha.vercel.app/
    description: Production Server
  - url: http://localhost:3000/
    description: Development Server
security:
  - bearerAuth: []
paths:
  /api/meows/{id}:
    get:
      summary: Get a cat by id.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: id of the cat.
      responses:
        '200':
          $ref: '#/components/responses/Ok'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Ok:
      description: Operation successful
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              data:
                $ref: '#/components/schemas/Cat'
    Unauthorized:
      description: Unauthorized request
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              error:
                type: string
    Forbidden:
      description: 'Forbidden: insufficient permissions'
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              error:
                type: string
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              error:
                type: string
  schemas:
    Cat:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        breed:
          type: string
        image:
          type: string
        personality:
          $ref: '#/components/schemas/Personality'
        owner_id:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Personality:
      type: string
      enum:
        - Playful
        - Calm
        - Bold
        - Affectionate
        - Energetic
        - Gentle
        - Curious
        - Confident
        - Friendly
        - Mysterious
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````