On-page assist
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/onpage \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/onpage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/onpage"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)Stories
On-page assist
POST /v1/projects//articles//onpage runs the same on-page assist the story editor offers in the dashboard.
POST
/
v1
/
projects
/
{projectId}
/
articles
/
{articleId}
/
onpage
On-page assist
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/onpage \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/onpage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/articles/{articleId}/onpage"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)