Suggest prompts
curl --request POST \
--url https://api.seomator.com/v1/projects/{id}/prompts/suggestions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"branded": false,
"topicId": "<string>",
"count": 5
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({branded: false, topicId: '<string>', count: 5})
};
fetch('https://api.seomator.com/v1/projects/{id}/prompts/suggestions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.seomator.com/v1/projects/{id}/prompts/suggestions"
payload = {
"branded": False,
"topicId": "<string>",
"count": 5
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"suggestions": [
"<string>"
]
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}Suggest prompts
Writes new prompt texts for one topic, intent and branding with AI, without saving them. Branding is checked against the own brand, and texts that repeat a prompt of the project are left out, so fewer than count can come back. Costs no credits.
POST
/
v1
/
projects
/
{id}
/
prompts
/
suggestions
Suggest prompts
curl --request POST \
--url https://api.seomator.com/v1/projects/{id}/prompts/suggestions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"branded": false,
"topicId": "<string>",
"count": 5
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({branded: false, topicId: '<string>', count: 5})
};
fetch('https://api.seomator.com/v1/projects/{id}/prompts/suggestions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.seomator.com/v1/projects/{id}/prompts/suggestions"
payload = {
"branded": False,
"topicId": "<string>",
"count": 5
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"suggestions": [
"<string>"
]
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}Authorizations
Path Parameters
Project id (proj_…) or slug (the domain with dots as dashes).
Body
application/json