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

# Create Prompt



## OpenAPI

````yaml POST /v1/prompts
openapi: 3.0.0
info:
  title: Wardin API
  description: AI governance & observability platform — external REST API
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/prompts:
    post:
      tags:
        - prompts
      summary: Create a new prompt (also creates version 1)
      operationId: PromptsController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePromptDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptDto'
      security:
        - bearer: []
components:
  schemas:
    CreatePromptDto:
      type: object
      properties:
        name:
          type: string
          example: Support reply template
        description:
          type: string
          example: Used by the support team for first-response drafts
          nullable: true
        content:
          type: string
          example: 'You are a helpful support agent. Reply to: {{message}}'
      required:
        - name
        - description
        - content
    PromptDto:
      type: object
      properties:
        id:
          type: string
          description: Prompt UUID
        name:
          type: string
          description: Human-readable prompt name (unique per tenant)
        description:
          type: string
          description: Optional description
        labels:
          type: object
          description: 'Map of label name → version number (e.g. { production: 2 })'
          additionalProperties:
            type: number
        createdAt:
          format: date-time
          type: string
      required:
        - id
        - name
        - description
        - labels
        - createdAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````