Skip to content

API reference

API: Notifications

Markdown version

MethodPathWhat it doesScope
GET/v1/me/notification-preferencesEach event × channel for you: on or off, and whether your organization decides it—
PUT/v1/me/notification-preferencesTurn one event × channel on or off for yourself (never past your organization's lock) (web app only)—
GET/v1/me/settingsYour time zone and morning brief time—
PUT/v1/me/settingsSet your time zone and morning brief time (HH:MM, your time) (web app only)—
GET/v1/notificationsYour notifications (in-app), newest first, with the unread count (web app only)—
POST/v1/notifications/readMark notifications read (ids, or all) (web app only)—
GET/v1/settings/notification-policyThe organization's notification policy: events, channels, on by default and force offsettings:read
PUT/v1/settings/notification-policySet the organization's defaults and locks per event × channel (owners) (web app only)settings:write
PUT/v1/settings/slack-alertsThe Slack channel team-wide alerts go to (owners): run failed, data issues, webhook failing, approval waiting (web app only)settings:write

Examples

GET /v1/me/notification-preferences

Each event × channel for you: on or off, and whether your organization decides it

curl -s "https://api.closefinch.com/v1/me/notification-preferences" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/me/notification-preferences`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

GET /v1/me/settings

Your time zone and morning brief time

curl -s "https://api.closefinch.com/v1/me/settings" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/me/settings`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

GET /v1/settings/notification-policy

The organization's notification policy: events, channels, on by default and force off

curl -s "https://api.closefinch.com/v1/settings/notification-policy" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/settings/notification-policy`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

Request and response schemas: https://www.closefinch.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.

Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.