Team

Claim a domain

Starts verifying a domain: the answer carries the TXT record to publish. Claiming one again before it is verified issues a new record. A domain another team has verified cannot be claimed.

post/api/v1/sso/domains

Request

  • Base URL: http://localhost:5180
  • URL: http://localhost:5180/api/v1/sso/domains
  • Auth: API key in cookie better-auth.session_token

Request body

domainstring required

The domain, such as example.com. A scheme, a path or an @ in front is dropped.

mode'auto_join' | 'restricted'

auto_join puts anyone signing in with an address there on the team; restricted also requires them to sign in through the provider.

Response

Single sign-on for this team as it stands.

okunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.