Create the free domain
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/domains/free \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/domains/free', 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}/domains/free"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"free": {},
"message": "<string>"
}Domains
Create the free domain
Create the free address for a newsroom. Calling it again returns the one that already exists.
POST
/
v1
/
projects
/
{projectId}
/
domains
/
free
Create the free domain
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/domains/free \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/domains/free', 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}/domains/free"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"free": {},
"message": "<string>"
}