---
title: "Convert Prompt File To Json"
method: POST
path: "/utils/dotprompt_json_converter"
tags: ["prompts", "utils"]
---

# Convert Prompt File To Json

`POST /utils/dotprompt_json_converter`

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.

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.net/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sea-lion/litellm-api/revisions/79928a3d37d3/schema)
