Skip to main content

Example integrations

1. Automate session reminders

Send Discord reminders 15 minutes before every session using the Activity API and a scheduler.
const res = await fetch("https://api.planetaryapp.us/v1/workspace/14144149/sessions", {
  headers: { Authorization: "Bearer orbit_your_api_key" }
});
const upcoming = await res.json();
upcoming.sessions.forEach((session) => {
  if (new Date(session.startTime) - Date.now() < 900000) {
    discordWebhook.send(`Session ${session.name} starts soon!`);
  }
});

2. Export active member report

Pull members via the Members endpoint, enrich with Workspace intelligence, and save CSV for leaders.
Schedule exports off-peak to avoid hitting the rate limit (100 requests/min). Cache paginated results if you run multiple reports.

3. Publish wall announcement via API

Use the /wall endpoint to push brand-new announcements and pin them via admin APIs.
POST https://api.planetaryapp.us/v1/workspace/14144149/wall
Authorization: Bearer orbit_your_api_key
Content-Type: application/json

{
  "title": "Server Maintenance",
  "content": "We'll be upgrading the servers on Saturday at 2am UTC.",
  "pin": true
}