Skip to main content
POST
/
public-api
/
prompts
Create a new broadcast prompt
curl --request POST \
  --url https://agents.nineteen58.co.za/public-api/prompts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "prompt": "<string>",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_global": true,
  "goal": "<string>",
  "flow": "<string>",
  "tool_use_rules": "<string>",
  "background": "<string>",
  "persona": "<string>",
  "outcomes_json": {},
  "example_conversation": "<string>",
  "outcomes": "<string>"
}'
{
  "prompt": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "prompt": "<string>",
    "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "is_global": true,
    "goal": "<string>",
    "flow": "<string>",
    "tool_use_rules": "<string>",
    "background": "<string>",
    "persona": "<string>",
    "outcomes_json": {},
    "example_conversation": "<string>",
    "outcomes": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
name
string
required

Name of the prompt

prompt
string
required

The prompt content

agent_id
string<uuid>

Associated agent ID

is_global
boolean

Whether the prompt is global

goal
string

Goal of the prompt

flow
string

Flow description

tool_use_rules
string

Rules for tool usage

background
string

Background information

persona
string

Persona description

outcomes_json
object

JSON structured outcomes

example_conversation
string

Example conversation

outcomes
string

Expected outcomes

Response

Prompt created successfully

prompt
object