---
title: "AI-generate a custom domain configuration"
method: POST
path: "/workspace/{workspaceId}/custom-domain/generate"
tags: ["Workspace"]
---

# AI-generate a custom domain configuration

`POST /workspace/{workspaceId}/custom-domain/generate`

## Request

- Base URL: `https://api.savanto.ai`
- URL: `https://api.savanto.ai/workspace/{workspaceId}/custom-domain/generate`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required

## Request body

- object
  - `description` string, required
  - `references` object[]
    - `type` 'url' | 'text', required
    - `value` string, required
    - `label` string

## Response `200`

Generated config

- object
  - `object` 'event', required
  - `requestId` string, required
  - `data` object, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `413`: Payload too large
- `429`: Rate limit exceeded

---

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