DEV Community

Daruma
Daruma

Posted on Edited on

Managing Render services from an iPhone: what the Render API lets a mobile app do

Render's public API covers most of what you need to watch and operate services from a phone. While building Deploy Deck, an iPhone client for Render, I found that a mobile app can do all of the following with an API key alone.

What the API makes possible

  • List every service in a workspace, with its type and current deploy status.
  • Show the deploy history of a service: commit message, trigger (new commit, manual, rollback), and timing.
  • Read logs and filter them by type: app, build, or request.
  • Take action: trigger a deploy, clear the build cache and deploy, restart, suspend, resume, run a cron job now, or roll back to an earlier deploy.
  • Change the auto-deploy setting.

Things to know before you build on it

  1. An API key belongs to one workspace. To see another workspace, you need a key created there.
  2. Permissions matter. A "Read only" key can view status, deploys, and logs. Deploying or rolling back needs "Deploys: Run".
  3. Log lines can contain ANSI color codes, so strip them before showing the text.
  4. A rollback can turn auto-deploy off. It is worth telling the user, because the next push will not deploy until it is turned back on.

Keeping the key safe

The app stores the key in the iPhone Keychain and sends it only to api.render.com. There is no server in between and no analytics.


Deploy Deck is an independent app and is not affiliated with Render.

Drafted with AI assistance and reviewed by the author.

Top comments (0)