The email domains a tenant lets people join from
GET
/v1/system/tenants/{tenantId}/join-domains
const url = 'https://example.com/v1/system/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/join-domains';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The allowed domains.
Media typeapplication/json
The workspace’s allowed domains, the first allowed first.
object
Example
{ "data": [ { "role": "viewer" } ]}Missing / malformed / expired / revoked bearer token.
Media typeapplication/json
object
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
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
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
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
POST /v1/system/tenants/{tenantId}/join-domains: Let people at an email domain join a tenantGET /v1/system/tenants: List tenantsPOST /v1/system/tenants: Create a tenantGET /v1/system/tenants/{tenantId}: Read a tenant- Error code
authz-backend-unavailable - Error code
database-busy - Error code
system-principal-required - Error code
system-scope-missing - Error code
tenant-not-found - Every error code