Get notification preferences
curl --request GET \
--url https://api.runaether.dev/user/notification-preferences \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/user/notification-preferences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/user/notification-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/user/notification-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/user/notification-preferences"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/user/notification-preferences")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/user/notification-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pr_review_filter": "none",
"preferences": {
"permission_requested": {
"channels": [
"email"
]
},
"plan_requested": {
"channels": [
"email"
]
},
"pr_review_submitted": {
"channels": [
"email"
]
},
"question_requested": {
"channels": [
"email"
]
},
"task_failed": {
"channels": [
"email"
]
},
"task_response_ready": {
"channels": [
"email"
]
}
}
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Notifications
Get notification preferences
Reads the channels each kind of notification reaches the caller on, every kind present, and the filter deciding which PR reviews notify at all.
Use this tool when you need to:
- Show the caller’s notification settings
- Check whether a kind of notification reaches the caller by email, Slack direct message or push
Examples:
- GET /user/notification-preferences
Hints:
- Takes no parameters. preferences has every kind (question_requested, plan_requested, task_response_ready, task_failed, pr_review_submitted), each with its channels from email, slack_dm and push; a kind never set is stored and read with its default, email and push.
- pr_review_filter is none, changes_requested, approved or all (comment-only reviews too), approved until set: it decides which submitted PR reviews notify at all, and pr_review_submitted’s channels carry the ones it admits.
- Use updateNotificationPreferences instead to change channels or the filter.
- Any authenticated caller may read their own. It refuses nothing an authenticated caller may ask.
GET
/
user
/
notification-preferences
Get notification preferences
curl --request GET \
--url https://api.runaether.dev/user/notification-preferences \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/user/notification-preferences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/user/notification-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/user/notification-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/user/notification-preferences"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/user/notification-preferences")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/user/notification-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pr_review_filter": "none",
"preferences": {
"permission_requested": {
"channels": [
"email"
]
},
"plan_requested": {
"channels": [
"email"
]
},
"pr_review_submitted": {
"channels": [
"email"
]
},
"question_requested": {
"channels": [
"email"
]
},
"task_failed": {
"channels": [
"email"
]
},
"task_response_ready": {
"channels": [
"email"
]
}
}
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}