Draft a campaign from a brief
curl --request POST \
--url https://api.pineyard.ai/campaigns/draft-from-brief \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/campaigns/draft-from-brief', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/draft-from-brief"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"campaignType": "outbound",
"name": "<string>",
"description": "<string>",
"goal": "<string>",
"briefText": "<string>"
}AI assist
Draft a campaign from a brief
Draft a campaign (type/name/description/goal) from an uploaded or pasted brief
POST
/
campaigns
/
draft-from-brief
Draft a campaign from a brief
curl --request POST \
--url https://api.pineyard.ai/campaigns/draft-from-brief \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/campaigns/draft-from-brief', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/draft-from-brief"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"campaignType": "outbound",
"name": "<string>",
"description": "<string>",
"goal": "<string>",
"briefText": "<string>"
}
