Read the current public signup mode.
GET
/v1/auth/signup-mode
const url = 'https://api.opdns.io/v1/auth/signup-mode';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.opdns.io/v1/auth/signup-modePublic, rate-limited discovery for the signup page. The effective mode is the persisted admin override, otherwise OPDNS_SIGNUP_MODE, otherwise open. This response does not disclose invite codes or allowlist entries.
Responses
Section titled “Responses”Effective signup mode.
Media typeapplication/json
object
mode
required
string
Example
{ "mode": "open"}Rate limited (rate_limited).
Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required
Stable machine code.
string
detail
string
errors
Array<object>
object
field
required
string
message
required
string
request_id
string
retry_after
Seconds, repeating the Retry-After header (rate limits, offline nodes).
integer
Example
{ "type": "https://opdns.io/problems/rate_limited", "title": "Too Many Requests", "status": 429, "code": "rate_limited", "detail": "too many requests", "request_id": "5f2c9a0e7b1d4c38", "retry_after": 6}Headers
Section titled “Headers”Retry-After
integer