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

# 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

## Changes

- **2026-09-27** `b694deb1e459` — 1 info
  - api tag `utils` removed
- **2026-09-26** `cfac079bcc04` — 1 info
  - api tag `utils` added
- **2026-09-25** `a4fccd4bf54d` — 1 info
  - api tag `utils` removed
- **2026-09-21** `6246f8d427b7` — 1 info
  - api tag `utils` added
- **2026-09-19** `c357baf422ab` — 1 info
  - api tag `utils` removed

[Full history](https://skmtc.dev/flock/apis/litellm-api/changes/utils/dotprompt_json_converter/post.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/b694deb1e459?raw)
