curl --request POST \ --url https://api.example.com/v1/prompts/ \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "name": "Company Summary Extractor", "prompt": "Given the page content, answer the questions according to the schema.", "description": "Extracts what a company does and whether it is generalist or specialist.", "response_schema": { "draft_07": { "enum": [ "generalist", "specialist" ], "type": "string" } }}'
import requests
url = "https://api.example.com/v1/prompts/"
payload = {
"name": "Company Summary Extractor",
"prompt": "Given the page content, answer the questions according to the schema.",
"description": "Extracts what a company does and whether it is generalist or specialist.",
"response_schema": { "draft_07": {
"enum": ["generalist", "specialist"],
"type": "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({
name: 'Company Summary Extractor',
prompt: 'Given the page content, answer the questions according to the schema.',
description: 'Extracts what a company does and whether it is generalist or specialist.',
response_schema: {draft_07: {enum: ['generalist', 'specialist'], type: 'string'}}
})
};
fetch('https://api.example.com/v1/prompts/', 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://api.example.com/v1/prompts/",
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([
'name' => 'Company Summary Extractor',
'prompt' => 'Given the page content, answer the questions according to the schema.',
'description' => 'Extracts what a company does and whether it is generalist or specialist.',
'response_schema' => [
'draft_07' => [
'enum' => [
'generalist',
'specialist'
],
'type' => '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://api.example.com/v1/prompts/"
payload := strings.NewReader("{\n \"name\": \"Company Summary Extractor\",\n \"prompt\": \"Given the page content, answer the questions according to the schema.\",\n \"description\": \"Extracts what a company does and whether it is generalist or specialist.\",\n \"response_schema\": {\n \"draft_07\": {\n \"enum\": [\n \"generalist\",\n \"specialist\"\n ],\n \"type\": \"string\"\n }\n }\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://api.example.com/v1/prompts/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Company Summary Extractor\",\n \"prompt\": \"Given the page content, answer the questions according to the schema.\",\n \"description\": \"Extracts what a company does and whether it is generalist or specialist.\",\n \"response_schema\": {\n \"draft_07\": {\n \"enum\": [\n \"generalist\",\n \"specialist\"\n ],\n \"type\": \"string\"\n }\n }\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/prompts/")
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 \"name\": \"Company Summary Extractor\",\n \"prompt\": \"Given the page content, answer the questions according to the schema.\",\n \"description\": \"Extracts what a company does and whether it is generalist or specialist.\",\n \"response_schema\": {\n \"draft_07\": {\n \"enum\": [\n \"generalist\",\n \"specialist\"\n ],\n \"type\": \"string\"\n }\n }\n}"
response = http.request(request)
puts response.read_body
{
"data": {
"title": "Internal Server Error",
"status": 500,
"detail": "Internal server error",
"instance": "https://urlyourequest.com/path?query=value"
},
"response_type": "ErrorResponse"
}
prompts
Create Prompt
Create a new structured prompt (version 1).
POST
/
v1
/
prompts
/
Create Prompt
curl --request POST \ --url https://api.example.com/v1/prompts/ \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "name": "Company Summary Extractor", "prompt": "Given the page content, answer the questions according to the schema.", "description": "Extracts what a company does and whether it is generalist or specialist.", "response_schema": { "draft_07": { "enum": [ "generalist", "specialist" ], "type": "string" } }}'
import requests
url = "https://api.example.com/v1/prompts/"
payload = {
"name": "Company Summary Extractor",
"prompt": "Given the page content, answer the questions according to the schema.",
"description": "Extracts what a company does and whether it is generalist or specialist.",
"response_schema": { "draft_07": {
"enum": ["generalist", "specialist"],
"type": "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({
name: 'Company Summary Extractor',
prompt: 'Given the page content, answer the questions according to the schema.',
description: 'Extracts what a company does and whether it is generalist or specialist.',
response_schema: {draft_07: {enum: ['generalist', 'specialist'], type: 'string'}}
})
};
fetch('https://api.example.com/v1/prompts/', 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://api.example.com/v1/prompts/",
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([
'name' => 'Company Summary Extractor',
'prompt' => 'Given the page content, answer the questions according to the schema.',
'description' => 'Extracts what a company does and whether it is generalist or specialist.',
'response_schema' => [
'draft_07' => [
'enum' => [
'generalist',
'specialist'
],
'type' => '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://api.example.com/v1/prompts/"
payload := strings.NewReader("{\n \"name\": \"Company Summary Extractor\",\n \"prompt\": \"Given the page content, answer the questions according to the schema.\",\n \"description\": \"Extracts what a company does and whether it is generalist or specialist.\",\n \"response_schema\": {\n \"draft_07\": {\n \"enum\": [\n \"generalist\",\n \"specialist\"\n ],\n \"type\": \"string\"\n }\n }\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://api.example.com/v1/prompts/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Company Summary Extractor\",\n \"prompt\": \"Given the page content, answer the questions according to the schema.\",\n \"description\": \"Extracts what a company does and whether it is generalist or specialist.\",\n \"response_schema\": {\n \"draft_07\": {\n \"enum\": [\n \"generalist\",\n \"specialist\"\n ],\n \"type\": \"string\"\n }\n }\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/prompts/")
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 \"name\": \"Company Summary Extractor\",\n \"prompt\": \"Given the page content, answer the questions according to the schema.\",\n \"description\": \"Extracts what a company does and whether it is generalist or specialist.\",\n \"response_schema\": {\n \"draft_07\": {\n \"enum\": [\n \"generalist\",\n \"specialist\"\n ],\n \"type\": \"string\"\n }\n }\n}"
response = http.request(request)
puts response.read_body
{
"data": {
"title": "Internal Server Error",
"status": 500,
"detail": "Internal server error",
"instance": "https://urlyourequest.com/path?query=value"
},
"response_type": "ErrorResponse"
}
Authorizations
X-API-Key
string
header
required
API Key for external integrations (format: greetincs_...)
Body
application/json
Request schema for creating a new prompt.
Note: version is an internal field managed by the system.
version: Auto-incremented on updates, starts at 1 for new prompts
name
string
required
Required string length: 1 - 255
Example:
"Company Summary Extractor"
prompt
string
required
Minimum string length: 1
Example:
"Given the page content, answer the questions according to the schema."
description
string | null
Maximum string length: 1000
Example:
"Extracts what a company does and whether it is generalist or specialist."
response_schema
JSONSchema · object | null
JSON Schema Draft-07 model for structured prompt responses.
Supports both primitive schemas (e.g., {"type": "string"}) and object schemas.
If omitted, defaults to {"type": "string"}.
Show child attributes
Response
Successful Response
API response model for structured prompts.
data
PromptData · object
required
Data model for versioned structured prompts.
The id field serializes as unversioned (prompt_xxx) for direct use in API paths.
Version info is in the separate version field.
Show child attributes
response_type
string
default:PromptResponse
links
Link · object[]
HATEOAS links related to this response (e.g., self, next, prev)
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"GreetIncs API Documentation","colors":{"primary":"#6958d1","light":"#9b92ff","dark":"#5547c0"},"logo":{"light":"https://mintcdn.com/hyperlaceeu/yaT-mowZeypxgqLa/logo.svg?fit=max\u0026auto=format\u0026n=yaT-mowZeypxgqLa\u0026q=85\u0026s=53e0538af232f0a9a51c3f8c90e0cce7","dark":"https://mintcdn.com/hyperlaceeu/yaT-mowZeypxgqLa/logo.svg?fit=max\u0026auto=format\u0026n=yaT-mowZeypxgqLa\u0026q=85\u0026s=53e0538af232f0a9a51c3f8c90e0cce7"},"favicon":"https://mintcdn.com/hyperlaceeu/yaT-mowZeypxgqLa/favicon.svg?fit=max\u0026auto=format\u0026n=yaT-mowZeypxgqLa\u0026q=85\u0026s=f96d0a8b70a02b6fe3f892859a6354e3","footer":{},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hyperlaceeu","hasAudioNarration":false,"actualSubdomain":"hyperlaceeu","customDomains":["docs.greetincs.com"],"gitSource":{"type":"github","owner":"01programs","repo":"greetincs-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"issues":false,"edits":false,"thumbs":false},"entitlements":{},"buildId":"6ae949e7ad87a8c861a73692:success","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API Reference","count":2},{"language":"default","tag":"Common","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/prompts/create-prompt","slug":"/api-reference/prompts/create-prompt","pageMetadata":{"title":"Create Prompt","description":"Create a new structured prompt (version 1).","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/prompts/","href":"/api-reference/prompts/create-prompt","autogeneratedByOpenApi":true,"hidden":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new structured prompt (version 1).\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Prompt","description":"Create a new structured prompt (version 1).","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/prompts/","href":"/api-reference/prompts/create-prompt","autogeneratedByOpenApi":true,"hidden":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["prompts"],"summary":"Create Prompt","description":"Create a new structured prompt (version 1).","operationId":"createPrompt","requestBody":"432d425d-bff1-44ae-ba47-ecab32e7e07f","responses":{"201":"a1a6567b-0584-4d74-84fe-3197c84a574c","400":"0542e97d-7052-4e59-9bef-89d1819abbe6","401":"0d477d27-2f2c-4d21-814a-0d3b3194a9e1","402":"7da3f4a9-ab6f-4708-9b1a-9e8c7d2c9c27","403":"7127e67b-813e-4546-be3b-a361ada8ae31","422":"6bdbd1d7-cf01-47ef-8780-a7f95c588ba7","500":"5c2ee04d-d9cc-4f32-a73f-e2c80270317a"},"security":["738e06f2-f5c9-4a93-b073-5e6ca6cdef87"],"method":"post","type":"path","servers":[],"path":"/v1/prompts/","baseUrlOptions":[],"title":"Create Prompt","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","examples":["Company Summary Extractor"],"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"prompt":{"type":"string","minLength":1,"title":"Prompt","examples":["Given the page content, answer the questions according to the schema."],"isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"description":{"oneOf":[{"type":"string","title":"Description","maxLength":1000,"example":"Extracts what a company does and whether it is generalist or specialist.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Description","example":"Extracts what a company does and whether it is generalist or specialist.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"response_schema":{"oneOf":[{"type":"object","title":"JSONSchema","description":"JSON Schema Draft-07 model for structured prompt responses.\nSupports both primitive schemas (e.g., {\"type\": \"string\"}) and object schemas.\nIf omitted, defaults to {\"type\": \"string\"}.","required":["draft_07"],"properties":{"draft_07":{"additionalProperties":true,"type":"object","title":"Draft 07","description":"Draft-07 JSON Schema. Supports primitive schemas (e.g., {\"type\":\"string\"}) or object schemas. If omitted, defaults to {\"type\":\"string\"}.","examples":[{"enum":["generalist","specialist"],"type":"string"},{"type":"string"},{"additionalProperties":false,"properties":{"what_does_this_company_do":{"type":"string"},"offer_type":{"enum":["generalist","specialist"],"type":"string"}},"required":["what_does_this_company_do","offer_type"],"type":"object"},{"type":"boolean"},{"maximum":100,"minimum":0,"type":"number"}],"isRequired":true,"uniqueKey":"response_schema.oneOf.0.draft_07","typeLabel":"Draft 07 · object"}},"uniqueKey":"response_schema.oneOf.0","typeLabel":"JSONSchema · object"},{"type":"null","uniqueKey":"response_schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"response_schema","typeLabel":"JSONSchema · object | null"}},"type":"object","required":["name","prompt"],"title":"PromptCreateRequest","description":"Request schema for creating a new prompt.\n\nNote: version is an internal field managed by the system.\n- version: Auto-incremented on updates, starts at 1 for new prompts","uniqueKey":"","typeLabel":"PromptCreateRequest · object"},"examples":{"Example":{"title":"Example","value":{"name":"Company Summary Extractor","prompt":"Given the page content, answer the questions according to the schema.","description":"Extracts what a company does and whether it is generalist or specialist.","response_schema":{"draft_07":{"enum":["generalist","specialist"],"type":"string"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a1a6567b-0584-4d74-84fe-3197c84a574c":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"type":"string","pattern":"^prompt_[0-9a-hjkmnp-tv-z]{26}$","title":"Id","description":"TypeID with 'prompt' prefix. Format: {prefix}_{base32_uuid7}. Example: prompt_01h45ytscbebyvny4gc8cr8ma2","examples":["prompt_01h45ytscbebyvny4gc8cr8ma2"],"isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"prompt":{"type":"string","title":"Prompt","isRequired":true,"uniqueKey":"data.prompt","typeLabel":"string"},"response_schema":{"properties":{"draft_07":{"additionalProperties":true,"type":"object","title":"Draft 07","description":"Draft-07 JSON Schema. Supports primitive schemas (e.g., {\"type\":\"string\"}) or object schemas. If omitted, defaults to {\"type\":\"string\"}.","examples":[{"enum":["generalist","specialist"],"type":"string"},{"type":"string"},{"additionalProperties":false,"properties":{"what_does_this_company_do":{"type":"string"},"offer_type":{"enum":["generalist","specialist"],"type":"string"}},"required":["what_does_this_company_do","offer_type"],"type":"object"},{"type":"boolean"},{"maximum":100,"minimum":0,"type":"number"}],"isRequired":true,"uniqueKey":"data.response_schema.draft_07","typeLabel":"Draft 07 · object"}},"type":"object","required":["draft_07"],"title":"JSONSchema","description":"JSON Schema Draft-07 model for structured prompt responses.\nSupports both primitive schemas (e.g., {\"type\": \"string\"}) and object schemas.\nIf omitted, defaults to {\"type\": \"string\"}.","isRequired":true,"uniqueKey":"data.response_schema","typeLabel":"JSONSchema · object"},"version":{"type":"integer","title":"Version","description":"Version number of this prompt","isRequired":true,"uniqueKey":"data.version","typeLabel":"integer"},"is_current":{"type":"boolean","title":"Is Current","description":"True if this is the latest version","isRequired":true,"uniqueKey":"data.is_current","typeLabel":"boolean"},"created_at":{"type":"integer","title":"Created At","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"integer"},"description":{"oneOf":[{"type":"string","title":"Description","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Description","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"}},"type":"object","required":["id","name","prompt","response_schema","version","is_current","created_at"],"title":"PromptData","description":"Data model for versioned structured prompts.\n\nThe `id` field serializes as unversioned (prompt_xxx) for direct use in API paths.\nVersion info is in the separate `version` field.","isRequired":true,"uniqueKey":"data","typeLabel":"PromptData · object"},"response_type":{"type":"string","title":"Response Type","default":"PromptResponse","uniqueKey":"response_type","typeLabel":"string"},"links":{"items":{"properties":{"href":{"type":"string","title":"Href","description":"The URL of the linked resource","isRequired":true,"uniqueKey":"links.items.[INDEX].href","typeLabel":"string"},"rel":{"type":"string","title":"Rel","description":"The relationship type (e.g., 'self', 'next')","isRequired":true,"uniqueKey":"links.items.[INDEX].rel","typeLabel":"string"},"method":{"type":"string","title":"Method","description":"The HTTP method (e.g., 'GET', 'POST')","default":"GET","uniqueKey":"links.items.[INDEX].method","typeLabel":"string"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Optional human-readable title","uniqueKey":"links.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Optional human-readable title","uniqueKey":"links.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"uniqueKey":"links.items.[INDEX].title","typeLabel":"string | null"}},"type":"object","required":["href","rel"],"title":"Link","uniqueKey":"links.items.[INDEX]","typeLabel":"Link · object"},"type":"array","title":"Links","description":"HATEOAS links related to this response (e.g., self, next, prev)","default":[],"examples":[[{"href":"/resource/{resource_id}","method":"GET","rel":"self","title":"Resource Details"},{"href":"/resource/{resource_id}/related","method":"GET","rel":"related","title":"Related Resources"}]],"uniqueKey":"links","typeLabel":"Link · object[]"}},"additionalProperties":false,"type":"object","required":["data"],"title":"PromptResponse","description":"API response model for structured prompts.","uniqueKey":"","typeLabel":"PromptResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"prompt_01h45ytscbebyvny4gc8cr8ma2","name":"\u003cstring>","prompt":"\u003cstring>","response_schema":{"draft_07":{"enum":["generalist","specialist"],"type":"string"}},"version":123,"is_current":true,"created_at":123,"description":"\u003cstring>"},"response_type":"PromptResponse","links":[{"href":"/resource/{resource_id}","method":"GET","rel":"self","title":"Resource Details"},{"href":"/resource/{resource_id}/related","method":"GET","rel":"related","title":"Related Resources"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"0542e97d-7052-4e59-9bef-89d1819abbe6":{"description":"Request Validation Error","content":{"application/problem+json":{"schema":{"additionalProperties":false,"description":"Error response wrapper for problem details that can be returned directly from FastAPI.","properties":{"data":{"additionalProperties":true,"description":"Problem detail for validation errors.","properties":{"title":{"default":"Request Validation Error","title":"Title","type":"string","uniqueKey":"data.title","typeLabel":"string"},"status":{"default":422,"title":"Status","type":"integer","uniqueKey":"data.status","typeLabel":"integer"},"detail":{"default":"Request validation failed","title":"Detail","type":"string","uniqueKey":"data.detail","typeLabel":"string"},"instance":{"oneOf":[{"type":"string","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.0","typeLabel":"string"},{"type":"null","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.instance","typeLabel":"string | null"}},"title":"ValidationError","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"ValidationError · object"},"response_type":{"default":"ErrorResponse","description":"Always 'ErrorResponse' for error responses","examples":["ErrorResponse"],"title":"Response Type","type":"string","uniqueKey":"response_type","typeLabel":"string"}},"required":["data"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"title":"Request Validation Error","status":422,"detail":"Request validation failed","instance":"https://urlyourequest.com/path?query=value"},"response_type":"ErrorResponse"}}},"exampleType":"generated"}},"exampleType":"generated"},"0d477d27-2f2c-4d21-814a-0d3b3194a9e1":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"additionalProperties":false,"description":"Error response wrapper for problem details that can be returned directly from FastAPI.","properties":{"data":{"additionalProperties":true,"description":"Problem detail for authentication errors.","properties":{"title":{"default":"Unauthorized","title":"Title","type":"string","uniqueKey":"data.title","typeLabel":"string"},"status":{"default":401,"title":"Status","type":"integer","uniqueKey":"data.status","typeLabel":"integer"},"detail":{"default":"Authentication required","title":"Detail","type":"string","uniqueKey":"data.detail","typeLabel":"string"},"instance":{"oneOf":[{"type":"string","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.0","typeLabel":"string"},{"type":"null","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.instance","typeLabel":"string | null"}},"title":"UnauthorizedError","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"UnauthorizedError · object"},"response_type":{"default":"ErrorResponse","description":"Always 'ErrorResponse' for error responses","examples":["ErrorResponse"],"title":"Response Type","type":"string","uniqueKey":"response_type","typeLabel":"string"}},"required":["data"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"title":"Unauthorized","status":401,"detail":"Authentication required","instance":"https://urlyourequest.com/path?query=value"},"response_type":"ErrorResponse"}}},"exampleType":"generated"}},"exampleType":"generated"},"7da3f4a9-ab6f-4708-9b1a-9e8c7d2c9c27":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"additionalProperties":false,"description":"Error response wrapper for problem details that can be returned directly from FastAPI.","properties":{"data":{"additionalProperties":true,"description":"Problem detail for payment required errors.","properties":{"title":{"default":"Payment Required","title":"Title","type":"string","uniqueKey":"data.title","typeLabel":"string"},"status":{"default":402,"title":"Status","type":"integer","uniqueKey":"data.status","typeLabel":"integer"},"detail":{"default":"Payment required","title":"Detail","type":"string","uniqueKey":"data.detail","typeLabel":"string"},"instance":{"oneOf":[{"type":"string","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.0","typeLabel":"string"},{"type":"null","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.instance","typeLabel":"string | null"}},"title":"PaymentRequiredError","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"PaymentRequiredError · object"},"response_type":{"default":"ErrorResponse","description":"Always 'ErrorResponse' for error responses","examples":["ErrorResponse"],"title":"Response Type","type":"string","uniqueKey":"response_type","typeLabel":"string"}},"required":["data"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"title":"Payment Required","status":402,"detail":"Payment required","instance":"https://urlyourequest.com/path?query=value"},"response_type":"ErrorResponse"}}},"exampleType":"generated"}},"exampleType":"generated"},"7127e67b-813e-4546-be3b-a361ada8ae31":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"additionalProperties":false,"description":"Error response wrapper for problem details that can be returned directly from FastAPI.","properties":{"data":{"additionalProperties":true,"description":"Problem detail for authorization errors.","properties":{"title":{"default":"Forbidden","title":"Title","type":"string","uniqueKey":"data.title","typeLabel":"string"},"status":{"default":403,"title":"Status","type":"integer","uniqueKey":"data.status","typeLabel":"integer"},"detail":{"default":"Access forbidden","title":"Detail","type":"string","uniqueKey":"data.detail","typeLabel":"string"},"instance":{"oneOf":[{"type":"string","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.0","typeLabel":"string"},{"type":"null","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.instance","typeLabel":"string | null"}},"title":"ForbiddenError","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"ForbiddenError · object"},"response_type":{"default":"ErrorResponse","description":"Always 'ErrorResponse' for error responses","examples":["ErrorResponse"],"title":"Response Type","type":"string","uniqueKey":"response_type","typeLabel":"string"}},"required":["data"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"title":"Forbidden","status":403,"detail":"Access forbidden","instance":"https://urlyourequest.com/path?query=value"},"response_type":"ErrorResponse"}}},"exampleType":"generated"}},"exampleType":"generated"},"6bdbd1d7-cf01-47ef-8780-a7f95c588ba7":{"description":"Request Validation Error","content":{"application/problem+json":{"schema":{"additionalProperties":false,"description":"Error response wrapper for problem details that can be returned directly from FastAPI.","properties":{"data":{"additionalProperties":true,"description":"Problem detail for validation errors.","properties":{"title":{"default":"Request Validation Error","title":"Title","type":"string","uniqueKey":"data.title","typeLabel":"string"},"status":{"default":422,"title":"Status","type":"integer","uniqueKey":"data.status","typeLabel":"integer"},"detail":{"default":"Request validation failed","title":"Detail","type":"string","uniqueKey":"data.detail","typeLabel":"string"},"instance":{"oneOf":[{"type":"string","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.0","typeLabel":"string"},{"type":"null","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.instance","typeLabel":"string | null"}},"title":"ValidationError","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"ValidationError · object"},"response_type":{"default":"ErrorResponse","description":"Always 'ErrorResponse' for error responses","examples":["ErrorResponse"],"title":"Response Type","type":"string","uniqueKey":"response_type","typeLabel":"string"}},"required":["data"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"title":"Request Validation Error","status":422,"detail":"Request validation failed","instance":"https://urlyourequest.com/path?query=value"},"response_type":"ErrorResponse"}}},"exampleType":"generated"}},"exampleType":"generated"},"5c2ee04d-d9cc-4f32-a73f-e2c80270317a":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"additionalProperties":false,"description":"Error response wrapper for problem details that can be returned directly from FastAPI.","properties":{"data":{"additionalProperties":true,"description":"Problem detail for internal server errors.","properties":{"title":{"default":"Internal Server Error","title":"Title","type":"string","uniqueKey":"data.title","typeLabel":"string"},"status":{"default":500,"title":"Status","type":"integer","uniqueKey":"data.status","typeLabel":"integer"},"detail":{"default":"Internal server error","title":"Detail","type":"string","uniqueKey":"data.detail","typeLabel":"string"},"instance":{"oneOf":[{"type":"string","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.0","typeLabel":"string"},{"type":"null","title":"Instance","description":"A URI reference that identifies the specific occurrence of the problem","example":"https://urlyourequest.com/path?query=value","uniqueKey":"data.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.instance","typeLabel":"string | null"}},"title":"InternalServerError","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"InternalServerError · object"},"response_type":{"default":"ErrorResponse","description":"Always 'ErrorResponse' for error responses","examples":["ErrorResponse"],"title":"Response Type","type":"string","uniqueKey":"response_type","typeLabel":"string"}},"required":["data"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"title":"Internal Server Error","status":500,"detail":"Internal server error","instance":"https://urlyourequest.com/path?query=value"},"response_type":"ErrorResponse"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"738e06f2-f5c9-4a93-b073-5e6ca6cdef87":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API Key for external integrations (format: greetincs_...)","scopes":[]}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API Key for external integrations (format: greetincs_...)","scopes":[]},"schema":{"title":"X-API-Key","type":"string","description":"API Key for external integrations (format: greetincs_...)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi-web.json"},"subdomain":"hyperlaceeu","siteName":"GreetIncs API Documentation","title":"Create Prompt - GreetIncs API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-25T00:42:30.322Z","originalFileLocation":"api-reference/prompts/create-prompt.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new structured prompt (version 1).\">\u003cmeta data-mint-head name=\"application-name\" content=\"GreetIncs API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Prompt - GreetIncs API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new structured prompt (version 1).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GreetIncs API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.greetincs.com/api-reference/prompts/create-prompt\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hyperlaceeu.mintlify.site/_mintlify/api/og/v2?division=prompts\u0026amp;title=Create+Prompt\u0026amp;description=Create+a+new+structured+prompt+%28version+1%29.\u0026amp;theme=32693fe9d8a798b9a2f4b785\u0026amp;signature=0fe40dcf768f9b207631c2b2e0de7ecbee012471358c8271baf7489a6b1e1eb4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Prompt - GreetIncs API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new structured prompt (version 1).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hyperlaceeu.mintlify.site/_mintlify/api/og/v2?division=prompts\u0026amp;title=Create+Prompt\u0026amp;description=Create+a+new+structured+prompt+%28version+1%29.\u0026amp;theme=32693fe9d8a798b9a2f4b785\u0026amp;signature=0fe40dcf768f9b207631c2b2e0de7ecbee012471358c8271baf7489a6b1e1eb4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/hyperlaceeu/Cr7-jnpClqwjaXGi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GreetIncs API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6958d1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.greetincs.com/api-reference/prompts/create-prompt\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/prompts/create-prompt.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.greetincs.com/#organization\",\"name\":\"GreetIncs API Documentation\",\"url\":\"https://docs.greetincs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hyperlaceeu/yaT-mowZeypxgqLa/logo.svg?fit=max\u0026auto=format\u0026n=yaT-mowZeypxgqLa\u0026q=85\u0026s=53e0538af232f0a9a51c3f8c90e0cce7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.greetincs.com#website\",\"name\":\"GreetIncs API Documentation\",\"url\":\"https://docs.greetincs.com\",\"publisher\":{\"@id\":\"https://docs.greetincs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt#webpage\",\"url\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt\",\"name\":\"Create Prompt\",\"description\":\"Create a new structured prompt (version 1).\",\"dateModified\":\"2026-04-25T00:42:30.322Z\",\"isPartOf\":{\"@id\":\"https://docs.greetincs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"prompts\",\"item\":\"https://docs.greetincs.com/api-reference/prompts/list-prompts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Prompt\",\"item\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt#apireference\",\"headline\":\"Create Prompt\",\"name\":\"Create Prompt\",\"description\":\"Create a new structured prompt (version 1).\",\"url\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt\",\"mainEntityOfPage\":{\"@id\":\"https://docs.greetincs.com/api-reference/prompts/create-prompt#webpage\"},\"dateModified\":\"2026-04-25T00:42:30.322Z\",\"publisher\":{\"@id\":\"https://docs.greetincs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.greetincs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GreetIncs API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"GreetIncs API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/prompts/create-prompt.md","siteName":"GreetIncs API Documentation","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"Common","pages":[{"title":"Authentication","icon":"key","href":"/common/authentication"},{"title":"API Discovery","icon":"compass","href":"/common/api-discovery"}]},{"group":"health","pages":[{"title":"Health Check","deprecated":null,"version":null,"openapi":"/openapi-web.json get /health","href":"/api-reference/health/health-check"}]},{"group":"analyses","pages":[{"title":"List Analyses","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/","href":"/api-reference/analyses/list-analyses"},{"title":"Create Analysis","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/","href":"/api-reference/analyses/create-analysis"},{"title":"Get Analysis Description","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}","href":"/api-reference/analyses/get-analysis-description"},{"title":"Update Analysis","deprecated":null,"version":null,"openapi":"/openapi-web.json patch /v1/analyses/{analysis_id}","href":"/api-reference/analyses/update-analysis"},{"title":"Get Analysis Results","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}/results","href":"/api-reference/analyses/get-analysis-results"},{"title":"Export analysis results as CSV","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}/results.csv","href":"/api-reference/analyses/export-analysis-results-as-csv"},{"title":"Get Analysis Status","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}/status","href":"/api-reference/analyses/get-analysis-status"},{"title":"Run Analysis All","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/run","href":"/api-reference/analyses/run-analysis-all"},{"title":"Run Analysis Incomplete","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/run/incomplete","href":"/api-reference/analyses/run-analysis-incomplete"},{"title":"Run specific sub-analyses by ID [STUB]","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/run/subset","href":"/api-reference/analyses/run-specific-sub-analyses-by-id-[stub]"},{"title":"Cancel stuck sub-analyses [TEMPORARY]","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/reset-stuck","href":"/api-reference/analyses/cancel-stuck-sub-analyses-[temporary]"}]},{"group":"prompts","pages":[{"title":"List Prompts","description":"List latest versions of all prompts with pagination.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/","href":"/api-reference/prompts/list-prompts"},{"title":"Create Prompt","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/prompts/","href":"/api-reference/prompts/create-prompt"},{"title":"Get Prompt","description":"Get the latest version of a prompt by ID.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/{prompt_id}","href":"/api-reference/prompts/get-prompt"},{"title":"Update Prompt","deprecated":null,"version":null,"openapi":"/openapi-web.json put /v1/prompts/{prompt_id}","href":"/api-reference/prompts/update-prompt"},{"title":"Get Prompt Versions","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/{prompt_id}/versions","href":"/api-reference/prompts/get-prompt-versions"},{"title":"Get Prompt Version","description":"Get a specific version of a prompt.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/{prompt_id}/versions/{version}","href":"/api-reference/prompts/get-prompt-version"}]}]},{"tab":"Web API Reference","hidden":true,"groups":[{"group":"Overview","pages":[{"title":"Introduction","description":"Internal web API reference for the GreetIncs frontend.","icon":"browser","href":"/web-api-reference/introduction"}]},{"group":"health","pages":[{"title":"Health Check","description":null,"deprecated":null,"version":null,"openapi":"/openapi-web.json get /health","href":"/api-reference/health/health-check"}]},{"group":"analyses","pages":[{"title":"List Analyses","description":"List all analyses for the authenticated user with pagination (summary view).\n\nReturns minimal data: id, name, is_public, sub_analysis_count, and status.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/","href":"/api-reference/analyses/list-analyses"},{"title":"Create Analysis","description":"Create a new analysis with URLs and structured prompts.\n\nThis endpoint creates an analysis but does NOT automatically run it.\nUse POST /{id}/run to start processing after creation.\n\nAccepts either existing structured prompt IDs or new prompt definitions.\nYou must provide exactly one of these options.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/","href":"/api-reference/analyses/create-analysis"},{"title":"Get Analysis Description","description":"Get analysis description with URLs and prompts.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}","href":"/api-reference/analyses/get-analysis-description"},{"title":"Update Analysis","description":"Update an existing analysis.\n\nSupports updating: name, description, URLs (add), sub-analyses (remove),\nprompts (replace), and configuration.","deprecated":null,"version":null,"openapi":"/openapi-web.json patch /v1/analyses/{analysis_id}","href":"/api-reference/analyses/update-analysis"},{"title":"Get Analysis Results","description":"Get complete analysis with sub-analysis status information.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}/results","href":"/api-reference/analyses/get-analysis-results"},{"title":"Export analysis results as CSV","description":"Export the analysis results as CSV.\n\nOne row per sub-analysis. Per-prompt columns appear in the analysis'\ncanonical prompt order; `__argument` and `__sources` extras are emitted\nnext to their prompt's response column when the corresponding flag is set.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}/results.csv","href":"/api-reference/analyses/export-analysis-results-as-csv"},{"title":"Get Analysis Status","description":"Get analysis status with sub-analysis details.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/analyses/{analysis_id}/status","href":"/api-reference/analyses/get-analysis-status"},{"title":"Run Analysis All","description":"Run all sub-analyses.\n\nResets failed, problem, and stuck queued sub-analyses to pending,\nthen enqueues the analysis for processing.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/run","href":"/api-reference/analyses/run-analysis-all"},{"title":"Run Analysis Incomplete","description":"Run only incomplete sub-analyses.\n\nResets only failed sub-analyses to pending (technical errors retry).\nProblem sub-analyses (external issues) are left unchanged.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/run/incomplete","href":"/api-reference/analyses/run-analysis-incomplete"},{"title":"Run specific sub-analyses by ID [STUB]","description":"**Not yet implemented.** Will reset and run only the specified sub-analyses. Covers 'run one' (single ID) and 'run sample' (client picks IDs) use cases.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/run/subset","href":"/api-reference/analyses/run-specific-sub-analyses-by-id-[stub]"},{"title":"Cancel stuck sub-analyses [TEMPORARY]","description":"**TEMPORARY workaround for unreliable workers.** Marks all IN_PROGRESS sub-analyses as FAILED so the analysis is no longer stuck. Does not stop any workers that may still be processing — it only updates the database state. A proper solution requires worker heartbeats and supervisor-based stale-task detection.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/analyses/{analysis_id}/reset-stuck","href":"/api-reference/analyses/cancel-stuck-sub-analyses-[temporary]"}]},{"group":"prompts","pages":[{"title":"List Prompts","description":"List latest versions of all prompts with pagination.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/","href":"/api-reference/prompts/list-prompts"},{"title":"Create Prompt","deprecated":null,"version":null,"openapi":"/openapi-web.json post /v1/prompts/","href":"/api-reference/prompts/create-prompt"},{"title":"Get Prompt","description":"Get the latest version of a prompt by ID.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/{prompt_id}","href":"/api-reference/prompts/get-prompt"},{"title":"Update Prompt","description":"Update a prompt by creating a new version.\n\nAll fields are required - provide the complete new state.\nReturns 409 if the prompt was updated by another request.","deprecated":null,"version":null,"openapi":"/openapi-web.json put /v1/prompts/{prompt_id}","href":"/api-reference/prompts/update-prompt"},{"title":"Get Prompt Versions","description":"Get all versions of a prompt, newest first.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/{prompt_id}/versions","href":"/api-reference/prompts/get-prompt-versions"},{"title":"Get Prompt Version","description":"Get a specific version of a prompt.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /v1/prompts/{prompt_id}/versions/{version}","href":"/api-reference/prompts/get-prompt-version"}]},{"group":"web","pages":[{"title":"List Prompts","description":"List latest versions of all prompts with pagination.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/prompts/","href":"/api-reference/web/list-prompts"},{"title":"Create Prompt","description":"Create a new structured prompt (version 1).","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/prompts/","href":"/api-reference/web/create-prompt"},{"title":"Get Prompt","description":"Get the latest version of a prompt with all versions array.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/prompts/{prompt_id}","href":"/api-reference/web/get-prompt"},{"title":"Update Prompt","description":"Update a prompt by creating a new version.\n\nReturns 409 if the prompt was updated by another request.","deprecated":null,"version":null,"openapi":"/openapi-web.json put /web/prompts/{prompt_id}","href":"/api-reference/web/update-prompt"},{"title":"Get All Versions","description":"Get all versions of a prompt, newest first.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/prompts/{prompt_id}/versions","href":"/api-reference/web/get-all-versions"},{"title":"Get Prompt Version","description":"Get a specific version of a prompt.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/prompts/{prompt_id}/versions/{version}","href":"/api-reference/web/get-prompt-version"},{"title":"List Analyses","description":"List all analyses for the authenticated user with pagination (summary view).\n\nReturns minimal data: id, name, is_public, url_count, and status.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/analyses/","href":"/api-reference/web/list-analyses"},{"title":"Create Analysis","description":"Create a new analysis with URLs and structured prompts.\n\nThis endpoint creates an analysis but does NOT automatically run it.\nUse POST /{id}/run to start processing after creation.\n\nAccepts either existing structured prompt IDs or new prompt definitions.\nYou must provide exactly one of these options.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/analyses/","href":"/api-reference/web/create-analysis"},{"title":"Get Analysis Description","description":"Get analysis description with URLs and prompts.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/analyses/{analysis_id}","href":"/api-reference/web/get-analysis-description"},{"title":"Update Analysis","description":"Update an existing analysis.\n\nSupports updating: name, description, URLs (add), sub-analyses (remove),\nprompts (replace), and configuration.","deprecated":null,"version":null,"openapi":"/openapi-web.json patch /web/analyses/{analysis_id}","href":"/api-reference/web/update-analysis"},{"title":"Get Analysis Results","description":"Get complete analysis with sub-analysis status information and results.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/analyses/{analysis_id}/results","href":"/api-reference/web/get-analysis-results"},{"title":"Export analysis results as CSV","description":"Export the analysis results as CSV (one row per sub-analysis).","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/analyses/{analysis_id}/results.csv","href":"/api-reference/web/export-analysis-results-as-csv"},{"title":"Get Analysis Status","description":"Get analysis status with sub-analysis details.\n\nThis is the 'slim version' - same status info as /results but without the actual results.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/analyses/{analysis_id}/status","href":"/api-reference/web/get-analysis-status"},{"title":"Run Analysis All","description":"Run all sub-analyses.\n\nResets failed, problem, and stuck queued sub-analyses to pending,\nthen enqueues the analysis for processing.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/analyses/{analysis_id}/run","href":"/api-reference/web/run-analysis-all"},{"title":"Run Analysis Incomplete","description":"Run only incomplete sub-analyses.\n\nResets only failed sub-analyses to pending (technical errors retry).\nProblem sub-analyses (external issues) are left unchanged.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/analyses/{analysis_id}/run/incomplete","href":"/api-reference/web/run-analysis-incomplete"},{"title":"Run specific sub-analyses by ID [STUB]","description":"**Not yet implemented.** Will reset and run only the specified sub-analyses. Covers 'run one' (single ID) and 'run sample' (client picks IDs) use cases.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/analyses/{analysis_id}/run/subset","href":"/api-reference/web/run-specific-sub-analyses-by-id-[stub]"},{"title":"Cancel stuck sub-analyses [TEMPORARY]","description":"**TEMPORARY workaround for unreliable workers.** Marks all IN_PROGRESS sub-analyses as FAILED so the analysis is no longer stuck. Does not stop any workers that may still be processing — it only updates the database state. A proper solution requires worker heartbeats and supervisor-based stale-task detection.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/analyses/{analysis_id}/reset-stuck","href":"/api-reference/web/cancel-stuck-sub-analyses-[temporary]"},{"title":"Get Analysis Visibility","description":"Get the current sharing state of an analysis. Owner-only.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/analyses/{analysis_id}/visibility","href":"/api-reference/web/get-analysis-visibility"},{"title":"Set Analysis Visibility","description":"Set the sharing state of an analysis. Owner-only.\n\nSet is_public=true to make the analysis readable via the public endpoint.\nSet is_public=false to revoke public access.","deprecated":null,"version":null,"openapi":"/openapi-web.json put /web/analyses/{analysis_id}/visibility","href":"/api-reference/web/set-analysis-visibility"},{"title":"Get Profile","description":"Get current user profile.\n\nFetches from shadow DB (synced via webhooks).\nAutomatically falls back to Clerk API if user not in shadow DB yet.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/me","href":"/api-reference/web/get-profile"},{"title":"Create Api Key","description":"Create API key for authenticated user.\nCreates shadow user record if doesn't exist (fetching from Clerk API).","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/me/api-key","href":"/api-reference/web/create-api-key"},{"title":"Revoke Api Key","description":"Revoke API key for authenticated user.","deprecated":null,"version":null,"openapi":"/openapi-web.json delete /web/me/api-key","href":"/api-reference/web/revoke-api-key"},{"title":"Get Api Key Status","description":"Check if authenticated user has an API key.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/me/api-key/status","href":"/api-reference/web/get-api-key-status"},{"title":"Get Recent Results","description":"Get the last 10 analysis results for the current user.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/me/recent-results","href":"/api-reference/web/get-recent-results"},{"title":"Get Current Usage","description":"Return last 30 days usage summary and timeseries from sub_analysis data.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/me/usage/current","href":"/api-reference/web/get-current-usage"},{"title":"Create billing portal session","description":"Create a Stripe Billing Portal session for subscription management.","deprecated":null,"version":null,"openapi":"/openapi-web.json post /web/me/billing-portal","href":"/api-reference/web/create-billing-portal-session"},{"title":"Get screenshot URLs for all sub-analyses","description":"Retrieve URLs for screenshot images captured during analysis.\n\n **S3** storage: algorithmic public bucket URLs (``S3_EXTERNAL``).\n\n **Local** storage: paths from ``FileService.get_public_url`` (served under\n ``/static-datasets`` when the API runs with ``DEBUG_MODE``).","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/temp/analysis-screenshots/{analysis_id}","href":"/api-reference/web/get-screenshot-urls-for-all-sub-analyses"},{"title":"Check Domain Dns","description":"Check DNS presence for a hostname across three record types.\n\n- **is_registered**: NS records found for the apex domain\n- **has_website**: A or AAAA records found for the exact hostname\n- **has_mail**: MX records found for the exact hostname\n\nReturns 504 if any DNS query times out.","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/dns/{domain}","href":"/api-reference/web/check-domain-dns"}]},{"group":"web-public","pages":[{"title":"Get Public Analysis Results","description":"Read results for a publicly shared analysis.\n\nReturns 200 with full results when the owner has enabled sharing.\nReturns 404 when the analysis does not exist or is private (404-for-private pattern).","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/public/analyses/{analysis_id}","href":"/api-reference/web-public/get-public-analysis-results"},{"title":"Get Public Analysis Screenshots","description":"Retrieve screenshot URLs for a publicly shared analysis.\n\nReturns 200 with a map of sub-analysis IDs to screenshot URLs.\nReturns 404 when the analysis does not exist or is private (404-for-private pattern).","deprecated":null,"version":null,"openapi":"/openapi-web.json get /web/public/analyses/{analysis_id}/screenshots","href":"/api-reference/web-public/get-public-analysis-screenshots"}]}]}]},"basePath":"","title":"Create Prompt - GreetIncs API Documentation","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js","Markdown-0RkHcMOI.js","AssistantPageLink-DeJZCj9t.js","dist-DVqS175j.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}