Verify a workspace domain
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
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and a token with manage on the workspace. |
domain | path | yes | The claimed email domain, such as awow.io. |
Return value
200 OK:
| Field | Meaning |
|---|---|
domain, status, join_mode | Domain name, verified, and the active admission mode. |
created_at, verified_at, last_checked_at | Timestamps in UTC. |
dns_record, accepted_records | The TXT record instructions for this claim. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work. | Use a valid token. |
403 | scope_required, workspace_role_required, operator_workspace_domain | Token lacks manage, caller is not an owner or admin, or open join mode is not allowed here. | Use an owner or admin manage token. |
404 | domain_not_found | This workspace has not claimed that domain. | Claim it first with POST /v1/workspaces/domains. |
409 | domain_verification_failed, domain_already_verified | The 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. |
503 | domain_dns_unavailable | The DNS resolver could not be reached. | Retry shortly. |
Examples
curl -s -X POST https://weights.fyi/run/v1/workspaces/domains/DOMAIN/verify \
-H "Authorization: Bearer $WEIGHTS_API_KEY"{"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
- PATCH /v1/workspaces/domains/{domain} to change
join_mode. - Teams and workspaces, the topic.