Nirmos
Prompts

Compile Prompt Preview

Compile Prompt Preview — Nirmos Control Plane REST API.

POST
/v1/prompts/{id}/compile

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/prompts/string/compile" \  -H "Content-Type: application/json" \  -d '{    "messages": [      {        "role": "system",        "contentBlocks": [          {}        ]      }    ]  }'
{  "data": "string",  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}