Skip to main content
POST
/
v1
/
orgs
/
{org_id}
/
prompts
Create a custom prompt
curl --request POST \
  --url http://localhost:3000/v1/orgs/{org_id}/prompts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "prompt_content": "<string>",
  "description": "<string>",
  "prompt_type": "scoring_criterion",
  "order_index": 1,
  "is_active": true
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org_id
string
required

Body

application/json
title
string
required
Required string length: 1 - 200
prompt_content
string
required
Required string length: 1 - 20000
description
string
Maximum string length: 2000
prompt_type
enum<string>
Available options:
scoring_criterion,
evaluation_focus,
disqualifier,
other
order_index
integer
Required range: x >= 0
is_active
boolean

Response

200

Default Response