Skip to main content
POST
/
prod
/
prompts
Create Opt-in Prompt
curl --request POST \
  --url https://api.aimtell.com/prod/prompts \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization-Api-Key: <api-key>' \
  --data '
{
  "idSite": "<string>",
  "name": "<string>",
  "type": 123
}
'
{
  "result": "success",
  "message": "Succesfully added prompt.",
  "id": 1234
}

Authorizations

X-Authorization-Api-Key
string
header
default:""
required

Body

application/json
idSite
string
required

Website ID

name
string

Prompt Name

type
integer<int32>

top left drop down prompt = 1 , middle rectangle prompt = 3

Response

200

result
string
Example:

"success"

message
string
Example:

"Succesfully added prompt."

id
integer
default:0
Example:

1234