Skip to main content
POST
Create an action from a prompt

Authorizations

Authorization
string
header
required

API key with dtk_live_ prefix. Obtain it from API Keys in the account sidebar. New keys start with all supported scopes selected for the chosen project, and you can narrow them to specific read/write scopes as needed.

Path Parameters

projectId
string<uuid>
required

Body

application/json
promptId
string<uuid>
required
title
string
required
Required string length: 1 - 500
description
string
required
Required string length: 1 - 10000
targetUrl
string<uri>

Optional HTTP(S) URL of the existing page to improve. Omit for new content.

Maximum string length: 2048
acknowledgedHighStakes
boolean
default:false

Explicit customer acknowledgement required for a high-stakes target page.

generateBrief
boolean
default:false

Response

Saved action and optional brief state

data
object