> ## 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.

# Create a new cat



## OpenAPI

````yaml post /api/meows
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:
    post:
      summary: Create a new cat
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                breed:
                  type: string
                image:
                  type: string
                  description: >-
                    Image url of the cat. you can also upload a image of a cat
                    see the /add-image api.
                  nullable: true
                personality:
                  $ref: '#/components/schemas/Personality'
              required:
                - name
                - breed
                - personality
      responses:
        '201':
          $ref: '#/components/responses/Created'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    Personality:
      type: string
      enum:
        - Playful
        - Calm
        - Bold
        - Affectionate
        - Energetic
        - Gentle
        - Curious
        - Confident
        - Friendly
        - Mysterious
    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
  responses:
    Created:
      description: Resource created successfully
      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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````