Documentation
Account and keys
View .mdOpenAPI

Verify a workspace domain

POSThttps://weights.fyi/run/v1/workspaces/domains/{domain}/verifyscope: manage
text
POST https://weights.fyi/run/v1/workspaces/domains/<domain>/verify
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: reads the domain's DNS TXT records over HTTPS (5 s timeout per query).

Checks DNS TXT records at _zyxio-domain-challenge.<domain> (and compatible challenge labels) for the token issued by POST /v1/workspaces/domains. When found, the workspace's claim becomes verified.

Only one workspace may hold a verified claim on a domain at a time. Calling verify on an already verified domain returns 200 immediately without repeating the DNS lookup.

Request

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

Return value

200 OK:

FieldMeaning
domain, status, join_modeDomain name, verified, and the active admission mode.
created_at, verified_at, last_checked_atTimestamps in UTC.
dns_record, accepted_recordsThe TXT record instructions for this claim.

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_required, operator_workspace_domainToken lacks manage, caller is not an owner or admin, or open join mode is not allowed here.Use an owner or admin manage token.
404domain_not_foundThis workspace has not claimed that domain.Claim it first with POST /v1/workspaces/domains.
409domain_verification_failed, domain_already_verifiedThe TXT record was not found yet, or another workspace already verified the domain.Publish the TXT record and wait for DNS propagation, or remove the claim in the other workspace.
503domain_dns_unavailableThe DNS resolver could not be reached.Retry shortly.

Examples

sh
curl -s -X POST https://weights.fyi/run/v1/workspaces/domains/DOMAIN/verify \
  -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{"domain": "awow.io", "status": "verified", "join_mode": "discoverable", "created_at": "2026-11-15T10:00:00Z", "verified_at": "2026-11-15T10:05:00Z", "last_checked_at": "2026-11-15T10:05:00Z"}

History

  • 2026-11-15 workspace domains: added.

See also