Heroku Space API
The Space API from Heroku — 2 operation(s) for space.
The Space API from Heroku — 2 operation(s) for space.
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-space-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 Space 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
paths:
/spaces:
get:
operationId: spaceList
summary: List
description: List existing spaces.
tags:
- Space
parameters: []
x-hyper-schema-rel: instances
x-source: https://api.heroku.com/schema#/definitions/space/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/space'
type:
- array
post:
operationId: spaceCreate
summary: Create
description: Create a new space.
tags:
- Space
parameters: []
x-hyper-schema-rel: create
x-source: https://api.heroku.com/schema#/definitions/space/links
requestBody:
content:
application/json:
schema:
properties:
name:
$ref: '#/components/schemas/space/definitions/name'
team:
$ref: '#/components/schemas/team/definitions/name'
region:
$ref: '#/components/schemas/region/definitions/identity'
shield:
$ref: '#/components/schemas/space/definitions/shield'
cidr:
$ref: '#/components/schemas/space/definitions/cidr'
data_cidr:
$ref: '#/components/schemas/space/definitions/data_cidr'
log_drain_url:
$ref: '#/components/schemas/space/definitions/log_drain_url'
generation:
description: unique name of the generation of the Heroku platform for this space
example: cedar
readOnly: true
type:
- string
required:
- name
- team
type:
- object
responses:
'201':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/space'
/spaces/{space_identity}:
get:
operationId: spaceInfo
summary: Info
description: Info for existing space.
tags:
- Space
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/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/space'
patch:
operationId: spaceUpdate
summary: Update
description: Update an existing space.
tags:
- Space
parameters:
- name: space_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: update
x-source: https://api.heroku.com/schema#/definitions/space/links
requestBody:
content:
application/json:
schema:
properties:
name:
$ref: '#/components/schemas/space/definitions/name'
type:
- object
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/space'
delete:
operationId: spaceDelete
summary: Delete
description: Delete an existing space.
tags:
- Space
parameters:
- name: space_identity
in: path
required: true
schema:
type: string
x-hyper-schema-rel: destroy
x-source: https://api.heroku.com/schema#/definitions/space/links
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/space'
components:
schemas:
region:
description: A region represents a geographic location in which your application may run.
$schema: http://json-schema.org/draft-04/hyper-schema
stability: production
strictProperties: true
title: Heroku Platform API - Region
type:
- object
definitions:
country:
description: country where the region exists
example: United States
readOnly: true
type:
- string
created_at:
description: when region was created
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
description:
description: description of region
example: United States
readOnly: true
type:
- string
id:
description: unique identifier of region
example: 01234567-89ab-cdef-0123-456789abcdef
format: uuid
readOnly: true
type:
- string
identity:
anyOf:
- $ref: '#/components/schemas/region/definitions/id'
- $ref: '#/components/schemas/region/definitions/name'
locale:
description: area in the country where the region exists
example: Virginia
readOnly: true
type:
- string
name:
description: unique name of region
example: us
readOnly: true
type:
- string
private_capable:
description: whether or not region is available for creating a Private Space
example: false
readOnly: true
type:
- boolean
provider:
description: provider of underlying substrate
type:
- object
properties:
name:
description: name of provider
example: amazon-web-services
readOnly: true
type:
- string
region:
description: region name used by provider
example: us-east-1
readOnly: true
type:
- string
enum:
- ap-south-1
- eu-west-1
- ap-southeast-1
- ap-southeast-2
- eu-central-1
- eu-west-2
- ap-northeast-2
- ap-northeast-1
- us-east-1
- sa-east-1
- us-west-1
- us-west-2
- ca-central-1
readOnly: true
updated_at:
description: when region was updated
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
properties:
country:
$ref: '#/components/schemas/region/definitions/country'
created_at:
$ref: '#/components/schemas/region/definitions/created_at'
description:
$ref: '#/components/schemas/region/definitions/description'
id:
$ref: '#/components/schemas/region/definitions/id'
locale:
$ref: '#/components/schemas/region/definitions/locale'
name:
$ref: '#/components/schemas/region/definitions/name'
private_capable:
$ref: '#/components/schemas/region/definitions/private_capable'
provider:
$ref: '#/components/schemas/region/definitions/provider'
updated_at:
$ref: '#/components/schemas/region/definitions/updated_at'
team:
$schema: http://json-schema.org/draft-04/hyper-schema
description: Teams allow you to manage access to a shared group of applications and other resources.
stability: development
strictProperties: true
title: Heroku Platform API - Team
type:
- object
definitions:
created_at:
description: when the team was created
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
credit_card_collections:
description: whether charges incurred by the team are paid by credit card.
example: true
readOnly: true
type:
- boolean
default:
description: whether to use this team when none is specified
example: true
readOnly: false
type:
- boolean
enterprise_account:
type:
- 'null'
- object
properties:
id:
$ref: '#/components/schemas/enterprise-account/definitions/id'
name:
$ref: '#/components/schemas/enterprise-account/definitions/name'
id:
description: unique identifier of team
example: 01234567-89ab-cdef-0123-456789abcdef
format: uuid
readOnly: true
type:
- string
identity:
anyOf:
- $ref: '#/components/schemas/team/definitions/name'
- $ref: '#/components/schemas/team/definitions/id'
identity_provider:
description: Identity Provider associated with the Team
strictProperties: true
type:
- 'null'
- object
properties:
id:
$ref: '#/components/schemas/identity-provider/definitions/id'
name:
$ref: '#/components/schemas/identity-provider/definitions/name'
owner:
$ref: '#/components/schemas/identity-provider/definitions/owner'
device_data:
type:
- string
- 'null'
description: Device data string generated by the client
example: VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ==
nonce:
type:
- string
- 'null'
description: Nonce generated by Braintree hosted fields form
example: VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ==
address_1:
type:
- string
description: street address line 1
example: 40 Hickory Lane
address_2:
type:
- string
- 'null'
description: street address line 2
example: Suite 103
card_number:
type:
- string
- 'null'
description: encrypted card number of payment method
example: encrypted-card-number
city:
type:
- string
description: city
example: San Francisco
country:
type:
- string
description: country
example: US
cvv:
type:
- string
- 'null'
description: card verification value
example: '123'
expiration_month:
type:
- string
- 'null'
description: expiration month
example: '11'
expiration_year:
type:
- string
- 'null'
description: expiration year
example: '2014'
first_name:
type:
- string
description: the first name for payment method
example: Jason
last_name:
type:
- string
description: the last name for payment method
example: Walker
other:
type:
- string
- 'null'
description: metadata
example: Additional information for payment method
postal_code:
type:
- string
description: postal code
example: '90210'
state:
type:
- string
description: state
example: CA
membership_limit:
description: upper limit of members allowed in a team.
example: 25
readOnly: true
type:
- number
- 'null'
name:
description: unique name of team
example: example
readOnly: true
type:
- string
provisioned_licenses:
description: whether the team is provisioned licenses by salesforce.
example: true
readOnly: true
type:
- boolean
role:
description: role in the team
enum:
- admin
- collaborator
- member
- owner
- null
example: admin
readOnly: true
type:
- 'null'
- string
type:
description: type of team.
example: team
enum:
- enterprise
- team
readOnly: true
type:
- string
updated_at:
description: when the team was updated
example: '2012-01-01T12:00:00Z'
format: date-time
readOnly: true
type:
- string
properties:
id:
$ref: '#/components/schemas/team/definitions/id'
created_at:
$ref: '#/components/schemas/team/definitions/created_at'
credit_card_collections:
$ref: '#/components/schemas/team/definitions/credit_card_collections'
default:
$ref: '#/components/schemas/team/definitions/default'
enterprise_account:
$ref: '#/components/schemas/team/definitions/enterprise_account'
identity_provider:
$ref: '#/components/schemas/team/definitions/identity_provider'
membership_limit:
$ref: '#/components/schemas/team/definitions/membership_limit'
name:
$ref: '#/components/schemas/team/definitions/name'
provisioned_licenses:
$ref: '#/components/schemas/team/definitions/provisioned_licenses'
role:
$ref: '#/components/schemas/team/definitions/role'
type:
$ref: '#/components/schemas/team/definitions/type'
updated_at:
$ref: '#/components/schemas/team/definitions/updated_at'
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'