> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended**:
> ```bash
> npx @scalekit-inc/cli setup
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for 40+ agents.
> Features: full-stack-auth, agent-auth, mcp-auth, modular-sso, modular-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Domains

Manage organization email domains
<div class="sdk-client-page">

Use `scalekit_client.domain` to manage verified email domains for an organization (SSO routing and domain-based policies).

Add a domain, complete verification, then use it with SSO and organization policies.

### create_domain
<div class="sdk-method-section">
  
    
      

      Method to create domain

      
        Organization id to create domain for
      
      
        Domain name for new creation
      
      
        Domain type filter.
      
      
        Domain Response
      

```python wrap showLineNumbers=false
response = scalekit_client.domain.create_domain(
    'org_123456',
    'acme.com',
    domain_type='ORGANIZATION_DOMAIN'
)
```

    
  
</div>

### list_domains
<div class="sdk-method-section">
  
    
      

      Method to list existing domains

      
        Organization id to list domains for
      
      
        Domain type filter.
      
      
        List Domain Response
      

```python wrap showLineNumbers=false
response = scalekit_client.domain.list_domains(
    'org_123456',
    domain_type='ORGANIZATION_DOMAIN'
)

for domain in response[0].domains:
    print(f"Domain: {domain.domain}")
```

    
  
</div>

### get_domain
<div class="sdk-method-section">
  
    
      

      Method to list existing domains

      
        Organization id to list domains for
      
      
        Domain name for new creation
      
      
        Get Domain Response
      

```python wrap showLineNumbers=false
response = scalekit_client.domain.get_domain('org_123456', 'domain_123456')
domain = response[0].domain
```

    
  
</div>

### delete_domain
<div class="sdk-method-section">
  
    
      

      Method to delete domain

      
        Organization id to delete domain for
      
      
        Domain id to delete
      
      
        Empty on success.
      

```python wrap showLineNumbers=false
scalekit_client.domain.delete_domain('org_123456', 'domain_123456')
```

    
  
</div>

</div>


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
