Deployment facts for clients.
GET
/v1/meta
const url = 'https://api.opdns.io/v1/meta';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/metaEnvironment, binary version, resolver name and dashboard origin. Cacheable for
five minutes (Cache-Control: public, max-age=300); changes only on deploy.
Responses
Section titled “Responses”Meta.
Media typeapplication/json
object
env
required
string
version
required
string
dns_domain
required
Resolver name; profiles are <id>.<dns_domain> and https://<dns_domain>/<id>.
string
dashboard_origin
required
Dashboard origin, empty when not configured.
string
api_version
required
info.version of the API document this server implements (also the X-Opdns-Api-Version header).
string
geoip_attribution
required
Notice the GeoIP database’s licence asks to show next to country data (destinations); empty when none.
string
Example
{ "env": "dev", "dns_domain": "dns.opdns.net"}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