Skip to main content
POST
/
admin
/
api
/
v1
/
prompts
Create Prompt
curl --request POST \
  --url https://api.example.com/admin/api/v1/prompts \
  --header 'Content-Type: application/json' \
  --data '
{
  "promptId": "<string>",
  "content": "<string>",
  "tags": [
    "<string>"
  ]
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "promptId": "<string>",
    "version": 123,
    "content": "<string>",
    "tags": [
      "<string>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "reload": {
    "message": "<string>",
    "error": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.idun-group.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

Body for POST /admin/api/v1/prompts.

Creating a prompt with an existing prompt_id creates a new version at the DB layer (Phase 4+); the schema does not enforce uniqueness.

promptId
string
required
content
string
required
tags
string[]

Response

Successful Response

data
StandalonePromptRead · object
required

GET response and the data payload of POST/PATCH/DELETE responses.

reload
StandaloneReloadResult · object
required

Reload outcome attached to every admin mutation response.

reloaded means DB committed and runtime now uses the new config. restart_required means DB committed and process restart is needed. reload_failed means DB rolled back and runtime is unchanged.

Last modified on May 22, 2026