---
title: "Share Domain with Workspace"
method: POST
path: "/domains/{domain_id}"
tags: ["Domains"]
---

# Share Domain with Workspace

`POST /domains/{domain_id}`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/domains/{domain_id}`
- Auth: API key in header `apikey`

Add/share an existing account domain to the workspace.

**Blocked by:**
- Revoked domain
- System domains in extended workspaces

## Path parameters

- `domain_id` string, required

## Headers

- `Workspace` string
- `apikey` string, required

## Response `200`

Domain shared

- object

## Other responses

- `403`: Not owner or domain cannot be shared

---

[API](https://skmtc.dev/rebrandly/apis/rebrandly-api.md) - [All operations](https://skmtc.dev/rebrandly/apis/rebrandly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rebrandly/apis/rebrandly-api/revisions/b098bf9fb684?raw)
