Skip to Content
Docs

Create a new prompt

POST
/api/create_prompt

Create a new prompt.

Personal access token scope: prompts:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
content*string

Content of the prompt

name*string

Name of the prompt

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/create_prompt' \  -H 'Content-Type: application/json' \  -d '{  "content": "string",  "name": "string"}'
Example Response200
Empty