viakite
Dashboard

API/Projects/Change how people from the domain join

Change how people from the domain join

PATCH/v1/orgs/{org}/domains/{domain}

A field left out is not changed.

Secret keyNeeds org.domainsapi.vk.viabio.me

Path parameters

orgstringrequired
The organization's id (org_…).
domainstringrequired
The domain's id (dom_…).

Body

join_modestring
automaticrequest
default_rolestring
A built-in role key (not owner) or a custom role id.
default_group_idstring
company_emails_onlyboolean

Responses

The domain.

idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
domainstringrequired
statusstringrequired
pendingverified
txt_recordobjectrequired
The DNS record that proves a domain.
Show 3 fields
typestringrequired
namestringrequired
valuestringrequired
verified_atstring · date-time | nullrequired
join_modestringrequired
automaticrequest
default_rolestringrequired
A built-in role key or a custom role id.
default_group_idstring
company_emails_onlybooleanrequired
created_atstring · date-timerequired
A time in UTC, ISO 8601.
updated_atstring · date-timerequired
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.

StatusCode
422validation_error