Open the billing portal
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/billing/portal \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/billing/portal', 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}/billing/portal"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"url": "<string>"
}Billing
Open the billing portal
Open the billing portal for the account that owns the newsroom.
POST
/
v1
/
projects
/
{projectId}
/
billing
/
portal
Open the billing portal
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/billing/portal \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-news.app/v1/projects/{projectId}/billing/portal', 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}/billing/portal"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"url": "<string>"
}