Skip to content

Domains API

Domains allow you to organize pipelines by team, function, or any logical grouping.

Create a new domain. Requires domains:write permission.

{
"name": "Marketing",
"description": "Marketing team data pipelines",
"color": "#10B981"
}

List all domains in the organization. Requires domains:read permission.

Query Parameters:

ParameterTypeDefaultDescription
limitint100Maximum results
offsetint0Pagination offset
include_countsboolfalseInclude pipeline counts
[
{
"id": "uuid",
"name": "Marketing",
"description": "Marketing team data pipelines",
"color": "#10B981",
"created_at": "2024-01-15T10:00:00Z"
}
]
[
{
"id": "uuid",
"name": "Marketing",
"description": "Marketing team data pipelines",
"color": "#10B981",
"pipeline_count": 5,
"created_at": "2024-01-15T10:00:00Z"
}
]

Get a domain by ID. Requires domains:read permission.

{
"id": "uuid",
"name": "Marketing",
"description": "Marketing team data pipelines",
"color": "#10B981",
"created_at": "2024-01-15T10:00:00Z",
"updated_at": null
}

Update a domain. Requires domains:write permission.

{
"name": "Marketing & Analytics",
"description": "Updated description",
"color": "#3B82F6"
}

All fields are optional - only provided fields are updated.

Delete a domain. Requires domains:delete permission.

Returns 204 No Content.

Errors:

  • 403 Forbidden - Domain has pipelines assigned. Move or delete pipelines first.
  • 404 Not Found - Domain not found.

Domains support any valid hex color code. Suggested palette:

ColorHexUse Case
Gray#6B7280Default
Blue#3B82F6Engineering
Green#10B981Marketing
Purple#8B5CF6Product
Orange#F59E0BSales
Red#EF4444Operations
Cyan#06B6D4Analytics

Assign pipelines to domains when creating or updating:

{
"name": "HubSpot to BigQuery",
"domain_id": "uuid",
"config": { ... }
}

Filter pipelines by domain:

GET /api/pipelines?domain_id=uuid

Users can have elevated permissions within specific domains:

// Viewer at org level, but Admin in Marketing domain
{
"org_role": "viewer",
"domain_overrides": [
{"domain_id": "marketing-uuid", "role": "admin"}
]
}

See Users API for domain role endpoints.