Notifications
Create a subscription
POST
/
notifications
/
subscriptions
cURL
curl --request POST \
--url https://backend.branch.flowengineering.com/notifications/subscriptions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'customer: <customer>' \
--data '
{
"branch_id": "<string>",
"entity_id": "<string>",
"project_id": "<string>",
"user_id": "<string>"
}
'import requests
url = "https://backend.branch.flowengineering.com/notifications/subscriptions"
payload = {
"branch_id": "<string>",
"entity_id": "<string>",
"project_id": "<string>",
"user_id": "<string>"
}
headers = {
"customer": "<customer>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
customer: '<customer>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
branch_id: '<string>',
entity_id: '<string>',
project_id: '<string>',
user_id: '<string>'
})
};
fetch('https://backend.branch.flowengineering.com/notifications/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));⌘I
cURL
curl --request POST \
--url https://backend.branch.flowengineering.com/notifications/subscriptions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'customer: <customer>' \
--data '
{
"branch_id": "<string>",
"entity_id": "<string>",
"project_id": "<string>",
"user_id": "<string>"
}
'import requests
url = "https://backend.branch.flowengineering.com/notifications/subscriptions"
payload = {
"branch_id": "<string>",
"entity_id": "<string>",
"project_id": "<string>",
"user_id": "<string>"
}
headers = {
"customer": "<customer>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
customer: '<customer>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
branch_id: '<string>',
entity_id: '<string>',
project_id: '<string>',
user_id: '<string>'
})
};
fetch('https://backend.branch.flowengineering.com/notifications/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));