Heroku Config Vars API

Environment configuration variables

GitHub OpenAPI
Business capability
Configuration & Secrets Management BC-4210.60

Operations 5

GET /apps/{app_id_or_name}/config-vars Get config vars #
PATCH /apps/{app_id_or_name}/config-vars Update config vars #
GET /apps/{app_identity}/config-vars Info for App #
PATCH /apps/{app_identity}/config-vars Update #
GET /apps/{app_identity}/releases/{release_identity}/config-vars Info for App Release #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/heroku:heroku-config-vars-api"
All apis
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.

Get an API 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 Specification

heroku-config-vars-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Config Vars API
  version: '3'
  description: 'Operations tagged Config Vars across 2 of this provider''s published API definitions: heroku-platform-api.yml, heroku-platform-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.heroku.com
  description: Heroku Platform API
tags:
- name: Config Vars
  description: Environment configuration variables
paths:
  /apps/{app_id_or_name}/config-vars:
    get:
      operationId: getConfigVars
      summary: Get config vars
      description: Get config vars for an app.
      tags:
      - Config Vars
      parameters:
      - $ref: '#/components/parameters/appIdOrName'
      responses:
        '200':
          description: Config vars
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
      - BearerAuth: []
    patch:
      operationId: updateConfigVars
      summary: Update config vars
      description: Update config vars for an app. Set a value to null to remove it.
      tags:
      - Config Vars
      parameters:
      - $ref: '#/components/parameters/appIdOrName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties:
                type: string
                nullable: true
      responses:
        '200':
          description: Updated config vars
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
      - BearerAuth: []
    servers:
    - url: https://api.heroku.com
      description: Heroku Platform API
  /apps/{app_identity}/config-vars:
    get:
      operationId: configVarInfoForApp
      summary: Info for App
      description: Get config-vars for app.
      tags:
      - Config Vars
      parameters:
      - name: app_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/config-var/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/config-var/definitions/config_vars'
      security:
      - bearerAuth: []
    patch:
      operationId: configVarUpdate
      summary: Update
      description: Update config-vars for app. You can update existing config-vars by setting them again, and remove by setting it to `null`.
      tags:
      - Config Vars
      parameters:
      - name: app_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: update
      x-source: https://api.heroku.com/schema#/definitions/config-var/links
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              description: hash of config changes – update values or delete by seting it to `null`
              example:
                FOO: bar
                BAZ: qux
              patternProperties:
                ^\w+$:
                  type:
                  - string
                  - 'null'
              type:
              - object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/config-var/definitions/config_vars'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.heroku.com
  /apps/{app_identity}/releases/{release_identity}/config-vars:
    get:
      operationId: configVarInfoForAppRelease
      summary: Info for App Release
      description: Get config-vars for a release.
      tags:
      - Config Vars
      parameters:
      - name: app_identity
        in: path
        required: true
        schema:
          type: string
      - name: release_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/config-var/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/config-var/definitions/config_vars'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.heroku.com
components:
  parameters:
    appIdOrName:
      name: app_id_or_name
      in: path
      required: true
      schema:
        type: string
      description: App ID (UUID) or app name
  schemas:
    config-var:
      description: Config Vars allow you to manage the configuration information provided to an app on Heroku.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Config Vars
      type:
      - object
      definitions:
        config_vars:
          additionalProperties: false
          description: hash of config vars
          example:
            FOO: bar
            BAZ: qux
          patternProperties:
            ^\w+$:
              type:
              - string
              - 'null'
          type:
          - object
      example:
        FOO: bar
        BAZ: qux
      patternProperties:
        ^\w+$:
          type:
          - string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Heroku API key or OAuth token
    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-refined-from:
- heroku-platform-api.yml
- heroku-platform-api-openapi.yml