Heroku REST API
Cloud platform API for deploying and managing applications
Heroku is a cloud platform that enables developers to build, run, and operate applications entirely in the cloud. The Heroku Platform API allows programmatic access to manage apps, dynos, add-ons, builds, releases, and other platform resources. Developers use this API to automate deployments, scale applications, manage configurations, and integrate Heroku into their CI/CD pipelines.
https://api.heroku.com
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /apps | List all applications accessible to the authenticated user |
| POST | /apps | Create a new application with specified configuration |
| GET | /apps/{app_id_or_name} | Retrieve details about a specific application |
| PATCH | /apps/{app_id_or_name} | Update application configuration and settings |
| DELETE | /apps/{app_id_or_name} | Delete an application and all associated resources |
| GET | /apps/{app_id_or_name}/dynos | List all dynos (containers) running for an application |
| POST | /apps/{app_id_or_name}/dynos | Create a new one-off dyno to run a command |
| POST | /apps/{app_id_or_name}/formation | Scale application dynos by changing formation |
| GET | /apps/{app_id_or_name}/config-vars | Retrieve all environment variables for an application |
| PATCH | /apps/{app_id_or_name}/config-vars | Update environment variables for an application |
| GET | /apps/{app_id_or_name}/releases | List all releases for an application |
| POST | /apps/{app_id_or_name}/builds | Create a new build from source code URL |
| GET | /apps/{app_id_or_name}/addons | List all add-ons provisioned for an application |
| POST | /apps/{app_id_or_name}/addons | Provision a new add-on for an application |
| GET | /apps/{app_id_or_name}/logs | Stream application logs in real-time |
Sponsor this page
AvailableReach developers actively building with Heroku. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
curl -X GET https://api.heroku.com/apps \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/vnd.heroku+json; version=3"
Use Heroku from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for Heroku. Paste your Heroku API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Heroku directly with your credentials — no local install, works on mobile.
deploy_application
Deploy a new version of an application from a Git repository or source tarball URL
scale_dynos
Scale application dynos up or down by modifying the formation (web, worker, etc.)
manage_config_vars
Read, update, or delete environment variables for applications
provision_addon
Provision and configure add-ons like databases, caching, monitoring, and logging services
query_logs
Retrieve and search application logs for debugging and monitoring purposes
Connect in 60 seconds
Paste your Heroku key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect Heroku to your AI →