Heroku Space Topology API

The Space Topology API from Heroku — 1 operation(s) for space topology.

GitHub OpenAPI

Operations 1

GET /spaces/{space_identity}/topology Topology #

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-space-topology-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-space-topology-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform Space Topology 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: Space Topology
paths:
  /spaces/{space_identity}/topology:
    get:
      operationId: spaceTopologyTopology
      summary: Topology
      description: Current space topology
      tags:
      - Space Topology
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/space-topology/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/space-topology'
components:
  schemas:
    space-topology:
      description: Space Topology provides you with a mechanism for viewing all the running dynos, formations and applications for a space. This is the same data thats used to power our DNS Service Discovery.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: prototype
      strictProperties: true
      title: Heroku Platform API - Space Topology
      type:
      - object
      definitions:
        version:
          description: version of the space topology payload
          example: 1
          readOnly: true
          type:
          - integer
        dyno:
          description: A dyno
          properties:
            id:
              $ref: '#/components/schemas/dyno/definitions/id'
            number:
              description: process number, e.g. 1 in web.1
              example: 1
              type:
              - integer
            private_ip:
              description: RFC1918 Address of Dyno
              example: 10.0.134.42
              type:
              - string
            hostname:
              description: localspace hostname of resource
              example: 1.example-app-90210.app.localspace
              type:
              - string
          type:
          - object
        formation:
          description: formations for application
          properties:
            id:
              $ref: '#/components/schemas/formation/definitions/id'
            process_type:
              description: Name of process type
              example: web
              type:
              - string
            dynos:
              description: Current dynos for application
              items:
                $ref: '#/components/schemas/space-topology/definitions/dyno'
              type:
              - array
          type:
          - object
      properties:
        version:
          $ref: '#/components/schemas/space-topology/definitions/version'
        apps:
          description: The apps within this space
          type:
          - array
          readOnly: true
          items:
            type:
            - object
            properties:
              id:
                $ref: '#/components/schemas/app/definitions/id'
                readOnly: true
              domains:
                example:
                - example.com
                - example.net
                readOnly: true
                type:
                - array
              formation:
                description: formations for application
                items:
                  $ref: '#/components/schemas/space-topology/definitions/formation'
                type:
                - array
                readOnly: true
    formation:
      description: The formation of processes that should be maintained for an app. Update the formation to scale processes or change dyno sizes. Available process type names and commands are defined by the `process_types` attribute for the [slug](#slug) currently released on an app.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Formation
      type:
      - object
      definitions:
        command:
          description: command to use to launch this process
          example: bundle exec rails server -p $PORT
          readOnly: false
          type:
          - string
        created_at:
          description: when process type was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        dyno_size:
          description: dyno size
          example:
            id: 01234567-89ab-cdef-0123-456789abcdef
          identity:
            anyOf:
            - type: object
              description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
              x-ae-placeholder: true
            - type: object
              description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
              x-ae-placeholder: true
          properties:
            id:
              description: unique identifier of the dyno size
              example: 01234567-89ab-cdef-0123-456789abcdef
              format: uuid
              readOnly: true
              type:
              - string
            name:
              description: name of the dyno size
              example: Standard-1X
              readOnly: true
              type:
              - string
          readOnly: false
          type:
          - object
        id:
          description: unique identifier of this process type
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/formation/definitions/id'
          - $ref: '#/components/schemas/formation/definitions/type'
        quantity:
          description: number of processes to maintain
          example: 1
          readOnly: false
          type:
          - integer
        size:
          deprecated: true
          description: deprecated, refer to 'dyno_size' instead
          example: standard-1X
          readOnly: false
          type:
          - string
        type:
          description: type of process to maintain
          example: web
          readOnly: true
          pattern: ^[-\w]{1,128}$
          type:
          - string
        updated_at:
          description: when dyno type was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        update:
          additionalProperties: false
          description: Properties to update a process type
          properties:
            dyno_size:
              $ref: '#/components/schemas/formation/definitions/dyno_size'
            quantity:
              $ref: '#/components/schemas/formation/definitions/quantity'
            type:
              $ref: '#/components/schemas/formation/definitions/type'
          readOnly: false
          required:
          - type
          type:
          - object
      properties:
        app:
          description: app formation belongs to
          properties:
            name:
              $ref: '#/components/schemas/app/definitions/name'
            id:
              $ref: '#/components/schemas/app/definitions/id'
          type:
          - object
        command:
          $ref: '#/components/schemas/formation/definitions/command'
        created_at:
          $ref: '#/components/schemas/formation/definitions/created_at'
        dyno_size:
          description: dyno size
          properties:
            id:
              $ref: '#/components/schemas/dyno-size/definitions/id'
            name:
              $ref: '#/components/schemas/dyno-size/definitions/name'
          type:
          - object
        id:
          $ref: '#/components/schemas/formation/definitions/id'
        quantity:
          $ref: '#/components/schemas/formation/definitions/quantity'
        size:
          $ref: '#/components/schemas/formation/definitions/size'
        type:
          $ref: '#/components/schemas/formation/definitions/type'
        updated_at:
          $ref: '#/components/schemas/formation/definitions/updated_at'
    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'
  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'