prompts
utils

Convert Prompt File To Json

Changed on

Convert a .prompt file to JSON format.

This endpoint accepts a .prompt file upload and returns the equivalent JSON representation that can be stored in a database or used programmatically.

Returns the JSON structure with 'content' and 'metadata' fields.

post/utils/dotprompt_json_converter

Request

  • Base URL
    https://api.flock.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.flock.io/utils/dotprompt_json_converter
  • Auth
    API key in header x-litellm-api-key

Request body multipart/form-data

filestring binary required

Response

Successful Response

object required

Changes