---
title: "Build the one-click apply URL for a domain"
method: POST
path: "/templates/{serviceId}/apply-url"
tags: ["Templates"]
---

# Build the one-click apply URL for a domain

`POST /templates/{serviceId}/apply-url`

## Request

- Base URL: `https://api.customdomain.ai/v1`
- URL: `https://api.customdomain.ai/v1/templates/{serviceId}/apply-url`
- Auth: none required

## Path parameters

- `serviceId` string, required

## Request body

- object
  - `domain` string, required
  - `host` string
  - `provider_base` string, required
  - `vars` object

## Response `200`

apply_url

- object
  - `apply_url` string, uri

## Other responses

- `400`: Error envelope: {code, title, details}.
- `404`: Error envelope: {code, title, details}.
- `503`: Error envelope: {code, title, details}.

---

[API](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api.md) · [All operations](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/revisions/34d89cb7a7cd?raw)
