Heroku Dyno API
The Dyno API from Heroku — 5 operation(s) for dyno.
The Dyno API from Heroku — 5 operation(s) for dyno.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/heroku:heroku-dyno-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Heroku Platform Dyno API
version: '3'
description: The platform API empowers developers to automate, extend and combine Heroku with other services. Converted mechanically from the provider-published JSON Hyper-Schema at https://api.heroku.com/schema.
contact:
name: Heroku
url: https://devcenter.heroku.com/articles/platform-api-reference
servers:
- url: https://api.heroku.com
security:
- bearerAuth: []
tags:
- name: Dyno
paths:
/apps/{app_identity}/dynos:
post:
operationId: dynoCreate
summary: Create
description: Create a new dyno.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: create
x-source: https://api.heroku.com/schema#/definitions/dyno/links
requestBody:
content:
application/json:
schema:
properties:
attach:
$ref: '#/components/schemas/dyno/definitions/attach'
command:
$ref: '#/components/schemas/dyno/definitions/command'
env:
$ref: '#/components/schemas/dyno/definitions/env'
force_no_tty:
$ref: '#/components/schemas/dyno/definitions/force_no_tty'
size:
$ref: '#/components/schemas/dyno/definitions/size'
type:
$ref: '#/components/schemas/dyno/definitions/type'
time_to_live:
$ref: '#/components/schemas/dyno/definitions/time_to_live'
required:
- command
type:
- object
responses:
'201':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/dyno'
delete:
operationId: dynoRestartAll
summary: Restart all
description: Restart all dynos.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: empty
x-source: https://api.heroku.com/schema#/definitions/dyno/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
additionalProperties: false
type:
- object
get:
operationId: dynoList
summary: List
description: List existing dynos.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: instances
x-source: https://api.heroku.com/schema#/definitions/dyno/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/dyno'
type:
- array
/apps/{app_identity}/dynos/{dyno_identity}:
delete:
operationId: dynoRestart
summary: Restart
description: Restart dyno.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
- name: dyno_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: empty
x-source: https://api.heroku.com/schema#/definitions/dyno/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
additionalProperties: false
type:
- object
get:
operationId: dynoInfo
summary: Info
description: Info for existing dyno.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
- name: dyno_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: self
x-source: https://api.heroku.com/schema#/definitions/dyno/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/dyno'
/apps/{app_identity}/formations/{dyno_formation_type}:
delete:
operationId: dynoRestartFormation
summary: Restart formation
description: Restart dynos of a given formation type.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
- name: dyno_formation_type
in: path
required: true
schema:
type: string
x-hyper-schema-rel: empty
x-source: https://api.heroku.com/schema#/definitions/dyno/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
additionalProperties: false
type:
- object
/apps/{app_identity}/dynos/{dyno_identity}/actions/stop:
post:
operationId: dynoStop
summary: Stop
description: Stop dyno.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
- name: dyno_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: empty
x-source: https://api.heroku.com/schema#/definitions/dyno/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
additionalProperties: false
type:
- object
/apps/{app_identity}/formations/{dyno_formation_type}/actions/stop:
post:
operationId: dynoStopFormation
summary: Stop formation
description: Stop dynos of a given formation type.
tags:
- Dyno
parameters:
- name: app_identity
in: path
required: true
schema:
type: string
- name: dyno_formation_type
in: path
required: true
schema:
type: string
x-hyper-schema-rel: empty
x-source: https://api.heroku.com/schema#/definitions/dyno/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
additionalProperties: false
type:
- object
components:
schemas:
dyno:
description: 'Dynos encapsulate running processes of an app on Heroku. Detailed information about dyno sizes can be found at: [https://devcenter.heroku.com/articles/dyno-types](https://devcenter.heroku.com/articles/dyno-types).'
$schema: http://json-schema.org/draft-04/hyper-schema
stability: production
strictProperties: true
title: Heroku Platform API - Dyno
type:
- object
definitions:
attach:
description: whether to stream output or not
example: true
readOnly: false
type:
- boolean
attach_url:
description: a URL to stream output from for attached processes or null for non-attached processes
example: rendezvous://rendezvous.runtime.heroku.com:5000/{rendezvous-id}
readOnly: true
type:
- string
- 'null'
command:
description: command used to start this process
example: bash
readOnly: false
type:
- string
created_at:
description: when dyno was created
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
env:
additionalProperties: false
description: custom environment to add to the dyno config vars
example:
COLUMNS: '80'
LINES: '24'
patternProperties:
^\w+$:
type:
- string
readOnly: false
strictProperties: true
type:
- object
id:
description: unique identifier of this dyno
example: 01234567-89ab-cdef-0123-456789abcdef
format: uuid
readOnly: true
type:
- string
identity:
anyOf:
- $ref: '#/components/schemas/dyno/definitions/id'
- $ref: '#/components/schemas/dyno/definitions/name'
name:
description: the name of this process on this dyno
example: run.1
readOnly: true
type:
- string
formation_type:
description: the formation type of this process on this dyno
example: run
readOnly: true
type:
- string
force_no_tty:
description: force an attached one-off dyno to not run in a tty
example: null
readOnly: false
type:
- boolean
- 'null'
size:
description: dyno size
example: standard-1X
readOnly: false
type:
- string
state:
description: 'current status of process (either: crashed, down, idle, starting, or up)'
example: up
readOnly: true
type:
- string
type:
description: type of process
example: run
readOnly: false
type:
- string
time_to_live:
description: seconds until dyno expires, after which it will soon be killed, max 86400 seconds (24 hours)
example: 1800
readOnly: false
type:
- integer
updated_at:
description: when process last changed state
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
properties:
attach_url:
$ref: '#/components/schemas/dyno/definitions/attach_url'
command:
$ref: '#/components/schemas/dyno/definitions/command'
created_at:
$ref: '#/components/schemas/dyno/definitions/created_at'
id:
$ref: '#/components/schemas/dyno/definitions/id'
name:
$ref: '#/components/schemas/dyno/definitions/name'
release:
description: app release of the dyno
properties:
id:
$ref: '#/components/schemas/release/definitions/id'
version:
$ref: '#/components/schemas/release/definitions/version'
strictProperties: true
type:
- object
app:
description: app formation belongs to
properties:
name:
$ref: '#/components/schemas/app/definitions/name'
id:
$ref: '#/components/schemas/app/definitions/id'
type:
- object
size:
$ref: '#/components/schemas/dyno/definitions/size'
state:
$ref: '#/components/schemas/dyno/definitions/state'
type:
$ref: '#/components/schemas/dyno/definitions/type'
updated_at:
$ref: '#/components/schemas/dyno/definitions/updated_at'
app:
description: An app represents the program that you would like to deploy and run on Heroku.
$schema: http://json-schema.org/draft-04/hyper-schema
stability: production
strictProperties: true
title: Heroku Platform API - App
type:
- object
definitions:
archived_at:
description: when app was archived
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- 'null'
- string
buildpack_provided_description:
description: description from buildpack of app
example: Ruby/Rack
readOnly: true
type:
- 'null'
- string
created_at:
description: when app was created
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
generation:
description: Generation of the Heroku platform for this app
readOnly: true
type:
- object
properties:
id:
description: unique identifier of the generation of the Heroku platform for this app
example: 01234567-89ab-cdef-0123-456789abcdef
format: uuid
readOnly: true
type:
- string
name:
description: unique name of the generation of the Heroku platform for this app
example: cedar
readOnly: true
type:
- string
git_url:
description: git repo URL of app
example: https://git.heroku.com/example.git
pattern: ^https://git\.heroku\.com/[a-z][a-z0-9-]{2,29}\.git$
readOnly: true
type:
- string
id:
description: unique identifier of app
example: 01234567-89ab-cdef-0123-456789abcdef
format: uuid
readOnly: true
type:
- string
identity:
anyOf:
- $ref: '#/components/schemas/app/definitions/id'
- $ref: '#/components/schemas/app/definitions/name'
maintenance:
default: false
description: maintenance status of app
example: false
readOnly: false
type:
- boolean
name:
description: unique name of app
example: example
pattern: ^[a-z][a-z0-9-]{1,28}[a-z0-9]$
readOnly: false
type:
- string
released_at:
default: null
description: when app was released
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- 'null'
- string
repo_size:
default: null
description: git repo size in bytes of app
example: 0
readOnly: true
type:
- integer
- 'null'
slug_size:
default: null
description: slug size in bytes of app
example: 0
readOnly: true
type:
- integer
- 'null'
updated_at:
description: when app was updated
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
web_url:
description: web URL of app
example: https://example.herokuapp.com/
format: uri
pattern: ^https?://[a-z][a-z0-9-]{3,43}\.herokuapp\.com/$
readOnly: true
type:
- 'null'
- string
acm:
description: ACM status of this app
default: false
example: false
readOnly: true
type:
- boolean
properties:
acm:
$ref: '#/components/schemas/app/definitions/acm'
archived_at:
$ref: '#/components/schemas/app/definitions/archived_at'
buildpack_provided_description:
$ref: '#/components/schemas/app/definitions/buildpack_provided_description'
build_stack:
description: identity of the stack that will be used for new builds
properties:
id:
$ref: '#/components/schemas/stack/definitions/id'
name:
$ref: '#/components/schemas/stack/definitions/name'
strictProperties: true
type:
- object
created_at:
$ref: '#/components/schemas/app/definitions/created_at'
generation:
$ref: '#/components/schemas/app/definitions/generation'
git_url:
$ref: '#/components/schemas/app/definitions/git_url'
id:
$ref: '#/components/schemas/app/definitions/id'
internal_routing:
$ref: '#/components/schemas/team-app/definitions/internal_routing'
maintenance:
$ref: '#/components/schemas/app/definitions/maintenance'
name:
$ref: '#/components/schemas/app/definitions/name'
owner:
description: identity of app owner
properties:
email:
$ref: '#/components/schemas/account/definitions/email'
id:
$ref: '#/components/schemas/account/definitions/id'
strictProperties: true
type:
- object
organization:
description: identity of team
properties:
id:
$ref: '#/components/schemas/team/definitions/id'
name:
$ref: '#/components/schemas/team/definitions/name'
type:
- 'null'
- object
team:
description: identity of team
properties:
id:
$ref: '#/components/schemas/team/definitions/id'
name:
$ref: '#/components/schemas/team/definitions/name'
type:
- 'null'
- object
region:
description: identity of app region
properties:
id:
$ref: '#/components/schemas/region/definitions/id'
name:
$ref: '#/components/schemas/region/definitions/name'
strictProperties: true
type:
- object
released_at:
$ref: '#/components/schemas/app/definitions/released_at'
repo_size:
$ref: '#/components/schemas/app/definitions/repo_size'
slug_size:
$ref: '#/components/schemas/app/definitions/slug_size'
space:
description: identity of space
properties:
id:
$ref: '#/components/schemas/space/definitions/id'
name:
$ref: '#/components/schemas/space/definitions/name'
shield:
$ref: '#/components/schemas/space/definitions/shield'
type:
- 'null'
- object
stack:
description: identity of app stack
properties:
id:
$ref: '#/components/schemas/stack/definitions/id'
name:
$ref: '#/components/schemas/stack/definitions/name'
strictProperties: true
type:
- object
updated_at:
$ref: '#/components/schemas/app/definitions/updated_at'
web_url:
$ref: '#/components/schemas/app/definitions/web_url'
release:
description: A release represents a combination of code, config vars and add-ons for an app on Heroku.
$schema: http://json-schema.org/draft-04/hyper-schema
stability: production
strictProperties: true
title: Heroku Platform API - Release
type:
- object
definitions:
artifact:
description: a build artifact for the release
properties:
type:
description: type of artifact
example: slug
type:
- string
id:
anyOf:
- $ref: '#/components/schemas/slug/definitions/id'
- $ref: '#/components/schemas/oci-image/definitions/id'
readOnly: true
type:
- object
created_at:
description: when release was created
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
description:
description: description of changes in this release
example: Added new feature
readOnly: true
type:
- string
status:
description: current status of the release
enum:
- failed
- pending
- succeeded
- expired
example: succeeded
readOnly: true
type:
- string
id:
description: unique identifier of release
example: 01234567-89ab-cdef-0123-456789abcdef
format: uuid
readOnly: true
type:
- string
identity:
anyOf:
- $ref: '#/components/schemas/release/definitions/id'
- $ref: '#/components/schemas/release/definitions/version'
updated_at:
description: when release was updated
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
version:
description: unique version assigned to the release
example: 11
readOnly: true
type:
- integer
current:
description: indicates this release as being the current one for the app
example: true
readOnly: true
type:
- boolean
output_stream_url:
description: Release command output will be available from this URL as a stream. The stream is available as either `text/plain` or `text/event-stream`. Clients should be prepared to handle disconnects and can resume the stream by sending a `Range` header (for `text/plain`) or a `Last-Event-Id` header (for `text/event-stream`).
example: https://release-output.heroku.com/streams/01234567-89ab-cdef-0123-456789abcdef
readOnly: true
type:
- string
- 'null'
eligible_for_rollback:
description: indicates if this release is eligible for rollback
example: true
readOnly: true
type:
- boolean
properties:
addon_plan_names:
description: add-on plans installed on the app for this release
type:
- array
items:
$ref: '#/components/schemas/plan/definitions/name'
artifacts:
description: build artifacts for the release
type:
- array
items:
$ref: '#/components/schemas/release/definitions/artifact'
app:
description: app involved in the release
properties:
name:
$ref: '#/components/schemas/app/definitions/name'
id:
$ref: '#/components/schemas/app/definitions/id'
type:
- object
created_at:
$ref: '#/components/schemas/release/definitions/created_at'
description:
$ref: '#/components/schemas/release/definitions/description'
id:
$ref: '#/components/schemas/release/definitions/id'
updated_at:
$ref: '#/components/schemas/release/definitions/updated_at'
slug:
description: slug running in this release
properties:
id:
$ref: '#/components/schemas/slug/definitions/id'
strictProperties: true
type:
- object
- 'null'
status:
$ref: '#/components/schemas/release/definitions/status'
user:
description: user that created the release
properties:
id:
$ref: '#/components/schemas/account/definitions/id'
email:
$ref: '#/components/schemas/account/definitions/email'
strictProperties: true
type:
- object
version:
$ref: '#/components/schemas/release/definitions/version'
current:
$ref: '#/components/schemas/release/definitions/current'
output_stream_url:
$ref: '#/components/schemas/release/definitions/output_stream_url'
eligible_for_rollback:
$ref: '#/components/schemas/release/definitions/eligible_for_rollback'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'OAuth access token or API key (see https://devcenter.heroku.com/articles/platform-api-reference#authentication). Requests must send Accept: application/vnd.heroku+json; version=3.'
x-generated-from: json-hyper-schema
x-source: https://api.heroku.com/schema
x-generated: '2026-11-25'