---
title: "Create domain in workspace"
method: POST
path: "/api/v1/workspace/{workspace_id}/domains"
tags: ["Domains"]
---

# Create domain in workspace

`POST /api/v1/workspace/{workspace_id}/domains`

Add a new custom domain to a specific workspace. You must configure a CNAME DNS record pointing to domains.linklyhq.com before adding the domain.

## Path parameters

- `workspace_id` string, required

## Request body

- object
  - `name` string, required — Domain name (e.g., links.example.com)

## Response `200`

Domain

- Domain — Response schema for a domain
  - `name` string, nullable
  - `workspace_id` integer, nullable

## Other responses

- `400` — Error
- `403` — Forbidden

---

[API](https://skmtc.net/linklyhq/apis/linkly-url-shortener-api.md) · [All operations](https://skmtc.net/linklyhq/apis/linkly-url-shortener-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/linklyhq/linkly-url-shortener-api/revisions/351c1f004617/schema)
