Create a resource
curl --request POST \
--url https://aquila.attaxr.com/api/notification-channels \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"userId": "<string>",
"target": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', target: '<string>'})
};
fetch('https://aquila.attaxr.com/api/notification-channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/notification-channels"
payload = {
"userId": "<string>",
"target": "<string>"
}
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"userId": "<string>",
"type": "email",
"target": "<string>",
"enabled": true,
"createdAt": "<unknown>",
"updatedAt": "<unknown>",
"_id": "<string>",
"webhookUrl": "<string>",
"botToken": "<string>",
"chatId": "<string>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Notification Channels
Create a resource
Creates a row owned by the calling user; userId is injected server-side and never taken from the body.
POST
/
api
/
notification-channels
Create a resource
curl --request POST \
--url https://aquila.attaxr.com/api/notification-channels \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"userId": "<string>",
"target": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', target: '<string>'})
};
fetch('https://aquila.attaxr.com/api/notification-channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/notification-channels"
payload = {
"userId": "<string>",
"target": "<string>"
}
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"userId": "<string>",
"type": "email",
"target": "<string>",
"enabled": true,
"createdAt": "<unknown>",
"updatedAt": "<unknown>",
"_id": "<string>",
"webhookUrl": "<string>",
"botToken": "<string>",
"chatId": "<string>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
apiKeyCookieapiKeyHeaderbearerAuth
Browser session cookie set by Better Auth sign-in.
Body
application/json

