Create Prompt
Changed onCreates a new prompt with variants for the specified platforms. Requires the configure scope.
Behavior:
- stage is optional. If omitted, the journey stage is auto-classified against your brand's active stages using an LLM.
- If stage is provided, it must match one of your brand's active stages (case-sensitive display name). An unknown value returns 400. An explicit stage is treated as a manual assertion and won't be overwritten by later re-classification.
- Creates variants for each specified platform.
- Reactivates an archived prompt if a duplicate exists. A duplicate of a paused prompt is not reactivated; it returns 400 with type=paused_duplicate and the paused prompt_id.
- Dispatches collection events to begin tracking.
post/{brand_id}/prompts
Request
- Base URLhttps://api.scrunchai.com/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
brand_idinteger required
The unique identifier for the brand
Request body
Response
Successful Response
Changes
- info
added the non-success response with the status
- info
added the required property
to the response with the status
- info