Skip to main content
POST
/
{brand_id}
/
prompts
Create Prompt
curl --request POST \
  --url https://api.scrunchai.com/v1/{brand_id}/prompts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>",
  "stage": "Advice",
  "persona_id": 123,
  "tags": [],
  "platforms": []
}
'
{
  "id": 123,
  "text": "<string>",
  "stage": "Advice",
  "persona_id": 123,
  "platforms": [
    "chatgpt"
  ],
  "tags": [
    "<string>"
  ],
  "topics": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

brand_id
integer
required

Body

application/json
text
string
required
stage
enum<string>
required
Available options:
Advice,
Awareness,
Evaluation,
Comparison,
Other
persona_id
integer | null
tags
string[]
platforms
enum<string>[]
Available options:
chatgpt,
claude,
google_ai_overviews,
perplexity,
meta,
google_ai_mode,
google_gemini,
copilot

Response

Successful Response

id
integer
required
text
string
required
stage
enum<string>
required
Available options:
Advice,
Awareness,
Evaluation,
Comparison,
Other
persona_id
integer | null
required
platforms
enum<string>[]
required
Available options:
chatgpt,
claude,
google_ai_overviews,
perplexity,
meta,
google_ai_mode,
google_gemini,
copilot
tags
string[]
required
topics
string[]
required
created_at
string<date-time>
required