intend.do API endpoints:

intend.do API endpoints:

Get active data

Great for testing—returns the user’s name and username:

Gets the user’s list of goals, including each goal’s current top priority:

The item below returns most of the data used to render the user’s today page

Posting intentions/outcomes

Add new intention(s)

Post outcomes

New-tab-page extension endpoints

These endpoints were made for the New Tab Page extension and they therefore return the ntp json format:
{nexa: {/* see format here */}, colors, goalName, darkTheme, remainingcount, remainingDenominator}

Get next action

Returns the current next action with details, or indicates if there are no intentions set.

Complete a specific intention

(A zid is an id for an intention or outcome—any such item. You can get the zid from newtabpage.json or today/full.json or today/core.json)

Mark a specific intention as “not today”

Enter “now” mode

Both of these put the system into “now” mode (like the now page) where when you complete the current intention it shows empty space instead of whatever’s next on the list. This mostly affects what the ntp data returns.

Move an intention

Pick a random item and set it as the next action

Append to an intention

Past data

Retrieve past entries/days

Retrieve weekly reviews

There are two endpoints here, one of which shows what the app presents to you when you’re writing your remarks, and the other of which shows you the remarks themselves. Let us know if you want monthly/quarterly/yearly reviews here!


Timer

Creating new work blocks (‘dur’, short for duration)

These two old endpoints both return {sparePomos: n, spareDurs: […]}

The endpoints below control the actual timer itself. IMPORTANT: Note that the timer ticking logic is handled by the frontend on Intend, so while this system can let you start or stop pomodoros with a button, the actual tallying of pomodoros won’t occur unless you have your today page or timer page open somewhere! Similarly, being in continuous/automatic mode will only cause the timer to continue if a tab is open.

All of them return the timer object, which looks like (click to view)

Get current timer

Start pomodoro

Start break

Start hourglass timer

Pause timer

Unpause timer

Cancel timer

Custom timer update