Creating a Custom Domain
Create and configure a custom domain pack via the dashboard API.
1. Create the domain
Response:
Creating a domain automatically adds its key to your tenant's enabled_domains.
Domain key rules
- Lowercase letters, numbers, and hyphens only:
^[a-z0-9-]+$ - Must be unique within your tenant
- Used as the URL path segment:
POST /v1/{domainKey}/{intentKey}
System prompt
The systemPrompt is injected at the top of every intent call within the domain. It sets the AI's role and context for all operations in this domain. Individual intents can add intent-specific instructions on top of it via their promptTemplate.
2. Verify in dashboard
After creation, the domain appears in your Packs page alongside built-in domains. You can manage intents and source types from there or continue via the API.