Site
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/organizations/{org_slug}/pages/sites |
list |
Organization Sites page contract. domains and deployments belong to selected_site_id, which names one of sites |
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:
sites, err := client.Site(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(sites)
Lua
Construct client as shown in the Lua setup, then call the operations:
local sites, err = client:Site():list({ organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$sites = $client->Site()->list(["organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
sites = client.Site().list({"organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
sites = client.Site.list({ "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const sites = await client.Site().list({ organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
activated_at |
one,string,null |
Yes | Activated At |
activated_at_label |
one,string,null |
Yes | Activated At Label |
commit_sha |
one,string,null |
Yes | Commit Sha |
created_at |
string |
Yes | Created At |
created_at_label |
one,string,null |
Yes | Created At Label |
creator_user_id |
one,string,null |
Yes | Creator User Id |
deploy_slug |
string |
Yes | Deploy Slug |
failure_message |
one,string,null |
Yes | Failure Message |
file_count |
integer |
Yes | File Count |
file_count_label |
string |
Yes | File Count Label |
finished_at |
one,string,null |
Yes | Finished At |
finished_at_label |
one,string,null |
Yes | Finished At Label |
id |
string |
Yes | Id |
is_active |
boolean |
Yes | Is Active |
source_ref |
one,string,null |
Yes | Source Ref |
started_at |
one,string,null |
Yes | Started At |
started_at_label |
one,string,null |
Yes | Started At Label |
static_site_id |
string |
Yes | Static Site Id |
status |
string |
Yes | Status |
total_bytes |
integer |
Yes | Total Bytes |
total_bytes_label |
string |
Yes | Total Bytes Label |
trigger_kind |
string |
Yes | Trigger Kind |
updated_at |
string |
Yes | Updated At |
updated_at_label |
one,string,null |
Yes | Updated At Label |
uploaded_at |
one,string,null |
Yes | Uploaded At |
uploaded_at_label |
one,string,null |
Yes | Uploaded At Label |
list
GET /api/v1/organizations/{org_slug}/pages/sites
Operation ID: api_v1_pages_sites.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
site |
query |
string |
No | Public id of the site to open. A value naming nothing is ignored and the first site answers instead. |
Responses
200: Organization Sites page contract. domains and deployments belong to selected_site_id, which names one of sites
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cloudflare_connected |
boolean |
Yes | |
deployments |
array of object |
Yes | |
deployments[].activated_at |
string (date-time) |
Yes | |
deployments[].activated_at_label |
string |
Yes | |
deployments[].commit_sha |
string |
Yes | |
deployments[].created_at |
string (date-time) |
Yes | |
deployments[].created_at_label |
string |
Yes | |
deployments[].creator_user_id |
string |
Yes | |
deployments[].deploy_slug |
string |
Yes | |
deployments[].failure_message |
string |
Yes | |
deployments[].file_count |
integer |
Yes | |
deployments[].file_count_label |
string |
Yes | |
deployments[].finished_at |
string (date-time) |
Yes | |
deployments[].finished_at_label |
string |
Yes | |
deployments[].id |
string |
Yes | |
deployments[].is_active |
boolean |
Yes | |
deployments[].source_ref |
string |
Yes | |
deployments[].started_at |
string (date-time) |
Yes | |
deployments[].started_at_label |
string |
Yes | |
deployments[].static_site_id |
string |
Yes | |
deployments[].status |
enum: pending, uploading, uploaded, activating, active, failed, ... |
Yes | |
deployments[].total_bytes |
integer |
Yes | |
deployments[].total_bytes_label |
string |
Yes | |
deployments[].trigger_kind |
enum: cli, api, dashboard, ci |
Yes | |
deployments[].updated_at |
string (date-time) |
Yes | |
deployments[].updated_at_label |
string |
Yes | |
deployments[].uploaded_at |
string (date-time) |
Yes | |
deployments[].uploaded_at_label |
string |
Yes | |
domains |
array of object |
Yes | |
domains[].app_environment_id |
string |
Yes | |
domains[].app_service_id |
string |
Yes | |
domains[].created_at |
string (date-time) |
Yes | |
domains[].dns_mode |
enum: manual_cname, cloudflare |
Yes | |
domains[].dns_status |
enum: pending, configured, failed |
Yes | |
domains[].failure_message |
string |
Yes | |
domains[].hosted_app_id |
string |
Yes | |
domains[].hostname |
string |
Yes | |
domains[].id |
string |
Yes | |
domains[].kind |
enum: primary, redirect, preview, internal |
Yes | |
domains[].last_checked_at |
string (date-time) |
Yes | |
domains[].record_name |
string |
Yes | |
domains[].record_type |
string |
Yes | |
domains[].record_value |
string |
Yes | |
domains[].redirect_to |
string |
Yes | |
domains[].static_site_id |
string |
Yes | |
domains[].target_kind |
enum: app_service, static_site |
Yes | |
domains[].tls_status |
enum: pending, active, failed |
Yes | |
domains[].updated_at |
string (date-time) |
Yes | |
domains[].verification_status |
enum: pending, configured, failed |
Yes | |
organization_id |
string |
Yes | |
selected_site_id |
string |
Yes | |
sites |
array of object |
Yes | |
sites[].active_deployment_id |
string |
Yes | |
sites[].cdn_hostname |
string |
Yes | |
sites[].cdn_url |
string (uri) |
Yes | |
sites[].cname_target |
string |
Yes | |
sites[].created_at |
string (date-time) |
Yes | |
sites[].default_url |
string (uri) |
Yes | |
sites[].description |
string |
Yes | |
sites[].error_document |
string |
Yes | |
sites[].failure_message |
string |
Yes | |
sites[].hosted_app_id |
string |
Yes | |
sites[].id |
string |
Yes | |
sites[].index_document |
string |
Yes | |
sites[].name |
string |
Yes | |
sites[].organization_id |
string |
Yes | |
sites[].provisioned |
boolean |
Yes | |
sites[].provisioned_at |
string (date-time) |
Yes | |
sites[].region |
string |
Yes | |
sites[].replication_regions |
array of string |
Yes | |
sites[].repository_id |
string |
Yes | |
sites[].slug |
string |
Yes | |
sites[].status |
enum: draft, provisioning, active, degraded, archived, failed |
Yes | |
sites[].updated_at |
string (date-time) |
Yes | |
summary |
object |
Yes | |
summary.active |
integer |
Yes | |
summary.failed |
integer |
Yes | |
summary.total |
integer |
Yes |