API by router
Webhost
GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/webhost/nodes'Example Response
[ { "capacity_sites": 0, "created_at": "2019-08-24T14:15:22Z", "host_instance_id": "e4401c96-13ab-4e07-90ac-7be0c56a09cc", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "region_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "used_sites": 0 }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
capacity_sites?Capacity SitesRange
1 <= value <= 500Default
25host_instance_id*Host Instance IdFormat
uuidname*NameLength
1 <= length <= 120Successful Response
application/json- response
capacity_sites*Capacity Sitescreated_at*Created AtFormat
date-timehost_instance_id*Host Instance IdFormat
uuidid*IdFormat
uuidmetadata_json?name*Nameregion_id?string|nullstatus*Statusupdated_at*Updated AtFormat
date-timeused_sites*Used Sitescurl -X POST 'https://example.com/v1/webhost/nodes' \ -H 'Content-Type: application/json' \ -d '{ "host_instance_id": "e4401c96-13ab-4e07-90ac-7be0c56a09cc", "name": "string"}'Example Response
{ "capacity_sites": 0, "created_at": "2019-08-24T14:15:22Z", "host_instance_id": "e4401c96-13ab-4e07-90ac-7be0c56a09cc", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "region_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "used_sites": 0}GET
HTTPBearerheader
AuthorizationBearer <token>node_id*Node IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
capacity_sites*Capacity Sitescreated_at*Created AtFormat
date-timehost_instance_id*Host Instance IdFormat
uuidid*IdFormat
uuidmetadata_json?name*Nameregion_id?string|nullstatus*Statusupdated_at*Updated AtFormat
date-timeused_sites*Used Sitescurl -X GET 'https://example.com/v1/webhost/nodes/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "capacity_sites": 0, "created_at": "2019-08-24T14:15:22Z", "host_instance_id": "e4401c96-13ab-4e07-90ac-7be0c56a09cc", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "region_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "used_sites": 0}GET
HTTPBearerheader
AuthorizationBearer <token>node_id*Node IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
available_sites*Available Sitescapacity_sites*Capacity Sitesnode_id*Node IdFormat
uuidstatus*Statusused_sites*Used Sitescurl -X GET 'https://example.com/v1/webhost/nodes/497f6eca-6276-4993-bfeb-53cbbbba6f08/capacity'Example Response
{ "available_sites": 0, "capacity_sites": 0, "node_id": "6e0bdcac-9717-4a6f-972e-97489dffeb0c", "status": "string", "used_sites": 0}GET
HTTPBearerheader
AuthorizationBearer <token>node_id*Node IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
app_sites?App SitesDefault
0collected_at?Collected AtFormat
date-timedisk_available_bytes?Disk Available BytesDefault
0disk_total_bytes?Disk Total BytesDefault
0disk_used_bytes?Disk Used BytesDefault
0error?string|nullhost_instance_id*Host Instance IdFormat
uuidhost_instance_status*Host Instance Statuskeep_bytes_budget?integer|nullkeep_count?integer|nulllive_sites?Live SitesDefault
0node_id*Node IdFormat
uuidreachable*Reachablerelease_bytes?Release BytesDefault
0release_count?Release CountDefault
0total_sites?Total SitesDefault
0curl -X GET 'https://example.com/v1/webhost/nodes/497f6eca-6276-4993-bfeb-53cbbbba6f08/telemetry'Example Response
{ "app_sites": 0, "collected_at": "2019-08-24T14:15:22Z", "disk_available_bytes": 0, "disk_total_bytes": 0, "disk_used_bytes": 0, "error": "string", "host_instance_id": "e4401c96-13ab-4e07-90ac-7be0c56a09cc", "host_instance_status": "string", "keep_bytes_budget": 0, "keep_count": 0, "live_sites": 0, "node_id": "6e0bdcac-9717-4a6f-972e-97489dffeb0c", "reachable": true, "release_bytes": 0, "release_count": 0, "total_sites": 0}GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/webhost/sites'Example Response
[ { "created_at": "2019-08-24T14:15:22Z", "current_commit_sha": "string", "current_release_id": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "dedicated_instance_id": "e82b7abe-feea-468c-83e4-862e76c31e5f", "deployed_at": "2019-08-24T14:15:22Z", "hosting_mode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "primary_domain": "string", "repo_path": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "webhost_node_id": "74e0578b-8bae-4d5e-9ee2-da58f6bde41d", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3" }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
customer_id?|nulldedicated_instance_id?|nullhosting_mode*Hosting ModeMatch
^(dedicated|shared)$name*NameLength
1 <= length <= 160primary_domain?|nullwebhost_node_id?|nullwebsite_config_id?|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timecurrent_commit_sha?string|nullcurrent_release_id?string|nullcustomer_id?|nulldedicated_instance_id?|nulldeployed_at?|nullhosting_mode*Hosting Modeid*IdFormat
uuidmetadata_json?name*Nameprimary_domain?string|nullrepo_path?string|nullstatus*Statustenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timewebhost_node_id?|nullwebsite_config_id?|nullcurl -X POST 'https://example.com/v1/webhost/sites' \ -H 'Content-Type: application/json' \ -d '{ "hosting_mode": "string", "name": "string"}'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "current_commit_sha": "string", "current_release_id": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "dedicated_instance_id": "e82b7abe-feea-468c-83e4-862e76c31e5f", "deployed_at": "2019-08-24T14:15:22Z", "hosting_mode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "primary_domain": "string", "repo_path": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "webhost_node_id": "74e0578b-8bae-4d5e-9ee2-da58f6bde41d", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}GET
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timecurrent_commit_sha?string|nullcurrent_release_id?string|nullcustomer_id?|nulldedicated_instance_id?|nulldeployed_at?|nullhosting_mode*Hosting Modeid*IdFormat
uuidmetadata_json?name*Nameprimary_domain?string|nullrepo_path?string|nullstatus*Statustenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timewebhost_node_id?|nullwebsite_config_id?|nullcurl -X GET 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "current_commit_sha": "string", "current_release_id": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "dedicated_instance_id": "e82b7abe-feea-468c-83e4-862e76c31e5f", "deployed_at": "2019-08-24T14:15:22Z", "hosting_mode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "primary_domain": "string", "repo_path": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "webhost_node_id": "74e0578b-8bae-4d5e-9ee2-da58f6bde41d", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}PATCH
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullapplication/json- body
dedicated_instance_id?|nullname?|nullprimary_domain?|nullstatus?|nullwebhost_node_id?|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timecurrent_commit_sha?string|nullcurrent_release_id?string|nullcustomer_id?|nulldedicated_instance_id?|nulldeployed_at?|nullhosting_mode*Hosting Modeid*IdFormat
uuidmetadata_json?name*Nameprimary_domain?string|nullrepo_path?string|nullstatus*Statustenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timewebhost_node_id?|nullwebsite_config_id?|nullcurl -X PATCH 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "current_commit_sha": "string", "current_release_id": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "dedicated_instance_id": "e82b7abe-feea-468c-83e4-862e76c31e5f", "deployed_at": "2019-08-24T14:15:22Z", "hosting_mode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "primary_domain": "string", "repo_path": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "webhost_node_id": "74e0578b-8bae-4d5e-9ee2-da58f6bde41d", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}DELETE
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty
GET
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidperiod?PeriodDefault
7X-Api-Key?string|nullSuccessful Response
application/json- response
daily_views?array<>device_breakdown?period_days*Period Daystop_pages*array<>total_views*Total Viewsunique_sessions*Unique Sessionscurl -X GET 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/analytics'Example Response
{ "daily_views": [ {} ], "device_breakdown": {}, "period_days": 0, "top_pages": [ {} ], "total_views": 0, "unique_sessions": 0}POST
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
message*Messagestatus*Statustask_id?string|nullwebsite_id*Website IdFormat
uuidcurl -X POST 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/deploy'Example Response
{ "message": "string", "status": "string", "task_id": "string", "website_id": "9a5872c2-0bf0-4c68-9c27-86a09b05bf66"}GET
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidunread_only?Unread OnlyDefault
falseX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/forms'Example Response
[ { "created_at": "2019-08-24T14:15:22Z", "form_data": {}, "hosted_website_id": "2e68090f-4b97-4f89-8ca4-5adeb58dde95", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_read": true, "page_slug": "string", "submitter_email": "string", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3" }]GET
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
total*Totalunread*Unreadcurl -X GET 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/forms/stats'Example Response
{ "total": 0, "unread": 0}PATCH
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidsubmission_id*Submission IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timeform_data*hosted_website_id?|nullid*IdFormat
uuidis_read*Is Readpage_slug?string|nullsubmitter_email?string|nullwebsite_config_id*Website Config IdFormat
uuidcurl -X PATCH 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/forms/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "form_data": {}, "hosted_website_id": "2e68090f-4b97-4f89-8ca4-5adeb58dde95", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_read": true, "page_slug": "string", "submitter_email": "string", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}GET
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/history'Example Response
[ { "actor_user_id": "d6ed4497-4325-4995-9f49-e288b7192e46", "artifact_hash": "string", "change_source": "string", "commit_sha": "string", "created_at": "2019-08-24T14:15:22Z", "deployed_at": "2019-08-24T14:15:22Z", "hosted_website_id": "2e68090f-4b97-4f89-8ca4-5adeb58dde95", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "notes": "string", "release_id": "string", "status": "string" }]POST
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullapplication/json- body
target_node_id*Target Node IdFormat
uuidSuccessful Response
application/json- response
message*Messagestatus*Statustask_id?string|nullwebsite_id*Website IdFormat
uuidcurl -X POST 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/live-migrate' \ -H 'Content-Type: application/json' \ -d '{ "target_node_id": "b1754cfa-2739-4a10-a13a-c665edec0e55"}'Example Response
{ "message": "string", "status": "string", "task_id": "string", "website_id": "9a5872c2-0bf0-4c68-9c27-86a09b05bf66"}POST
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullapplication/json- body
dedicated_instance_id?|nullprimary_domain?|nulltarget_mode*Target ModeMatch
^(shared|dedicated)$webhost_node_id?|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timecurrent_commit_sha?string|nullcurrent_release_id?string|nullcustomer_id?|nulldedicated_instance_id?|nulldeployed_at?|nullhosting_mode*Hosting Modeid*IdFormat
uuidmetadata_json?name*Nameprimary_domain?string|nullrepo_path?string|nullstatus*Statustenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timewebhost_node_id?|nullwebsite_config_id?|nullcurl -X POST 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/migrate' \ -H 'Content-Type: application/json' \ -d '{ "target_mode": "string"}'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "current_commit_sha": "string", "current_release_id": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "dedicated_instance_id": "e82b7abe-feea-468c-83e4-862e76c31e5f", "deployed_at": "2019-08-24T14:15:22Z", "hosting_mode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "primary_domain": "string", "repo_path": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "webhost_node_id": "74e0578b-8bae-4d5e-9ee2-da58f6bde41d", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}POST
HTTPBearerheader
AuthorizationBearer <token>website_id*Website IdFormat
uuidX-Api-Key?string|nullapplication/json- body
git_ref?|nullrelease_id?|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timecurrent_commit_sha?string|nullcurrent_release_id?string|nullcustomer_id?|nulldedicated_instance_id?|nulldeployed_at?|nullhosting_mode*Hosting Modeid*IdFormat
uuidmetadata_json?name*Nameprimary_domain?string|nullrepo_path?string|nullstatus*Statustenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timewebhost_node_id?|nullwebsite_config_id?|nullcurl -X POST 'https://example.com/v1/webhost/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/rollback' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "current_commit_sha": "string", "current_release_id": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "dedicated_instance_id": "e82b7abe-feea-468c-83e4-862e76c31e5f", "deployed_at": "2019-08-24T14:15:22Z", "hosting_mode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "name": "string", "primary_domain": "string", "repo_path": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "webhost_node_id": "74e0578b-8bae-4d5e-9ee2-da58f6bde41d", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}