Skip to content

The email domains a tenant lets people join from

View as Markdown
GET
/v1/system/tenants/{tenantId}/join-domains
curl --request GET \
--url https://example.com/v1/system/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/join-domains \
--header 'Authorization: Bearer <token>'

As the tenant’s own GET /v1/auth/join-domains, for the operator. Takes system:join-domains, and every read is recorded.

tenantId
required
string format: uuid

The tenant’s id.

The allowed domains.

Media typeapplication/json

The workspace’s allowed domains, the first allowed first.

object
data
required
Array<object>

An email domain the workspace lets people join from.

object
domain
required

Lower case, as an A-label (xn--bcher-kva.de for bücher.de), e.g. acme.com.

string
>= 1 characters
role
required

What someone who joins by the domain gets: viewer or runner (who also runs its agents and flows) on the tenant’s default project, or none, a tenant member with no project. Never tenant admin.

string
Allowed values: viewer runner none
createdAt
required
string format: date-time
createdBy
required

Who allowed it: user:<id>, a tenant admin, or the deployment’s own token as its seed user on a runtime serving one tenant; service_account:<id>, a key holding kindgi:system that acts as one; or system-key:<id> on the system routes (system-key:boot for the deployment’s own token).

string
>= 1 characters
updatedAt
string format: date-time
updatedBy

Who last changed its role, in createdBy’s forms: any tenant admin, for a lower one.

string
>= 1 characters
hasMore
required
boolean
Example
{
"data": [
{
"role": "viewer"
}
]
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

A tenant’s key or session (system-principal-required), or a system key without system:join-domains (system-scope-missing).

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

No tenant with that id, or a purged one (tenant-not-found).

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

See also