Documentation
Account and keys
View .mdOpenAPI

Remove a workspace domain

DELETEhttps://weights.fyi/run/v1/workspaces/domains/{domain}scope: manage
text
DELETE https://weights.fyi/run/v1/workspaces/domains/<domain>
Authorization: Bearer <token>                    scope: manage
Available since
2026-11-15 workspace domains: included in this build; see What is live for deployment status.
Answer time
synchronous: one database write.

Removes a claimed or verified email domain from the calling workspace. New sign-ins at that domain can no longer discover or auto-join the workspace through that claim, and another workspace may now verify the domain.

People who already joined the workspace stay members until an owner or admin removes them in Team & workspace.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token with manage on the workspace.
domainpathyesThe claimed email domain, such as awow.io.

Return value

200 OK:

FieldMeaning
deletedtrue.
domainThe normalised domain that was removed.

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work.Use a valid token.
403scope_required, workspace_role_requiredToken lacks manage, or caller is neither owner nor admin.Use an owner or admin manage token.
404domain_not_foundThis workspace has not claimed that domain.Check workspace.domains in GET /v1/workspaces.

Examples

sh
curl -s -X DELETE https://weights.fyi/run/v1/workspaces/domains/DOMAIN \
  -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{"deleted": true, "domain": "awow.io"}

History

  • 2026-11-15 workspace domains: added.

See also