Features Pricing API Docs Sign In Get Started

API Documentation

The Pathwayful API is easy to use and free for all plans.

List Notifications

Returns all notifications for the authenticated user, ordered by most recent first.

GET https://api.pathwayful.com/notifications

Headers

  • AuthorizationREQUIRED STRING
    Bearer $TOKEN

Response body

[
  {
    "id": "uuid",
    "html": "<p>Your issue <strong>Dark mode</strong> was moved to <strong>In Progress</strong></p>",
    "txt": "Your issue Dark mode was moved to In Progress",
    "read_at": null,
    "created_at": "2024-01-15T10:30:00Z"
  }
]

Code Examples

curl -X GET "https://api.pathwayful.com/notifications" \
  -H "Authorization: Bearer $TOKEN"
// List all notifications
const response = await fetch('https://api.pathwayful.com/notifications', {
  headers: {
    'Authorization': 'Bearer ' + yourToken
  }
});

const notifications = await response.json();
console.log('Notifications:', notifications);
# List all notifications
import requests

headers = {
    'Authorization': f'Bearer {your_token}'
}

response = requests.get(
    'https://api.pathwayful.com/notifications',
    headers=headers
)

notifications = response.json()
print(f"Notifications: {notifications}")
// List all notifications
package main

import (
    "encoding/json"
    "fmt"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://api.pathwayful.com/notifications", nil)
    req.Header.Set("Authorization", "Bearer "+yourToken)

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    var notifications []map[string]interface{}
    json.NewDecoder(resp.Body).Decode(&notifications)
    fmt.Printf("Notifications: %v\n", notifications)
}
# List all notifications
require 'net/http'
require 'json'
require 'uri'

uri = URI('https://api.pathwayful.com/notifications')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri)
request['Authorization'] = "Bearer #{your_token}"

response = http.request(request)
notifications = JSON.parse(response.body)
puts "Notifications: #{notifications}"
<?php
// List all notifications
$ch = curl_init('https://api.pathwayful.com/notifications');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $yourToken
]);

$response = curl_exec($ch);
curl_close($ch);

$notifications = json_decode($response, true);
print_r($notifications);