> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Prompt

> Create a new prompt



## OpenAPI

````yaml /public-apis/openapi/prompts.json post /v1/prompts
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - prompts
  description: API documentation for Maxim SDK prompts endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/prompts:
    post:
      tags:
        - Prompt
      summary: Create Prompt
      description: Create a new prompt
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                  description: Unique identifier for the workspace
                name:
                  type: string
                  description: Name of the prompt
                description:
                  type: string
                  description: Description of the prompt
                folderId:
                  type: string
                  nullable: true
                  description: Unique identifier for the folder
              required:
                - workspaceId
                - name
      responses:
        '201':
          description: Prompt created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          description:
                            type: string
                          workspaceId:
                            type: string
                          accountId:
                            type: string
                          folderId:
                            type: string
                            nullable: true
                          meta:
                            nullable: true
                          createdById:
                            type: string
                          createdAt:
                            type: string
                          updatedAt:
                            type: string
                          deletedAt:
                            type: string
                            nullable: true
                        required:
                          - id
                          - name
                          - description
                          - workspaceId
                          - accountId
                          - folderId
                          - createdById
                          - createdAt
                          - updatedAt
                          - deletedAt
                    required:
                      - data
                required:
                  - data
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````