Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Prompt name.

productId
string<uuid>
required

Product this prompt will map to.

role
string
required

Role key in the product mapping (e.g. "agent tool").

Minimum string length: 1
components
object[]
required

Array of component objects.

Minimum array length: 1
externalPromptId
string

Your external identifier for the prompt.

description
string

Prompt description.

source
enum<string>
default:customer

Prompt source.

Available options:
customer,
participant,
greenflash,
agent

Response

Prompt created successfully

promptId
string<uuid>
required

The created prompt ID.

versionId
string<uuid>
required

The created version ID. Version is created but not activated (activation happens via UI or Messages API).

componentIds
string<uuid>[]
required

The IDs of the created prompt components.

externalPromptId
string

The external prompt ID.