Heroku Inbound Ruleset API

The Inbound Ruleset API from Heroku — 3 operation(s) for inbound ruleset.

GitHub OpenAPI

Operations 4

GET /spaces/{space_identity}/inbound-ruleset Current #
PUT /spaces/{space_identity}/inbound-ruleset Create #
GET /spaces/{space_identity}/inbound-rulesets/{inbound-ruleset_identity} Info #
GET /spaces/{space_identity}/inbound-rulesets List #

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-inbound-ruleset-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-inbound-ruleset-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform Inbound Ruleset 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: Inbound Ruleset
paths:
  /spaces/{space_identity}/inbound-ruleset:
    get:
      operationId: inboundRulesetCurrent
      summary: Current
      description: Current inbound ruleset for a space
      tags:
      - Inbound Ruleset
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/inbound-ruleset/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inbound-ruleset'
    put:
      operationId: inboundRulesetCreate
      summary: Create
      description: Create a new inbound ruleset
      tags:
      - Inbound Ruleset
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: create
      x-source: https://api.heroku.com/schema#/definitions/inbound-ruleset/links
      requestBody:
        content:
          application/json:
            schema:
              type:
              - object
              properties:
                rules:
                  type:
                  - array
                  items:
                    $ref: '#/components/schemas/inbound-ruleset/definitions/rule'
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inbound-ruleset'
  /spaces/{space_identity}/inbound-rulesets/{inbound-ruleset_identity}:
    get:
      operationId: inboundRulesetInfo
      summary: Info
      description: Info on an existing Inbound Ruleset
      tags:
      - Inbound Ruleset
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      - name: inbound-ruleset_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/inbound-ruleset/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inbound-ruleset'
  /spaces/{space_identity}/inbound-rulesets:
    get:
      operationId: inboundRulesetList
      summary: List
      description: List all inbound rulesets for a space
      tags:
      - Inbound Ruleset
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: instances
      x-source: https://api.heroku.com/schema#/definitions/inbound-ruleset/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/inbound-ruleset'
                type:
                - array
