Skip to main content
POST
Create a pre-prompt
Create a masked pre-prompt by pairing a public label with the hidden maskedValue that is injected after the system prompt. Send Authorization: Bearer <BACKEND_SECRET> or X-Backend-Secret: <BACKEND_SECRET> with every admin request.

Request Body

Headers

X-Backend-Secret
string

Backend secret token required for admin-only endpoints. Provide either this header or Authorization: Bearer <secret>.

Body

application/json
key
string
required
Required string length: 2 - 64
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{1,63}$
publicValue
string
required
Required string length: 1 - 512
maskedValue
string
required
Required string length: 1 - 4000
description
string | null
Maximum string length: 500
tags
string[] | null
Maximum array length: 16
Maximum string length: 50

Response

PrePrompt created.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required