API

AppPreview

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/hosting/apps/{app_id}/previews/{id}/archive create Success
POST /api/v1/hosting/apps/{app_id}/previews/{id}/deploy create Success
POST /api/v1/hosting/apps/{app_id}/previews/{id}/expire create Success
POST /api/v1/hosting/apps/{app_id}/previews/{id}/pause create Success
POST /api/v1/hosting/apps/{app_id}/previews/{id}/refresh_source create Refreshed preview
POST /api/v1/hosting/apps/{app_id}/previews/{id}/resume create Success
POST /api/v1/hosting/apps/{app_id}/previews/{id}/review_source create Expiring source refresh review
POST /api/v1/hosting/apps/{app_id}/previews/{id}/update_revision create Preview with the selected resolved revision and current generation
POST /api/v1/hosting/apps/{app_id}/previews create Created preview
GET /api/v1/hosting/apps/{app_id}/previews/{id} load Success
GET /api/v1/hosting/apps/{app_id}/previews/{id}/administration load Preview administration page
GET /api/v1/hosting/apps/{app_id}/previews/{id}/secret_comparison load Success
GET /api/v1/hosting/apps/{app_id}/previews load Success
GET /api/v1/hosting/apps/{app_id}/previews/administration_index load Preview administration index
PATCH /api/v1/hosting/apps/{app_id}/previews/{id} patch Success
DELETE /api/v1/hosting/apps/{app_id}/previews/{id} remove Success
PUT /api/v1/hosting/apps/{app_id}/previews/{id} update Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

