---
title: "List domains"
method: GET
path: "/api/v1/workspace/{workspace_id}/domains"
tags: ["Domains"]
---

# List domains

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

## Request

- Base URL: `https://api.linklyhq.com`
- URL: `https://api.linklyhq.com/api/v1/workspace/{workspace_id}/domains`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/linklyhq/apis/linkly-url-shortener-api/docs/api/v1/workspace/:workspace_id/domains/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all custom domains configured for a workspace. These domains can be used when creating short links.

## Path parameters

- `workspace_id` string, required

## Response `200`

Domain

- object: List of custom domains configured for a workspace.
  - `domains` object[]
    - `name` string, nullable

## Other responses

- `403`: Forbidden
- `404`: Error

---

[API](https://skmtc.dev/linklyhq/apis/linkly-url-shortener-api.md) - [All operations](https://skmtc.dev/linklyhq/apis/linkly-url-shortener-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linklyhq/apis/linkly-url-shortener-api/revisions/968598ef7055?raw)
