Guide

Auto-complete commitments with Apple Shortcuts

Connect Apple Health to due.box so commitments are marked done automatically when you hit your goal.

Building the Shortcut from scratch on a real iPhone

Quick reference

The video walks through every step. Here's what you'll need to copy-paste along the way.

API endpoint

POST https://due.box/api/commitments/YOUR_ID/done

Headers

Authorization
Bearer YOUR_TOKEN
Content-Type
application/json

Where to find these

  • Commitment ID: click the #id badge next to any commitment title
  • API token: generate one at API Tokens
  • Full API docs: browse all endpoints at API Reference

Set up the automation

The Shortcut won't run on its own until you add an automation.

Open the Automation tab in Shortcuts and create a "Time of Day" trigger that runs your Shortcut before your deadline. For example, if your deadline is midnight, schedule it for 23:50.

Make sure Run Immediately is enabled so it doesn't ask for confirmation.

Tips

  • Schedule the automation 10 minutes before your deadline so it captures the full day.
  • This pattern works for any Apple Health metric: active calories, exercise minutes, distance walked, and more.
  • Focus Mode can block automations. If your iPhone is in Sleep or Do Not Disturb when the automation triggers, the API call may not go through. Since Apple Health data covers the last 24 hours, you can schedule the automation during the day (e.g. noon) instead of late at night to avoid Sleep Focus entirely.

Behind the scenes: an AI built this Shortcut

Read how Claude used Appium to tap around a real iPhone and build this Shortcut from scratch.

Ready to set it up?

Create a commitment, generate an API token, and build your Shortcut.