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

# Create Prompt

> Create a new prompt in the system



## OpenAPI

````yaml post /v1/prompt/create
openapi: 3.0.0
info:
  title: helicone-api
  version: 1.0.0
  license:
    name: MIT
  contact: {}
servers:
  - url: https://api.helicone.ai/
  - url: http://localhost:8585/
security: []
paths:
  /v1/prompt/create:
    post:
      tags:
        - Prompt
      operationId: CreatePrompt
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                metadata:
                  $ref: '#/components/schemas/Record_string.any_'
                prompt: {}
                userDefinedId:
                  type: string
              required:
                - metadata
                - prompt
                - userDefinedId
              type: object
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result_CreatePromptResponse.string_'
      security:
        - api_key: []
components:
  schemas:
    Record_string.any_:
      properties: {}
      additionalProperties: {}
      type: object
      description: Construct a type with a set of properties K of type T
    Result_CreatePromptResponse.string_:
      anyOf:
        - $ref: '#/components/schemas/ResultSuccess_CreatePromptResponse_'
        - $ref: '#/components/schemas/ResultError_string_'
    ResultSuccess_CreatePromptResponse_:
      properties:
        data:
          $ref: '#/components/schemas/CreatePromptResponse'
        error:
          type: number
          enum:
            - null
          nullable: true
      required:
        - data
        - error
      type: object
      additionalProperties: false
    ResultError_string_:
      properties:
        data:
          type: number
          enum:
            - null
          nullable: true
        error:
          type: string
      required:
        - data
        - error
      type: object
      additionalProperties: false
    CreatePromptResponse:
      properties:
        id:
          type: string
        prompt_version_id:
          type: string
      required:
        - id
        - prompt_version_id
      type: object
      additionalProperties: false
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header
      description: 'Bearer token authentication. Format: ''Bearer YOUR_API_KEY'''

````