Change how people from the domain join
PATCH/ v1/ orgs/ {org}/ domains/ {domain}
A field left out is not changed.
Path parameters
org
The organization's id (
org_…).domain
The domain's id (
dom_…).Body
join_mode
automaticrequestdefault_role
A built-in role key (not owner) or a custom role id.
default_group_id
company_emails_only
Responses
The domain.
id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).domain
status
pendingverifiedtxt_record
The DNS record that proves a domain.
Show 3 fieldsHide fields
type
name
value
verified_at
join_mode
automaticrequestdefault_role
A built-in role key or a custom role id.
default_group_id
company_emails_only
created_at
A time in UTC, ISO 8601.
updated_at
A time in UTC, ISO 8601.
Example response
1{2"id": "dom_01JD8Q2M4W9XK3T7B5",3"domain": "acme.com",4"status": "pending",5"txt_record": {6"type": "TXT",7"name": "_viakite.acme.com",8"value": "viakite-verify=3f9a…"9},10"verified_at": "2026-11-21T09:30:00Z",11"join_mode": "automatic",12"default_role": "string",13"default_group_id": "id_01JD8Q2M4W9XK3T7B5",14"company_emails_only": true,15"created_at": "2026-11-21T09:30:00Z",16"updated_at": "2026-11-21T09:30:00Z"17}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
validation_error |