curl --request POST \
--url https://server.promptwatch.com/api/v2/content/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"mode": "CREATE",
"personaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"promptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"competitorReferenceUrls": [
"<string>"
],
"contentGapRecommendationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customToneOfVoice": "<string>",
"imagePromptInstructions": "<string>",
"blockedWords": [
"<string>"
],
"briefTitle": "<string>",
"briefDescription": "<string>",
"briefObjective": "<string>",
"briefCallToAction": "<string>",
"briefKeyPoints": [
"<string>"
],
"briefContext": "<string>"
}
'import requests
url = "https://server.promptwatch.com/api/v2/content/create"
payload = {
"mode": "CREATE",
"personaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"promptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"competitorReferenceUrls": ["<string>"],
"contentGapRecommendationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customToneOfVoice": "<string>",
"imagePromptInstructions": "<string>",
"blockedWords": ["<string>"],
"briefTitle": "<string>",
"briefDescription": "<string>",
"briefObjective": "<string>",
"briefCallToAction": "<string>",
"briefKeyPoints": ["<string>"],
"briefContext": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mode: 'CREATE',
personaId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
promptId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
topic: '<string>',
competitorReferenceUrls: ['<string>'],
contentGapRecommendationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
customToneOfVoice: '<string>',
imagePromptInstructions: '<string>',
blockedWords: ['<string>'],
briefTitle: '<string>',
briefDescription: '<string>',
briefObjective: '<string>',
briefCallToAction: '<string>',
briefKeyPoints: ['<string>'],
briefContext: '<string>'
})
};
fetch('https://server.promptwatch.com/api/v2/content/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.promptwatch.com/api/v2/content/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => 'CREATE',
'personaId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'promptId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'topic' => '<string>',
'competitorReferenceUrls' => [
'<string>'
],
'contentGapRecommendationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'customToneOfVoice' => '<string>',
'imagePromptInstructions' => '<string>',
'blockedWords' => [
'<string>'
],
'briefTitle' => '<string>',
'briefDescription' => '<string>',
'briefObjective' => '<string>',
'briefCallToAction' => '<string>',
'briefKeyPoints' => [
'<string>'
],
'briefContext' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://server.promptwatch.com/api/v2/content/create"
payload := strings.NewReader("{\n \"mode\": \"CREATE\",\n \"personaId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"topic\": \"<string>\",\n \"competitorReferenceUrls\": [\n \"<string>\"\n ],\n \"contentGapRecommendationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customToneOfVoice\": \"<string>\",\n \"imagePromptInstructions\": \"<string>\",\n \"blockedWords\": [\n \"<string>\"\n ],\n \"briefTitle\": \"<string>\",\n \"briefDescription\": \"<string>\",\n \"briefObjective\": \"<string>\",\n \"briefCallToAction\": \"<string>\",\n \"briefKeyPoints\": [\n \"<string>\"\n ],\n \"briefContext\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://server.promptwatch.com/api/v2/content/create")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"CREATE\",\n \"personaId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"topic\": \"<string>\",\n \"competitorReferenceUrls\": [\n \"<string>\"\n ],\n \"contentGapRecommendationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customToneOfVoice\": \"<string>\",\n \"imagePromptInstructions\": \"<string>\",\n \"blockedWords\": [\n \"<string>\"\n ],\n \"briefTitle\": \"<string>\",\n \"briefDescription\": \"<string>\",\n \"briefObjective\": \"<string>\",\n \"briefCallToAction\": \"<string>\",\n \"briefKeyPoints\": [\n \"<string>\"\n ],\n \"briefContext\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/content/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"CREATE\",\n \"personaId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"topic\": \"<string>\",\n \"competitorReferenceUrls\": [\n \"<string>\"\n ],\n \"contentGapRecommendationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customToneOfVoice\": \"<string>\",\n \"imagePromptInstructions\": \"<string>\",\n \"blockedWords\": [\n \"<string>\"\n ],\n \"briefTitle\": \"<string>\",\n \"briefDescription\": \"<string>\",\n \"briefObjective\": \"<string>\",\n \"briefCallToAction\": \"<string>\",\n \"briefKeyPoints\": [\n \"<string>\"\n ],\n \"briefContext\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "6ba7b82c-9dad-11d1-80b4-00c04fd430c8",
"status": "PENDING"
}Create content
Starts AI content generation (CREATE or OPTIMIZE). OPTIMIZE creates a rewritten draft of an existing page (Content Refresh) from stored crawl content and does not modify or publish the live page. Returns the new document id with status PENDING; use GET /content/:id to poll for status, fields, and body.
curl --request POST \
--url https://server.promptwatch.com/api/v2/content/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"mode": "CREATE",
"personaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"promptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"competitorReferenceUrls": [
"<string>"
],
"contentGapRecommendationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customToneOfVoice": "<string>",
"imagePromptInstructions": "<string>",
"blockedWords": [
"<string>"
],
"briefTitle": "<string>",
"briefDescription": "<string>",
"briefObjective": "<string>",
"briefCallToAction": "<string>",
"briefKeyPoints": [
"<string>"
],
"briefContext": "<string>"
}
'import requests
url = "https://server.promptwatch.com/api/v2/content/create"
payload = {
"mode": "CREATE",
"personaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"promptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"competitorReferenceUrls": ["<string>"],
"contentGapRecommendationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customToneOfVoice": "<string>",
"imagePromptInstructions": "<string>",
"blockedWords": ["<string>"],
"briefTitle": "<string>",
"briefDescription": "<string>",
"briefObjective": "<string>",
"briefCallToAction": "<string>",
"briefKeyPoints": ["<string>"],
"briefContext": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mode: 'CREATE',
personaId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
promptId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
topic: '<string>',
competitorReferenceUrls: ['<string>'],
contentGapRecommendationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
customToneOfVoice: '<string>',
imagePromptInstructions: '<string>',
blockedWords: ['<string>'],
briefTitle: '<string>',
briefDescription: '<string>',
briefObjective: '<string>',
briefCallToAction: '<string>',
briefKeyPoints: ['<string>'],
briefContext: '<string>'
})
};
fetch('https://server.promptwatch.com/api/v2/content/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.promptwatch.com/api/v2/content/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => 'CREATE',
'personaId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'promptId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'topic' => '<string>',
'competitorReferenceUrls' => [
'<string>'
],
'contentGapRecommendationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'customToneOfVoice' => '<string>',
'imagePromptInstructions' => '<string>',
'blockedWords' => [
'<string>'
],
'briefTitle' => '<string>',
'briefDescription' => '<string>',
'briefObjective' => '<string>',
'briefCallToAction' => '<string>',
'briefKeyPoints' => [
'<string>'
],
'briefContext' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://server.promptwatch.com/api/v2/content/create"
payload := strings.NewReader("{\n \"mode\": \"CREATE\",\n \"personaId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"topic\": \"<string>\",\n \"competitorReferenceUrls\": [\n \"<string>\"\n ],\n \"contentGapRecommendationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customToneOfVoice\": \"<string>\",\n \"imagePromptInstructions\": \"<string>\",\n \"blockedWords\": [\n \"<string>\"\n ],\n \"briefTitle\": \"<string>\",\n \"briefDescription\": \"<string>\",\n \"briefObjective\": \"<string>\",\n \"briefCallToAction\": \"<string>\",\n \"briefKeyPoints\": [\n \"<string>\"\n ],\n \"briefContext\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://server.promptwatch.com/api/v2/content/create")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"CREATE\",\n \"personaId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"topic\": \"<string>\",\n \"competitorReferenceUrls\": [\n \"<string>\"\n ],\n \"contentGapRecommendationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customToneOfVoice\": \"<string>\",\n \"imagePromptInstructions\": \"<string>\",\n \"blockedWords\": [\n \"<string>\"\n ],\n \"briefTitle\": \"<string>\",\n \"briefDescription\": \"<string>\",\n \"briefObjective\": \"<string>\",\n \"briefCallToAction\": \"<string>\",\n \"briefKeyPoints\": [\n \"<string>\"\n ],\n \"briefContext\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/content/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"CREATE\",\n \"personaId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"topic\": \"<string>\",\n \"competitorReferenceUrls\": [\n \"<string>\"\n ],\n \"contentGapRecommendationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customToneOfVoice\": \"<string>\",\n \"imagePromptInstructions\": \"<string>\",\n \"blockedWords\": [\n \"<string>\"\n ],\n \"briefTitle\": \"<string>\",\n \"briefDescription\": \"<string>\",\n \"briefObjective\": \"<string>\",\n \"briefCallToAction\": \"<string>\",\n \"briefKeyPoints\": [\n \"<string>\"\n ],\n \"briefContext\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "6ba7b82c-9dad-11d1-80b4-00c04fd430c8",
"status": "PENDING"
}Authorizations
Body
- Option 1
- Option 2
Output format. Supports article/blog formats plus on-site citation-aligned formats such as HOW_TO, REVIEW, COMPARISON, CASE_STUDY, DOCUMENTATION, WIKI, PRODUCT_PAGE, LANDING_PAGE, and PRESS_RELEASE.
ARTICLE, BLOG_POST, OPINION, LISTICLE, HOW_TO, REVIEW, COMPARISON, CASE_STUDY, INTERVIEW, DOCUMENTATION, WIKI, PRODUCT_PAGE, LANDING_PAGE, PRESS_RELEASE, GENERIC_CONTENT, PRODUCT_COMPARISON BCP-47 language code from the supported enum (e.g. "en-US", "es-ES"). Overrides the inherited language. Omit to use the target prompt or monitor language, then the Brand Book fallback, then en-US.
en-US, en-GB, en-IN, en-AU, en-CA, en-NZ, nl-NL, nl-BE, es-ES, es-MX, es-AR, es-CO, es-CL, es-PE, es-VE, ca-ES, fr-FR, fr-BE, fr-CA, de-DE, de-AT, de-CH, cs-CZ, sk-SK, sl-SI, no-NO, sv-SE, da-DK, it-IT, fi-FI, pl-PL, hu-HU, ro-RO, lt-LT, lv-LV, uk-UA, el-GR, tr-TR, ar-SA, ar-EG, ar-AE, he-IL, pt-PT, pt-BR, ja-JP, id-ID, vi-VN, th-TH, km-KH, en-KH, ko-KR, hi-IN, ru-RU, kk-KZ, ms-MY, fil-PH, zh-SG, zh-TW, zh-HK Visual style for AI-generated featured images when the generate-article-image tool is enabled. Null inherits the project default.
photo-realistic, flat-illustration, watercolor, 3d-render, minimalist, isometric, editorial, abstract, mood-board, whiteboard, torn-paper