List notifications
curl --request GET \
--url https://api.runaether.dev/user/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/user/notifications"
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/notifications', 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/notifications",
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/notifications"
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/notifications")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/user/notifications")
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{
"items": [
{
"created_at": "2023-11-07T05:31:56Z",
"dismissed_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "question_requested",
"occurred_at": "2023-11-07T05:31:56Z",
"payload": {
"input": {
"questions": [
{
"options": [
{
"label": "<string>",
"description": "<string>",
"preview": "<string>"
}
],
"question": "<string>",
"header": "<string>",
"id": "<string>",
"multi_select": true
}
]
},
"tool_id": "<string>"
},
"pr_url": "<string>",
"preview_text": "<string>",
"project_repo_url": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"status": "active",
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_name": "<string>"
}
],
"next_cursor": "<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>"
}
]
}{
"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>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Notifications
List notifications
Lists the caller’s notifications, newest first, a page at a time: the active ones unless status asks for others.
Use this tool when you need to:
- Show the caller’s notification inbox: questions and plans waiting on them, task results and failures, submitted PR reviews
- Page back through the notifications the caller has resolved or dismissed
Examples:
- GET /user/notifications?status=active&limit=50
- GET /user/notifications?status=archive&cursor=eyJvY2N1cnJlZF9hdCI6IjIwMjYtMTAtMjVUMTQ6MDM6MTEuNTJaIiwiaWQiOiI2ZjFjMmE5ZS0zYjdkLTRjNTUtOWEyZS0wZDhiMWY0ZTdjMjEifQ
Hints:
- status is optional: active (the default), resolved, dismissed, archive (resolved and dismissed) or all. limit is optional, 1 to 100, default 50. A status or limit outside its schema is refused with 422 before the list is read.
- Ordered by occurred_at, newest first. Feed next_cursor back through cursor for the next page; next_cursor is null on the last. A malformed cursor is refused with 400; a cursor only marks a position, so one read under another status is accepted.
- Each item’s kind (question_requested, plan_requested, task_response_ready, task_failed or pr_review_submitted) decides its payload; task carries the task’s id, name, project_id and workspace_id.
- Notifications are read by recipient alone, across organizations, with no current membership checked; a task archived or hidden for the caller keeps none.
- Use dismissNotification instead to dismiss one, resolveTaskNotifications instead to clear a task’s entries once it is viewed, and getWaitingTaskCount instead for the app icon badge.
- Any authenticated caller may read their own.
GET
/
user
/
notifications
List notifications
curl --request GET \
--url https://api.runaether.dev/user/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/user/notifications"
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/notifications', 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/notifications",
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/notifications"
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/notifications")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/user/notifications")
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{
"items": [
{
"created_at": "2023-11-07T05:31:56Z",
"dismissed_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "question_requested",
"occurred_at": "2023-11-07T05:31:56Z",
"payload": {
"input": {
"questions": [
{
"options": [
{
"label": "<string>",
"description": "<string>",
"preview": "<string>"
}
],
"question": "<string>",
"header": "<string>",
"id": "<string>",
"multi_select": true
}
]
},
"tool_id": "<string>"
},
"pr_url": "<string>",
"preview_text": "<string>",
"project_repo_url": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"status": "active",
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_name": "<string>"
}
],
"next_cursor": "<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>"
}
]
}{
"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>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}