Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Cloud · sites

36 routes. Paths are relative to https://api.intersink.com/v1. This group belongs to a feature in beta.

All groups

The channel's GitHub and GitLab connections

GET/cloud/channels/{channelId}/git

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Disconnect a git connection no site uses

DELETE/cloud/channels/{channelId}/git/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Branches of a repository: ?repo=owner/name (GitHub) or project id (GitLab)

GET/cloud/channels/{channelId}/git/{id}/branches

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path
reporequiredstring, query

Response

200. data is string[].

Repositories a connection can read

GET/cloud/channels/{channelId}/git/{id}/repos

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is of type object.

Start installing the GitHub App: returns GitHub's install URL

POST/cloud/channels/{channelId}/git/github

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

GitHub connections on your other channels of this business that this channel can reuse

GET/cloud/channels/{channelId}/git/github/shareable

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Connect GitLab: { base_url?, token } (a token with the api scope, kept encrypted)

POST/cloud/channels/{channelId}/git/gitlab

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

The channel's sites

GET/cloud/channels/{channelId}/sites

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Create a site and deploy it: { name, plan, source{kind…}, branch, framework, … env[] } (first month paid now)

POST/cloud/channels/{channelId}/sites

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

One site with its domains and deploy hook

GET/cloud/channels/{channelId}/sites/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Build settings: { branch, framework, root_dir, commands, port, plan (from next month), redeploy? }

PATCH/cloud/channels/{channelId}/sites/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Delete a site: stops it and removes its build, keys and hooks. Storage it adopted from an earlier app is kept unless ?delete_adopted_volumes=true

DELETE/cloud/channels/{channelId}/sites/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path
delete_adopted_volumesrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Change the site's default address: { slug } → https://<slug>.<SITES_BASE_DOMAIN> (redeploys; the old address stops answering)

PUT/cloud/channels/{channelId}/sites/{id}/address

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Make a new deploy hook URL (the old one stops working)

POST/cloud/channels/{channelId}/sites/{id}/deploy-hook

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Recent deployments

GET/cloud/channels/{channelId}/sites/{id}/deployments

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. data is object[].

Deploy now: { force? } (force rebuilds without cache)

POST/cloud/channels/{channelId}/sites/{id}/deployments

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Cancel a queued or running deployment

POST/cloud/channels/{channelId}/sites/{id}/deployments/{dep}/cancel

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path
deprequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Build log of a deployment

GET/cloud/channels/{channelId}/sites/{id}/deployments/{dep}/log

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path
deprequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Add a domain: { domain }. Returns the DNS record to set.

POST/cloud/channels/{channelId}/sites/{id}/domains

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Remove a domain

DELETE/cloud/channels/{channelId}/sites/{id}/domains/{domainId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path
domainIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Check DNS: an A record pointing here, or (behind a proxy like Cloudflare) the TXT proof _kodkila-challenge.<domain> (pre-rename _westmonk-challenge still accepted); then the domain goes live with HTTPS

POST/cloud/channels/{channelId}/sites/{id}/domains/{domainId}/verify

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path
domainIdrequiredstring, path

Response

200. The payload in data is of type object.

Environment variables

GET/cloud/channels/{channelId}/sites/{id}/env

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Add or change variables: { vars: [{ key, value }] }

PUT/cloud/channels/{channelId}/sites/{id}/env

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Delete a variable

DELETE/cloud/channels/{channelId}/sites/{id}/env/{envId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path
envIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

The running app's latest log lines

GET/cloud/channels/{channelId}/sites/{id}/logs

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Go back to a kept build: { commit }

POST/cloud/channels/{channelId}/sites/{id}/rollback

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Builds kept for rollback

GET/cloud/channels/{channelId}/sites/{id}/rollbacks

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Keep a folder's files across deploys: { mount_path } (e.g. /data; used from the next deploy)

POST/cloud/channels/{channelId}/sites/{id}/volumes

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Stop keeping a folder across deploys: { mount_path }. Its files stay on the server (returned as kept_volume)

POST/cloud/channels/{channelId}/sites/{id}/volumes/delete

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Whether a default address <slug>.<SITES_BASE_DOMAIN> can be used: ?slug= → { slug, available, reason, url }

GET/cloud/channels/{channelId}/sites/address-check

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
slugrequiredstring, query

Response

200. The payload in data is of type object.

Plans, build presets and what is set up

GET/cloud/channels/{channelId}/sites/options

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Finish connecting GitHub: { state, installation_id, code } from GitHub's redirect

POST/cloud/git/github/callback

Needs a signed-in user (Bearer token or access_token cookie).

Response

200. The payload in data is not described in the spec yet.

Deploy hook: POST from CI or a CMS to deploy the site

POST/cloud/hooks/deploy/{siteId}/{token}

Public: no sign-in needed.

Parameters

NameTypeDescription
siteIdrequiredstring, path
tokenrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

GitHub App webhook (signed): pushes deploy matching sites

POST/cloud/hooks/github

Public: no sign-in needed.

Parameters

NameTypeDescription
x-github-eventstring, header
x-hub-signature-256string, header

Response

200. The payload in data is of type object.

GitLab push webhook of one site (X-Gitlab-Token)

POST/cloud/hooks/gitlab/{siteId}

Public: no sign-in needed.

Parameters

NameTypeDescription
siteIdrequiredstring, path
x-gitlab-tokenstring, header

Response

200. The payload in data is of type object.