Invite a teammate
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/team \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"role": "<string>",
"tools": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', role: '<string>', tools: {}})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/team', 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}/team"
payload = {
"email": "<string>",
"role": "<string>",
"tools": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Team
Invite a teammate
Invite an admin or editor to a newsroom and choose which tools they can open.
POST
/
v1
/
projects
/
{projectId}
/
team
Invite a teammate
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/team \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"role": "<string>",
"tools": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', role: '<string>', tools: {}})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/team', 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}/team"
payload = {
"email": "<string>",
"role": "<string>",
"tools": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Send an invite. The owner or a super admin can do this.
Which tools they can open. Keys are membership, ads, newsletter, analytics, domains, and payments. Set a key to true to allow it.