Heroku OCI Image API

The OCI Image API from Heroku — 2 operation(s) for oci image.

GitHub OpenAPI

Operations 2

GET /apps/{app_identity}/oci-images/{oci-image_identity} Info #
POST /apps/{app_identity}/oci-images Create #

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-oci-image-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-oci-image-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform OCI Image 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: OCI Image
paths:
  /apps/{app_identity}/oci-images/{oci-image_identity}:
    get:
      operationId: ociImageInfo
      summary: Info
      description: Info for the OCI images of an app, filtered by identifier.
      tags:
      - OCI Image
      parameters:
      - name: app_identity
        in: path
        required: true
        schema:
          type: string
      - name: oci-image_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/oci-image/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/oci-image'
                type:
                - array
  /apps/{app_identity}/oci-images:
    post:
      operationId: ociImageCreate
      summary: Create
      description: Create an new OCI image of an app
      tags:
      - OCI Image
      parameters:
      - name: app_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: create
      x-source: https://api.heroku.com/schema#/definitions/oci-image/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                architecture:
                  $ref: '#/components/schemas/oci-image/definitions/architecture'
                base_image_name:
                  $ref: '#/components/schemas/oci-image/definitions/base_image_name'
                base_top_layer:
                  $ref: '#/components/schemas/oci-image/definitions/base_top_layer'
                commit:
                  $ref: '#/components/schemas/oci-image/definitions/commit'
                commit_description:
                  $ref: '#/components/schemas/oci-image/definitions/commit_description'
                image_repo:
                  $ref: '#/components/schemas/oci-image/definitions/image_repo'
                digest:
                  $ref: '#/components/schemas/oci-image/definitions/digest'
                stack:
                  anyOf:
                  - $ref: '#/components/schemas/stack/definitions/name'
                    example: cnb
                  - $ref: '#/components/schemas/stack/definitions/id'
                process_types:
                  $ref: '#/components/schemas/oci-image/definitions/process_types'
                buildpacks:
                  $ref: '#/components/schemas/oci-image/definitions/buildpacks'
              type:
              - object
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oci-image'
components:
  schemas:
    oci-image:
      description: An OCI (Open Container Initiative) image is a standardized format for packaging and distributing containerized applications, ready to run on the platform.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: prototype
      strictProperties: true
      title: Heroku Platform API - OCI Image
      type:
      - object
      definitions:
        id:
          description: unique identifier of the OCI image
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        digest:
          description: unique identifier representing the content of the OCI image
          example: sha256:dc14ae5fbc1e7230e0a782bf216fb46500e210631703bcc6bab8acf2c6a23f42
          readOnly: false
          type:
          - string
        architecture:
          description: build architecture for OCI image
          example: arm64
          readOnly: false
          type:
          - string
          - 'null'
        identity:
          anyOf:
          - $ref: '#/components/schemas/oci-image/definitions/id'
          - $ref: '#/components/schemas/oci-image/definitions/digest'
        base_image_name:
          description: name of the image used for the base layers of the OCI image
          example: heroku/heroku:22-cnb
          readOnly: false
          type:
          - string
        base_top_layer:
          description: the digest of the top most layer of the base image.
          example: sha256:ea36ae5fbc1e7230e0a782bf216fb46500e210382703baa6bab8acf2c6a23f78
          readOnly: false
          type:
          - string
        commit:
          description: 'identification of the code in your version control system (eg: SHA of the git HEAD)'
          example: 60883d9e8947a57e04dc9124f25df004866a2051
          readOnly: false
          type:
          - string
        commit_description:
          description: an optional description of the provided commit
          example: fixed a bug with API documentation
          readOnly: false
          type:
          - string
        image_repo:
          description: name of the image registry repository used for storage
          example: d7ba1ace-b396-4691-968c-37ae53153426/builds
          readOnly: false
          type:
          - string
        process_type:
          description: process type information such as names and commands
          readOnly: false
          properties:
            name:
              description: name of the process type
              example: web
              type:
              - string
            display_cmd:
              description: the detailed command used for display purposes
              example: bundle exec puma -p $PORT
              type:
              - string
            command:
              description: the command that will be executed
              example: /cnb/process/web
              type:
              - string
            working_dir:
              description: working directory
              example: /worspace/webapp
              type:
              - string
            default:
              description: true if it is the default process type
              example: true
              type:
              - boolean
              - 'null'
          example:
            name: web
            display_cmd: bundle exec puma -p $PORT
            command: /cnb/process/web
            working_dir: /workspace/webapp
            default: true
          type:
          - object
        process_types:
          description: process types of the OCI image
          patternProperties:
            ^[-\w]{1,128}$:
              $ref: '#/components/schemas/oci-image/definitions/process_type'
          example:
            web:
              name: web
              display_cmd: bundle exec puma -p $PORT
              command: /cnb/process/web
              working_dir: /workspace/webapp
              default: true
          type:
          - object
        buildpack:
          description: set of executables that inspects app source code and creates a plan to build and run your image
          readOnly: false
          properties:
            id:
              description: identifier of the buildpack
              example: heroku/ruby
              type:
              - string
            version:
              description: version of the buildpack
              example: 2.0.0
              type:
              - string
            homepage:
              description: homepage of the buildpack
              example: https://github.com/heroku/buildpacks-ruby
              type:
              - string
          example:
            id: heroku/ruby
            version: 2.0.0
            homepage: https://github.com/heroku/buildpacks-ruby
          type:
          - object
        buildpacks:
          description: buildpacks of the OCI image
          items:
            $ref: '#/components/schemas/oci-image/definitions/buildpack'
          type:
          - array
        stack:
          description: stack associated to the OCI image
          readOnly: false
          properties:
            id:
              $ref: '#/components/schemas/stack/definitions/id'
              example: ba46bf09-7bd1-42fd-90df-a1a9a93eb4a2
            name:
              $ref: '#/components/schemas/stack/definitions/name'
              example: cnb
          type:
          - object
        created_at:
          description: when the OCI image was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        updated_at:
          description: when the OCI image was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        deleted_at:
          description: when OCI image was deleted
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
      properties:
        id:
          $ref: '#/components/schemas/oci-image/definitions/id'
        base_image_name:
          $ref: '#/components/schemas/oci-image/definitions/base_image_name'
        base_top_layer:
          $ref: '#/components/schemas/oci-image/definitions/base_top_layer'
        commit:
          $ref: '#/components/schemas/oci-image/definitions/commit'
        commit_description:
          $ref: '#/components/schemas/oci-image/definitions/commit_description'
        image_repo:
          $ref: '#/components/schemas/oci-image/definitions/image_repo'
        digest:
          $ref: '#/components/schemas/oci-image/definitions/digest'
        stack:
          $ref: '#/components/schemas/oci-image/definitions/stack'
        process_types:
          $ref: '#/components/schemas/oci-image/definitions/process_types'
        buildpacks:
          $ref: '#/components/schemas/oci-image/definitions/buildpacks'
        created_at:
          $ref: '#/components/schemas/oci-image/definitions/created_at'
        updated_at:
          $ref: '#/components/schemas/oci-image/definitions/updated_at'
        architecture:
          $ref: '#/components/schemas/oci-image/definitions/architecture'
        deleted_at:
          $ref: '#/components/schemas/oci-image/definitions/deleted_at'
    stack:
      description: Stacks are the different application execution environments available in the Heroku platform.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Stack
      type:
      - object
      definitions:
        created_at:
          description: when stack was introduced
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        default:
          description: indicates this stack is the default for new apps
          example: true
          readOnly: true
          type:
          - boolean
        id:
          description: unique identifier of stack
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/stack/definitions/name'
          - $ref: '#/components/schemas/stack/definitions/id'
        name:
          description: unique name of stack
          example: heroku-18
          readOnly: true
          type:
          - string
        state:
          description: 'availability of this stack: beta, deprecated or public'
          example: public
          readOnly: true
          type:
          - string
        updated_at:
          description: when stack was last modified
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        default:
          $ref: '#/components/schemas/stack/definitions/default'
        created_at:
          $ref: '#/components/schemas/stack/definitions/created_at'
        id:
          $ref: '#/components/schemas/stack/definitions/id'
        name:
          $ref: '#/components/schemas/stack/definitions/name'
        state:
          $ref: '#/components/schemas/stack/definitions/state'
        updated_at:
          $ref: '#/components/schemas/stack/definitions/updated_at'
  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'