---
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

## Changes

- **2026-08-30** `24ad9eaf6a00` — 1 info
  - api tag `utils` added
- **2026-08-27** `4a06c3148b6c` — 1 info
  - api tag `utils` removed
- **2026-08-18** `0f1119a1c002` — 1 info
  - api tag `utils` added
- **2026-08-15** `19cc785a8024` — 1 info
  - api tag `utils` removed
- **2026-08-14** `9c80d9af446a` — 1 info
  - api tag `utils` added

[Change 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-service-production.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/24ad9eaf6a00/schema)