components:
  schemas:
    inbound-ruleset:
      description: An inbound-ruleset is a collection of rules that specify what hosts can or cannot connect to an application.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: prototype
      strictProperties: true
      title: Heroku Platform API - Inbound Ruleset
      type:
      - object
      definitions:
        action:
          description: states whether the connection is allowed or denied
          example: allow
          readOnly: false
          type:
          - string
          enum:
          - allow
          - deny
        source:
          description: is the request’s source in CIDR notation
          example: 1.1.1.1/1
          pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
          readOnly: false
          type:
          - string
        created_at:
          description: when inbound-ruleset was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        id:
          description: unique identifier of an inbound-ruleset
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/inbound-ruleset/definitions/id'
        rule:
          description: the combination of an IP address in CIDR notation and whether to allow or deny it's traffic.
          type:
          - object
          properties:
            action:
              $ref: '#/components/schemas/inbound-ruleset/definitions/action'
            source:
              $ref: '#/components/schemas/inbound-ruleset/definitions/source'
          required:
          - source
          - action
      properties:
        id:
          $ref: '#/components/schemas/inbound-ruleset/definitions/id'
        space:
          description: identity of space
          properties:
            id:
              $ref: '#/components/schemas/space/definitions/id'
            name:
              $ref: '#/components/schemas/space/definitions/name'
          type:
          - object
        created_at:
          $ref: '#/components/schemas/inbound-ruleset/definitions/created_at'
        rules:
          type:
          - array
          items:
            $ref: '#/components/schemas/inbound-ruleset/definitions/rule'
        created_by:
          $ref: '#/components/schemas/account/definitions/email'
    account:
      description: An account represents an individual signed up to use the Heroku platform.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Account
      type:
      - object
      definitions:
        allow_tracking:
          default: true
          description: whether to allow third party web activity tracking
          example: true
          readOnly: false
          type:
          - boolean
        beta:
          default: false
          description: whether allowed to utilize beta Heroku features
          example: false
          readOnly: false
          type:
          - boolean
        created_at:
          description: when account was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        country_of_residence:
          description: country where account owner resides
          example: United States
          readOnly: false
          type:
          - string
          - 'null'
        email:
          description: unique email address of account
          example: username@example.com
          format: email
          readOnly: false
          type:
          - string
        federated:
          description: whether the user is federated and belongs to an Identity Provider
          example: false
          readOnly: true
          type:
          - boolean
        id:
          description: unique identifier of an account
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/account/definitions/email'
          - $ref: '#/components/schemas/account/definitions/id'
          - $ref: '#/components/schemas/account/definitions/self'
        last_login:
          description: when account last authorized with Heroku
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        name:
          description: full name of the account owner
          example: Tina Edmonds
          readOnly: false
          type:
          - string
          - 'null'
        password:
          description: current password on the account
          example: currentpassword
          readOnly: true
          type:
          - string
        self:
          description: Implicit reference to currently authorized user
          enum:
          - '~'
          example: '~'
          readOnly: true
          type:
          - string
        sms_number:
          description: SMS number of account
          example: +1 ***-***-1234
          readOnly: true
          type:
          - string
          - 'null'
        suspended_at:
          description: when account was suspended
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        delinquent_at:
          description: when account became delinquent
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        two_factor_authentication:
          description: whether two-factor auth is enabled on the account
          example: false
          readOnly: true
          type:
          - boolean
        updated_at:
          description: when account was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        verified:
          default: false
          description: whether account has been verified with billing information
          example: false
          readOnly: true
          type:
          - boolean
      properties:
        allow_tracking:
          $ref: '#/components/schemas/account/definitions/allow_tracking'
        beta:
          $ref: '#/components/schemas/account/definitions/beta'
        created_at:
          $ref: '#/components/schemas/account/definitions/created_at'
        email:
          $ref: '#/components/schemas/account/definitions/email'
        federated:
          $ref: '#/components/schemas/account/definitions/federated'
        id:
          $ref: '#/components/schemas/account/definitions/id'
        identity_provider:
          description: Identity Provider details for federated users.
          strictProperties: true
          properties:
            id:
              $ref: '#/components/schemas/identity-provider/definitions/id'
            name:
              $ref: '#/components/schemas/identity-provider/definitions/name'
            team:
              type:
              - object
              properties:
                name:
                  $ref: '#/components/schemas/team/definitions/name'
            organization:
              type:
              - object
              properties:
                name:
                  $ref: '#/components/schemas/team/definitions/name'
            owner:
              $ref: '#/components/schemas/identity-provider/definitions/owner'
          type:
          - object
          - 'null'
        last_login:
          $ref: '#/components/schemas/account/definitions/last_login'
        name:
          $ref: '#/components/schemas/account/definitions/name'
        sms_number:
          $ref: '#/components/schemas/account/definitions/sms_number'
        suspended_at:
          $ref: '#/components/schemas/account/definitions/suspended_at'
        delinquent_at:
          $ref: '#/components/schemas/account/definitions/delinquent_at'
        two_factor_authentication:
          $ref: '#/components/schemas/account/definitions/two_factor_authentication'
        updated_at:
          $ref: '#/components/schemas/account/definitions/updated_at'
        verified:
          $ref: '#/components/schemas/account/definitions/verified'
        country_of_residence:
          $ref: '#/components/schemas/account/definitions/country_of_residence'
        default_organization:
          description: team selected by default
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          strictProperties: true
          type:
          - object
          - 'null'
        default_team:
          description: team selected by default
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          strictProperties: true
          type:
          - object
          - 'null'
    space:
      description: A space is an isolated, highly available, secure app execution environment.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Space
      type:
      - object
      definitions:
        created_at:
          description: when space was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        id:
          description: unique identifier of space
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/space/definitions/id'
          - $ref: '#/components/schemas/space/definitions/name'
        name:
          description: unique name of space
          example: nasa
          readOnly: false
          pattern: ^[a-z0-9](?:[a-z0-9]|-(?!-))+[a-z0-9]$
          type:
          - string
        shield:
          description: true if this space has shield enabled
          readOnly: true
          example: true
          type:
          - boolean
        state:
          description: availability of this space
          enum:
          - allocating
          - allocated
          - deleting
          example: allocated
          readOnly: true
          type:
          - string
        updated_at:
          description: when space was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        log_drain_url:
          description: URL to which all apps will drain logs. Only settable during space creation and enables direct logging. Must use HTTPS.
          example: https://example.com/logs
          type:
          - string
        cidr:
          description: The RFC-1918 CIDR the Private Space will use. It must be a /16 in 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16
          example: 172.20.20.30/16
          default: 10.0.0.0/16
          pattern: ^((?:10|172\.(?:1[6-9]|2[0-9]|3[01])|192\.168)\..*.+\/16)$
          readOnly: false
          type:
          - string
        data_cidr:
          description: The RFC-1918 CIDR that the Private Space will use for the Heroku-managed peering connection that's automatically created when using Heroku Data add-ons. It must be between a /16 and a /20
          example: 10.2.0.0/16
          readOnly: false
          type:
          - string
        generation:
          description: Generation of the Heroku platform for this space
          readOnly: true
          type:
          - object
          properties:
            id:
              description: unique identifier of the generation of the Heroku platform for this space
              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 space
              example: cedar
              readOnly: true
              type:
              - string
        supported_architectures:
          description: CPU architectures available for dynos in this space.
          example: '[arm64]'
          readOnly: true
          type:
          - array
      properties:
        created_at:
          $ref: '#/components/schemas/space/definitions/created_at'
        id:
          $ref: '#/components/schemas/space/definitions/id'
        name:
          $ref: '#/components/schemas/space/definitions/name'
        organization:
          description: organization that owns this space
          properties:
            name:
              $ref: '#/components/schemas/team/definitions/name'
          type:
          - object
        team:
          description: team that owns this space
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          type:
          - object
        region:
          description: identity of space region
          properties:
            id:
              $ref: '#/components/schemas/region/definitions/id'
            name:
              $ref: '#/components/schemas/region/definitions/name'
          strictProperties: true
          type:
          - object
        shield:
          $ref: '#/components/schemas/space/definitions/shield'
        state:
          $ref: '#/components/schemas/space/definitions/state'
        updated_at:
          $ref: '#/components/schemas/space/definitions/updated_at'
        cidr:
          $ref: '#/components/schemas/space/definitions/cidr'
        data_cidr:
          $ref: '#/components/schemas/space/definitions/data_cidr'
        generation:
          $ref: '#/components/schemas/space/definitions/generation'
        supported_architectures:
          $ref: '#/components/schemas/space/definitions/supported_architectures'
  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'