Skip to main content
POST
pctx0

Authorizations

X-Access-Key
string
header
required

Workspace access key for agent/runtime integrations.

Path Parameters

workspaceId
string<uuid>
required

Body

application/json
name
string
required
Required string length: 1 - 150
Example:

"Support system prompt"

type
enum<string>
required
Available options:
text,
chat
Example:

"text"

content
string
required
Example:

"You are a helpful support agent."

description
string
Maximum string length: 2000
Example:

"Primary system prompt for support agents"

config
string

Optional JSON encoded as a string.

commitMessage
string
Maximum string length: 255
Example:

"Initial version"

meta
string

Optional JSON encoded as a string.

production
boolean
default:false
Example:

true

Response

Created

promptId
string<uuid>
required
Example:

"66666666-6666-6666-6666-666666666666"

name
string
required
Example:

"Support system prompt"

handle
string
required
Example:

"support-system-prompt"

description
string
required
Example:

"Primary system prompt for support agents"

versionCount
integer
required
Example:

1