Create prompts
curl --request POST \
--url https://wisepim.com/api/public/v1/prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"prompt_text": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/prompts"
payload = {
"title": "<string>",
"description": "<string>",
"prompt_text": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', description: '<string>', prompt_text: '<string>'})
};
fetch('https://wisepim.com/api/public/v1/prompts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": true,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": true,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": "<unknown>",
"faq_max_questions": 123,
"faq_use_web_research": true,
"target_attribute_codes": "<unknown>",
"share_with_project": true,
"id": 123
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Create prompts
POST /prompts. Required scopes: prompts:write.
POST
/
api
/
public
/
v1
/
prompts
Create prompts
curl --request POST \
--url https://wisepim.com/api/public/v1/prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"prompt_text": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/prompts"
payload = {
"title": "<string>",
"description": "<string>",
"prompt_text": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', description: '<string>', prompt_text: '<string>'})
};
fetch('https://wisepim.com/api/public/v1/prompts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"title": "<string>",
"description": "<string>",
"prompt_type": "<string>",
"enrich_type": "<string>",
"prompt_text": "<string>",
"tone_of_voice": "<string>",
"custom_tone": "<string>",
"purpose": "<string>",
"industry": "<string>",
"point_of_view": "<string>",
"include_spec_table": true,
"title_max_length": 123,
"title_variants": 123,
"title_include_brand": true,
"target_size": "<string>",
"target_word_count": 123,
"faq_types": "<unknown>",
"faq_max_questions": 123,
"faq_use_web_research": true,
"target_attribute_codes": "<unknown>",
"share_with_project": true,
"id": 123
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Authorizations
Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.
Headers
Body
application/json
Response
Created

