The email domains people may join the workspace from
const url = 'https://example.com/v1/auth/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/auth/join-domains \ --header 'Authorization: Bearer <token>'Someone with a verified email at one of these domains, who signs in by a way that counts for it (a Google Workspace account there, a Microsoft work account, or the emailed link, which proves the mailbox) and whom the workspace doesn’t have yet, is offered the workspace and joins with a press, holding the domain’s role. GitHub never counts. A sign-in through the workspace’s own identity provider follows that provider’s join setting instead. Someone the workspace removed stays out. Members read it. Mounted when the deployment keeps join domains.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The allowed domains.
The workspace’s allowed domains, the first allowed first.
object
Example
{ "data": [ { "role": "viewer" } ]}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Not a member of the workspace (permission-denied). Without an authorization store, anyone reads it.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”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.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
POST /v1/auth/join-domains: Let people at an email domain join the workspacePATCH /v1/auth/join-domains/{domain}: Change what someone joining by a domain getsPOST /v1/auth/join-domains/{domain}/unregister: Stop letting people at a domain join- People, API keys and service accounts
- Error code
authz-backend-unavailable - Error code
database-busy - Error code
permission-denied - Error code
rate-limit-exceeded - Every error code