Using the TWFX API to see your recent comments

Posted by: Ed Hungerford Date Posted: November 20, 2025
Back to Case Studies

Issue

The TeamworkFX search is pretty good, but its algorithm is also comprehensive and sometimes unwieldy to sort.  I wanted a way to search my own comments for information I may have forgotten that doesn’t rely on going back through my email inbox.

Solution

Every FXer has an API key to TWFX. If we plug this in to a cURL request, we can hit various points of the API and pull our own comments.

It’s not quite as straightforward as it sounds, though. In order to pull a single comment, the ID of the parent todo is also needed, meaning if we want to pull every comment we’ve made, we also need to know every todoId associated with those comments. This is obviously a lot of data to be pulling, so I decided to break it down.

  1. I wanted to encourage the user to choose a client to narrow down their search. This will reduce the overall amount of todos that need to be pulled.
  2. However, I imagine that I’ll sometimes want to search through my own comments regardless of clients, so if no client was selected, I decided to only pull the first 100.

However, even this breakdown requires a little extra work. Because the client list does not contian any information about todos, and the todo list doesn’t contain the pretty name of the client; in order to pull all of the clients I’ve been responsible for, I would need to pull both:

  1. Every client
  2. Every todo I’ve been responsible for

And match them together.

After making that happen, I would then also need to do one more cURL request to get all of my comments associated with the client (if selected), or just my last 100 comments (if no clients selected).

After putting that all together, I had Cursor style it and add a loading animation (since it takes a few seconds to load all of those cURL requests).

Achievement

Used Cursor to assist in creating a front-end for searching my own previous TWFX comments.

Snippet/Screenshot/Link