app_preview, err := client.AppPreview(nil).Load(map[string]any{"app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(app_preview)
created, err := client.AppPreview(nil).Create(map[string]any{"app_id": "example", "app_preview_profile_id": "example", "name": "example", "slug": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.AppPreview(nil).Update(map[string]any{"id": "example_id", "app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.AppPreview(nil).Patch(map[string]any{"id": "example_id", "app_id": "example", "access": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.AppPreview(nil).Remove(map[string]any{"app_id": "example", "id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local app_preview, err = client:AppPreview():load({ app_id = "example" })
local created, err = client:AppPreview():create({ app_id = "example", app_preview_profile_id = "example", name = "example", slug = "example" })
local updated, err = client:AppPreview():update({ id = "example_id", app_id = "example" })
local patched, err = client:AppPreview():patch({ id = "example_id", app_id = "example", access = "example" })
local removed, err = client:AppPreview():remove({ app_id = "example", id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$app_preview = $client->AppPreview()->load(["app_id" => "example"]);
$created = $client->AppPreview()->create(["app_id" => "example", "app_preview_profile_id" => "example", "name" => "example", "slug" => "example"]);
$updated = $client->AppPreview()->update(["id" => "example_id", "app_id" => "example"]);
$patched = $client->AppPreview()->patch(["id" => "example_id", "app_id" => "example", "access" => "example"]);
$client->AppPreview()->remove(["app_id" => "example", "id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

app_preview = client.AppPreview().load({"app_id": "example"})
created = client.AppPreview().create({ "app_id": "example", "app_preview_profile_id": "example", "name": "example", "slug": "example" })
updated = client.AppPreview().update({"id": "example_id", "app_id": "example"})
patched = client.AppPreview().patch({"id": "example_id", "app_id": "example", "access": "example"})
client.AppPreview().remove({"app_id": "example", "id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

app_preview = client.AppPreview.load({ "app_id" => "example" })
created = client.AppPreview.create({ "app_id" => "example", "app_preview_profile_id" => "example", "name" => "example", "slug" => "example" })
updated = client.AppPreview.update({ "id" => "example_id", "app_id" => "example" })
patched = client.AppPreview.patch({ "id" => "example_id", "app_id" => "example", "access" => "example" })
client.AppPreview.remove({ "app_id" => "example", "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const app_preview = await client.AppPreview().load({ app_id: "example" })
const created = await client.AppPreview().create({ app_id: "example", app_preview_profile_id: "example", name: "example", slug: "example" })
const updated = await client.AppPreview().update({ id: "example_id", app_id: "example" })
const patched = await client.AppPreview().patch({ id: "example_id", app_id: "example", access: "example" })
await client.AppPreview().remove({ app_id: "example", id: "example_id" })

Fields

Field Type Required Description
access string No Access
app_preview_profile_id string Yes App Preview Profile Id
change_number string No Organization Change number, optionally prefixed with #; mutually exclusive with source_ref.
expected_generation integer No Required for resource_overrides, storage_binding_resources, shared_service_binding_ids or shared_data_binding_ids; stale generations return 409.
expected_patchset integer No Optional public Change patchset fence; stale selections return 409.
expires_at string No Expires At
id string No Id
name string Yes Name
resource_overrides object No Service public IDs mapped to resource overrides.
retained boolean No Retained
shared_data_binding_ids array No Replace explicitly shared captured native data connections.
shared_service_binding_ids array No Replace the explicitly shared captured service dependencies.
slug string Yes Slug
source_ref string No Source Ref
storage_binding_resources object No Replace preview storage selections, mapping captured mount binding IDs to storage resource IDs.

create

POST /api/v1/hosting/apps/{app_id}/previews/{id}/archive

Operation ID: archive_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/previews/{id}/deploy

Operation ID: deploy_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
app_service_ids array of string No Public service IDs belonging to this app and configured in this preview. Omit to deploy all configured services. Invalid or empty selections queue no deployments.
share_app_default_secrets boolean No Explicitly approve active app-default secrets for this preview before deployment.

Responses

200: Success

application/json

The response is object.

202: Selected deployment operations accepted

application/json

Property Type Required Description
operation_ids array of string Yes
preview object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/previews/{id}/expire

Operation ID: expire_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/previews/{id}/pause

Operation ID: pause_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/previews/{id}/refresh_source

Operation ID: refresh_source_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
review_token string Yes

Responses

200: Refreshed preview

application/json

Property Type Required Description
preview object Yes
preview.access enum: org_members, public Yes
preview.app_environment_id string Yes
preview.app_preview_profile_id string Yes
preview.created_at string No
preview.created_by_user_id string or integer or null No
preview.expires_at string Yes
preview.generation integer Yes
preview.hosted_app_id string Yes
preview.id string Yes
preview.name string Yes
preview.profile_name string Yes
preview.resource_overrides object No Service public IDs mapped to resource overrides. Omitted fields inherit; an empty map removes all local overrides. Null reservations select platform defaults.
preview.retained boolean Yes
preview.slug string Yes
preview.snapshot_version integer Yes
preview.source_revision string Yes
preview.status string Yes
preview.updated_at string No
preview.urls array of object Yes
preview.urls[].dns_status string Yes
preview.urls[].hostname string Yes
preview.urls[].tls_status string Yes
preview.vcs_change_id string No
400: Review token required
401: Authentication required
403: Organization administrator required
404: Preview not found
409: Review expired

POST /api/v1/hosting/apps/{app_id}/previews/{id}/resume

Operation ID: resume_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
app_service_ids array of string No Public service IDs belonging to this app and configured in this preview. Omit to deploy all configured services. Invalid or empty selections queue no deployments.
share_app_default_secrets boolean No Explicitly approve active app-default secrets for this preview before deployment.

Responses

200: Success

application/json

The response is object.

202: Selected deployment operations accepted

application/json

Property Type Required Description
operation_ids array of string Yes
preview object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/previews/{id}/review_source

Operation ID: review_source_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Expiring source refresh review

application/json

Property Type Required Description
diff object Yes
diff.root_path_changed boolean Yes
diff.services array of object Yes
diff.services[].backing_resources_changed boolean No
diff.services[].build_arguments array of object Yes
diff.services[].build_arguments[].change enum: added, removed, changed Yes
diff.services[].build_arguments[].key string Yes
diff.services[].change enum: added, removed, retained Yes
diff.services[].endpoints_changed boolean Yes
diff.services[].resource_defaults array of object No
diff.services[].resource_defaults[].change enum: added, removed, changed Yes
diff.services[].resource_defaults[].key string Yes
diff.services[].service_id string Yes
diff.services[].service_name string Yes
diff.services[].settings array of object Yes
diff.services[].settings[].change enum: added, removed, changed Yes
diff.services[].settings[].key string Yes
diff.services[].source_placements_changed boolean Yes
diff.services[].variables array of object Yes
diff.services[].variables[].change enum: added, removed, changed Yes
diff.services[].variables[].key string Yes
diff.source_environment_changed boolean Yes
diff.variables array of object Yes
diff.variables[].change enum: added, removed, changed Yes
diff.variables[].key string Yes
expires_at string (date-time) Yes
preserved_overrides array of object Yes
preserved_overrides[].key string Yes
preserved_overrides[].service_id string Yes
preserved_profile_keys array of string Yes
preserved_resource_overrides object No Service public IDs mapped to resource overrides. Omitted fields inherit; an empty map removes all local overrides. Null reservations select platform defaults.
preserved_secret_binding_keys array of string Yes
review_token string Yes
sharing_approvals_reset boolean Yes
snapshot_version integer Yes
401: Authentication required
403: Organization administrator required
404: Preview not found
409: Preview or source unavailable

POST /api/v1/hosting/apps/{app_id}/previews/{id}/update_revision

Operation ID: update_revision_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
expected_generation integer Yes
source_ref string Yes

Responses

200: Preview with the selected resolved revision and current generation

application/json

The response is object.

401: Unauthorized
403: Organization-admin access required
404: Not found
409: Preview changed, is Change-owned, is unavailable, or has not finished pause cleanup
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/previews

Operation ID: post_api_v1_hosting_apps_app_id_previews.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Request body

application/json

Property Type Required Description
app_preview_profile_id string Yes
change_number string No Organization Change number, optionally prefixed with #; mutually exclusive with source_ref. Home reviews resolve the app's physical component.
expected_patchset integer No Optional public Change patchset fence; stale selections return 409.
name string Yes
slug string Yes
source_ref string No

Responses

201: Created preview

application/json

Property Type Required Description
preview object Yes
preview.access enum: org_members, public Yes
preview.app_environment_id string Yes
preview.app_preview_profile_id string Yes
preview.created_at string No
preview.created_by_user_id string or integer or null No
preview.expires_at string Yes
preview.generation integer Yes
preview.hosted_app_id string Yes
preview.id string Yes
preview.name string Yes
preview.profile_name string Yes
preview.resource_overrides object No Service public IDs mapped to resource overrides. Omitted fields inherit; an empty map removes all local overrides. Null reservations select platform defaults.
preview.retained boolean Yes
preview.slug string Yes
preview.snapshot_version integer Yes
preview.source_revision string Yes
preview.status string Yes
preview.updated_at string No
preview.urls array of object Yes
preview.urls[].dns_status string Yes
preview.urls[].hostname string Yes
preview.urls[].tls_status string Yes
preview.vcs_change_id string No
401: Authentication required
403: Organization administrator required
404: App or source not found
409: Source cannot be captured
422: Invalid preview configuration
502: Hosting dependency unavailable

load

GET /api/v1/hosting/apps/{app_id}/previews/{id}

Operation ID: api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/hosting/apps/{app_id}/previews/{id}/administration

Operation ID: administration_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Preview administration page

application/json

Property Type Required Description
actions object Yes
actions.configure boolean Yes
actions.delete boolean Yes
actions.deploy boolean Yes
actions.pause boolean Yes
actions.policy boolean Yes
actions.resume boolean Yes
actions.review_source boolean Yes
actions.rotate_secrets boolean Yes
app object Yes
app.created_at string (date-time) Yes
app.created_at_label string Yes
app.description string Yes
app.framework string Yes
app.id string Yes
app.name string Yes
app.organization_id string Yes
app.repository_id string Yes
app.repository_kind string Yes
app.root_path string Yes
app.root_path_display string Yes
app.slug string Yes
app.status enum: draft, active, archived Yes
app.updated_at string (date-time) Yes
app.updated_at_label string Yes
binding_sources array of object Yes
binding_sources[].available boolean Yes
binding_sources[].id string Yes
binding_sources[].latest_version_number integer Yes
binding_sources[].name string Yes
binding_sources[].scope_kind string Yes
binding_sources[].slug string Yes
binding_sources[].source_app_name string Yes
binding_sources[].source_environment_name string Yes
binding_sources[].versions array of object Yes
binding_sources[].versions[].id string Yes
binding_sources[].versions[].version_number integer Yes
bindings array of object Yes
bindings[].app_environment_id string No
bindings[].app_preview_profile_id string No
bindings[].available boolean Yes
bindings[].created_at string No
bindings[].env_key string Yes
bindings[].hosted_app_id string No
bindings[].id string Yes
bindings[].mode enum: linked, masked Yes
bindings[].pinned boolean Yes
bindings[].secret_id string No
bindings[].secret_version_id string No
bindings[].source_slug string No
bindings[].updated_at string No
bindings[].version_number integer No
can_manage boolean Yes
comparison object Yes
comparison.configuration array of object No
comparison.configuration[].app_service_id string Yes
comparison.configuration[].backing_resources object No
comparison.configuration[].backing_resources.captured array of object Yes
comparison.configuration[].backing_resources.captured[].binding_id string Yes
comparison.configuration[].backing_resources.captured[].binding_type string Yes
comparison.configuration[].backing_resources.captured[].dependency_endpoint_id string No
comparison.configuration[].backing_resources.captured[].dependency_url string No
comparison.configuration[].backing_resources.captured[].environment_variable_name string Yes
comparison.configuration[].backing_resources.captured[].mount_path string Yes
comparison.configuration[].backing_resources.captured[].name string Yes
comparison.configuration[].backing_resources.captured[].network_available boolean No
comparison.configuration[].backing_resources.captured[].network_dns_suffix string No
comparison.configuration[].backing_resources.captured[].network_peer_id string No
comparison.configuration[].backing_resources.captured[].network_space_id string No
comparison.configuration[].backing_resources.captured[].provider_private_endpoint boolean No Captured managed data resource advertises a provider-private endpoint; no endpoint or credential material is included.
comparison.configuration[].backing_resources.captured[].read_only boolean Yes
comparison.configuration[].backing_resources.captured[].required boolean Yes
comparison.configuration[].backing_resources.captured[].resource_authority_identity object No
comparison.configuration[].backing_resources.captured[].resource_capacity_gb integer No
comparison.configuration[].backing_resources.captured[].resource_environment_id string No
comparison.configuration[].backing_resources.captured[].resource_external_volume_id string No
comparison.configuration[].backing_resources.captured[].resource_id string Yes
comparison.configuration[].backing_resources.captured[].resource_kind string No
comparison.configuration[].backing_resources.captured[].resource_location_id string No
comparison.configuration[].backing_resources.captured[].resource_name string Yes
comparison.configuration[].backing_resources.captured[].resource_provider string No
comparison.configuration[].backing_resources.captured[].resource_status string Yes
comparison.configuration[].backing_resources.captured[].resource_type string Yes
comparison.configuration[].backing_resources.preview array of object Yes
comparison.configuration[].backing_resources.preview[].binding_id string Yes
comparison.configuration[].backing_resources.preview[].binding_type string Yes
comparison.configuration[].backing_resources.preview[].dependency_endpoint_id string No
comparison.configuration[].backing_resources.preview[].dependency_url string No
comparison.configuration[].backing_resources.preview[].environment_variable_name string Yes
comparison.configuration[].backing_resources.preview[].mount_path string Yes
comparison.configuration[].backing_resources.preview[].name string Yes
comparison.configuration[].backing_resources.preview[].network_available boolean No
comparison.configuration[].backing_resources.preview[].network_dns_suffix string No
comparison.configuration[].backing_resources.preview[].network_peer_id string No
comparison.configuration[].backing_resources.preview[].network_space_id string No
comparison.configuration[].backing_resources.preview[].provider_private_endpoint boolean No Captured managed data resource advertises a provider-private endpoint; no endpoint or credential material is included.
comparison.configuration[].backing_resources.preview[].read_only boolean Yes
comparison.configuration[].backing_resources.preview[].required boolean Yes
comparison.configuration[].backing_resources.preview[].resource_authority_identity object No
comparison.configuration[].backing_resources.preview[].resource_capacity_gb integer No
comparison.configuration[].backing_resources.preview[].resource_environment_id string No
comparison.configuration[].backing_resources.preview[].resource_external_volume_id string No
comparison.configuration[].backing_resources.preview[].resource_id string Yes
comparison.configuration[].backing_resources.preview[].resource_kind string No
comparison.configuration[].backing_resources.preview[].resource_location_id string No
comparison.configuration[].backing_resources.preview[].resource_name string Yes
comparison.configuration[].backing_resources.preview[].resource_provider string No
comparison.configuration[].backing_resources.preview[].resource_status string Yes
comparison.configuration[].backing_resources.preview[].resource_type string Yes
comparison.configuration[].backing_resources.requires_refresh boolean Yes
comparison.configuration[].backing_resources.source array of object Yes
comparison.configuration[].backing_resources.source[].binding_id string Yes
comparison.configuration[].backing_resources.source[].binding_type string Yes
comparison.configuration[].backing_resources.source[].dependency_endpoint_id string No
comparison.configuration[].backing_resources.source[].dependency_url string No
comparison.configuration[].backing_resources.source[].environment_variable_name string Yes
comparison.configuration[].backing_resources.source[].mount_path string Yes
comparison.configuration[].backing_resources.source[].name string Yes
comparison.configuration[].backing_resources.source[].network_available boolean No
comparison.configuration[].backing_resources.source[].network_dns_suffix string No
comparison.configuration[].backing_resources.source[].network_peer_id string No
comparison.configuration[].backing_resources.source[].network_space_id string No
comparison.configuration[].backing_resources.source[].provider_private_endpoint boolean No Captured managed data resource advertises a provider-private endpoint; no endpoint or credential material is included.
comparison.configuration[].backing_resources.source[].read_only boolean Yes
comparison.configuration[].backing_resources.source[].required boolean Yes
comparison.configuration[].backing_resources.source[].resource_authority_identity object No
comparison.configuration[].backing_resources.source[].resource_capacity_gb integer No
comparison.configuration[].backing_resources.source[].resource_environment_id string No
comparison.configuration[].backing_resources.source[].resource_external_volume_id string No
comparison.configuration[].backing_resources.source[].resource_id string Yes
comparison.configuration[].backing_resources.source[].resource_kind string No
comparison.configuration[].backing_resources.source[].resource_location_id string No
comparison.configuration[].backing_resources.source[].resource_name string Yes
comparison.configuration[].backing_resources.source[].resource_provider string No
comparison.configuration[].backing_resources.source[].resource_status string Yes
comparison.configuration[].backing_resources.source[].resource_type string Yes
comparison.configuration[].capacity object Yes
comparison.configuration[].capacity.preview array of object Yes
comparison.configuration[].capacity.preview[].location_id string Yes
comparison.configuration[].capacity.preview[].location_name string Yes
comparison.configuration[].capacity.preview[].replicas integer Yes
comparison.configuration[].capacity.source array of object Yes
comparison.configuration[].capacity.source[].location_id string Yes
comparison.configuration[].capacity.source[].location_name string Yes
comparison.configuration[].capacity.source[].replicas integer Yes
comparison.configuration[].keys array of object Yes
comparison.configuration[].keys[].approval_required boolean Yes
comparison.configuration[].keys[].key string Yes
comparison.configuration[].keys[].matches_source boolean Yes
comparison.configuration[].keys[].missing_reference boolean Yes
comparison.configuration[].keys[].preview object Yes
comparison.configuration[].keys[].required boolean Yes
comparison.configuration[].keys[].shadowed array of object Yes
comparison.configuration[].keys[].shadowed[].binding_id string No
comparison.configuration[].keys[].shadowed[].config_variable_id string No
comparison.configuration[].keys[].shadowed[].key string Yes
comparison.configuration[].keys[].shadowed[].kind string Yes
comparison.configuration[].keys[].shadowed[].layer string Yes
comparison.configuration[].keys[].shadowed[].pinned boolean No
comparison.configuration[].keys[].shadowed[].secret_id string No
comparison.configuration[].keys[].shadowed[].secret_version_id string No
comparison.configuration[].keys[].shadowed[].value_kind string No
comparison.configuration[].keys[].shadowed[].version_number integer No
comparison.configuration[].keys[].source object Yes
comparison.configuration[].resources object No
comparison.configuration[].setting_differences array of string Yes
comparison.runtime_consumers array of object No
comparison.runtime_consumers[].app_release_id string No
comparison.runtime_consumers[].app_service_id string Yes
comparison.runtime_consumers[].keys array of object Yes
comparison.runtime_consumers[].keys[].available boolean Yes
comparison.runtime_consumers[].keys[].env_key string Yes
comparison.runtime_consumers[].keys[].loaded_version_id string No
comparison.runtime_consumers[].keys[].secret_id string No
comparison.runtime_consumers[].keys[].selected_version_id string No
comparison.runtime_consumers[].keys[].stale boolean Yes
comparison.runtime_consumers[].runtime_instance_id string Yes
comparison.runtime_consumers[].status enum: unknown, current, stale, unavailable Yes
configuration_errors object Yes
deployment object or null Yes
operations array of object Yes
operations[].action enum: pause, archive, delete, expire, close Yes
operations[].app_preview_id string No
operations[].created_at string No
operations[].created_by_user_id string or integer or null No
operations[].failure_message string No
operations[].finished_at string No
operations[].generation integer Yes
operations[].id string Yes
operations[].started_at string No
operations[].status enum: queued, running, succeeded, failed, canceled Yes
operations[].updated_at string No
owned_secrets array of object Yes
owned_secrets[].available boolean Yes
owned_secrets[].env_key string Yes
owned_secrets[].id string Yes
owned_secrets[].latest_version_number integer Yes
owned_secrets[].name string Yes
owned_secrets[].status string Yes
placement_locations array of object No
placement_locations[].code string Yes
placement_locations[].created_at string (date-time) Yes
placement_locations[].id string Yes
placement_locations[].name string Yes
placement_locations[].nomad_datacenter string Yes
placement_locations[].updated_at string (date-time) Yes
preview object Yes
preview.access enum: org_members, public Yes
preview.app_environment_id string Yes
preview.app_preview_profile_id string Yes
preview.created_at string No
preview.created_by_user_id string or integer or null No
preview.expires_at string Yes
preview.generation integer Yes
preview.hosted_app_id string Yes
preview.id string Yes
preview.name string Yes
preview.profile_name string Yes
preview.resource_overrides object No Service public IDs mapped to resource overrides. Omitted fields inherit; an empty map removes all local overrides. Null reservations select platform defaults.
preview.retained boolean Yes
preview.slug string Yes
preview.snapshot_version integer Yes
preview.source_revision string Yes
preview.status string Yes
preview.updated_at string No
preview.urls array of object Yes
preview.urls[].dns_status string Yes
preview.urls[].hostname string Yes
preview.urls[].tls_status string Yes
preview.vcs_change_id string No
profile object Yes
profile.automatic boolean Yes
profile.configuration object Yes
profile.configuration.build_variables object No
profile.configuration.required_keys array of string No
profile.configuration.service_resources object No Service public IDs mapped to resource overrides. Omitted fields inherit; an empty map removes all local overrides. Null reservations select platform defaults.
profile.configuration.variables object No
profile.created_at string No
profile.hosted_app_id string Yes
profile.id string Yes
profile.name string Yes
profile.slug string Yes
profile.source_environment_id string Yes
profile.ttl_days integer Yes
profile.updated_at string No
profile_bindings array of object Yes
profile_bindings[].app_environment_id string No
profile_bindings[].app_preview_profile_id string No
profile_bindings[].available boolean Yes
profile_bindings[].created_at string No
profile_bindings[].env_key string Yes
profile_bindings[].hosted_app_id string No
profile_bindings[].id string Yes
profile_bindings[].mode enum: linked, masked Yes
profile_bindings[].pinned boolean Yes
profile_bindings[].secret_id string No
profile_bindings[].secret_version_id string No
profile_bindings[].source_slug string No
profile_bindings[].updated_at string No
profile_bindings[].version_number integer No
sharing_approvals object or null Yes
storage_bindings array of object Yes
storage_bindings[].binding_id string Yes
storage_bindings[].mount_path string Yes
storage_bindings[].name string Yes
storage_bindings[].read_only boolean Yes
storage_bindings[].resources array of object Yes
storage_bindings[].resources[].capacity_gb integer Yes
storage_bindings[].resources[].id string Yes
storage_bindings[].resources[].location_id string Yes
storage_bindings[].resources[].name string Yes
storage_bindings[].resources[].provider string Yes
storage_bindings[].resources[].shared boolean Yes
storage_bindings[].selected_resource_id string Yes
storage_bindings[].source_resource_name string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/hosting/apps/{app_id}/previews/{id}/secret_comparison

Operation ID: secret_comparison_api_v1_app_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/hosting/apps/{app_id}/previews

Operation ID: api_v1_app_previews.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/hosting/apps/{app_id}/previews/administration_index

Operation ID: administration_index_api_v1_app_previews.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Responses

200: Preview administration index

application/json

Property Type Required Description
app object Yes
app.created_at string (date-time) Yes
app.created_at_label string Yes
app.description string Yes
app.framework string Yes
app.id string Yes
app.name string Yes
app.organization_id string Yes
app.repository_id string Yes
app.repository_kind string Yes
app.root_path string Yes
app.root_path_display string Yes
app.slug string Yes
app.status enum: draft, active, archived Yes
app.updated_at string (date-time) Yes
app.updated_at_label string Yes
binding_sources array of object Yes
binding_sources[].available boolean Yes
binding_sources[].id string Yes
binding_sources[].latest_version_number integer Yes
binding_sources[].name string Yes
binding_sources[].scope_kind string Yes
binding_sources[].slug string Yes
binding_sources[].source_app_name string Yes
binding_sources[].source_environment_name string Yes
binding_sources[].versions array of object Yes
binding_sources[].versions[].id string Yes
binding_sources[].versions[].version_number integer Yes
can_manage boolean Yes
previews array of object Yes
previews[].access enum: org_members, public Yes
previews[].app_environment_id string Yes
previews[].app_preview_profile_id string Yes
previews[].created_at string No
previews[].created_by_user_id string or integer or null No
previews[].expires_at string Yes
previews[].generation integer Yes
previews[].hosted_app_id string Yes
previews[].id string Yes
previews[].name string Yes
previews[].profile_name string Yes
previews[].resource_overrides object No Service public IDs mapped to resource overrides. Omitted fields inherit; an empty map removes all local overrides. Null reservations select platform defaults.
previews[].retained boolean Yes
previews[].slug string Yes
previews[].snapshot_version integer Yes
previews[].source_revision string Yes
previews[].status string Yes
previews[].updated_at string No
previews[].urls array of object Yes
previews[].urls[].dns_status string Yes
previews[].urls[].hostname string Yes
previews[].urls[].tls_status string Yes
previews[].vcs_change_id string No
profiles array of object and object Yes
resource_services array of object Yes
resource_services[].id string Yes
resource_services[].name string Yes
resource_services[].resources object Yes
resource_services[].resources.cpu_hard_limit boolean No
resource_services[].resources.cpu_mhz integer No
resource_services[].resources.disk_mb integer No
resource_services[].resources.memory_max_mb integer No
resource_services[].resources.memory_mb integer No
source_environments array of object Yes
source_environments[].auto_deploy boolean Yes
source_environments[].base_domain string Yes
source_environments[].branch_pattern string Yes
source_environments[].created_at string (date-time) Yes
source_environments[].created_at_label string Yes
source_environments[].hosted_app_id string Yes
source_environments[].id string Yes
source_environments[].kind enum: production, staging, development, preview, ephemeral, custom Yes
source_environments[].location object or null Yes
source_environments[].location_id string Yes
source_environments[].name string Yes
source_environments[].slug string Yes
source_environments[].status enum: active, paused, archived Yes
source_environments[].updated_at string (date-time) Yes
source_environments[].updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/hosting/apps/{app_id}/previews/{id}

Operation ID: patch_api_v1_hosting_apps_app_id_previews_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
access enum: org_members, public No
expected_generation integer No Required for resource_overrides, storage_binding_resources, shared_service_binding_ids or shared_data_binding_ids; stale generations return 409.
expires_at string No
resource_overrides object No Service public IDs mapped to resource overrides. Omitted fields inherit; an empty map removes all local overrides. Null reservations select platform defaults.
retained boolean No
shared_data_binding_ids array of string No Replace explicitly shared captured native data connections. Empty removes sharing. Requires paused preview and completed cleanup; runtime credentials come only from active managed connection secrets and require workload grants.
shared_service_binding_ids array of string No Replace the explicitly shared captured service dependencies. Empty removes sharing. Requires paused preview and completed cleanup. Source refresh resets this selection.
storage_binding_resources object No Replace preview storage selections, mapping captured mount binding IDs to storage resource IDs. Empty removes mounts. Requires a paused preview and completed cleanup. Shared source local caches and compatible pre-provisioned preview-owned volumes are supported; production single-writer volumes cannot be shared. Source refresh resets selections.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/hosting/apps/{app_id}/previews/{id}

Operation ID: delete_api_v1_hosting_apps_app_id_previews_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/hosting/apps/{app_id}/previews/{id}

Operation ID: put_api_v1_hosting_apps_app_id_previews_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway