Templates

Deploy a template with one call: creates the project, its repository or app, secrets, database and default URL, then deploys

post/templates/{templateId}/deploy

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/templates/{templateId}/deploy
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

templateIdstring required
Example:n8n

Query parameters

orgIdstring

Organization (default: the only one of the caller)

Headers

idempotency-keystring

Retrying with the same key returns the same project instead of creating another

Request body

namestring

project name, also used for the default URL <slug>.<app domain>; default: the template name

deployboolean

starters only: start the first build right away (default true)

Response

Created; follow GET /projects/{id}/template until state is ready

Changes

No recorded changes to this operation across all 1 revision of this API.