Skip to content
Sign inDashboard

List the profiles of the organization.

GET
/v1/profiles
curl --request GET \
--url 'https://api.opdns.io/v1/profiles?limit=50' \
--cookie __Host-opdns_session=<__Host-opdns_session>

Token scope: profiles:read.

limit
integer
default: 50 >= 1 <= 200

Page size.

cursor
string
<= 1024 characters

The next_cursor of the previous page (opaque).

Profiles.

Media typeapplication/json
object
next_cursor
required

The cursor of the next page (pass it as cursor). Null on the last page.

string | null
profiles
required
Array<object>
object
id
required

Public 6-character id. Never 000000.

string
/^[a-z0-9]{6}$/
name
required
string
version
required
integer
>= 1
security
required
object
rebinding
required
boolean
idn_homograph
required
boolean
typosquat
required
boolean
nrd
required
boolean
dga
required
boolean
cryptojacking
required
boolean
threat_intel
required
boolean
csam
required
boolean
parental
required
object
categories
required
Array<string>
services
required
Array<string>
safe_search
required
boolean
youtube_restricted
required
boolean
schedules

Recreation schedules (0.35.0). Each schedule blocks its categories and services by the clock, in settings.timezone. Empty for a profile without schedules.

Array<object>
<= 10 items

A recreation schedule (0.35.0). In mode allow_during, the schedule blocks its categories and services outside its windows (the windows are recreation time). In mode block_during, it blocks them during its windows. Windows are on a weekly grid of 15-minute slots in the settings.timezone of the profile (UTC when unset), with daylight saving time. Windows can overlap. A schedule blocks in addition to categories and services, which always block. The allowlist wins over both. A query that a schedule blocks carries the EDE extra text blocked by schedule <name>, and the log records it with the reason schedule: <name>. Problems get 422 with the field path, such as parental.schedules[0].windows[1].start.

object
name
required

Unique within the profile, ignoring case. No leading or trailing space.

string
>= 1 characters <= 50 characters
enabled
required
boolean
mode

Optional on input (allow_during). Always present in responses.

string
default: allow_during
Allowed values: allow_during block_during
categories
required
Array<string>
services
required
Array<string>
windows
required
Array<object>
<= 100 items

A span of the week in the time zone of the profile. It starts on day at start. Without end_day, it ends at end the same day when end is later than start. Otherwise, it ends the next day (it wraps midnight, and end equal to start is 24 hours). With end_day, it ends at the first end_day end after its start. So it can span several days, up to the whole week (end_day and end equal to day and start).

object
day
required
string
Allowed values: mon tue wed thu fri sat sun
start
required
string
/^([01][0-9]|2[0-3]):(00|15|30|45)$/
end
required
string
/^(([01][0-9]|2[0-3]):(00|15|30|45)|24:00)$/
end_day
string
Allowed values: mon tue wed thu fri sat sun
settings
required
object
block_mode
required

How the resolver answers a blocked name. nxdomain (the default) says that the name does not exist. null answers 0.0.0.0 and ::. refused refuses the query. block-page answers the block page address, so a browser shows which setting blocked the name. block-page works only where the block page runs (GET /v1/capabilities). Otherwise, the API answers 422 settings.block_mode. On https:// names, the page needs the block page certificate of the profile installed (POST /v1/profiles/{id}/block-page/ca).

string
Allowed values: nxdomain null refused block-page
block_page_show_name

Shows the name of the profile on its block page. Off by default. When off, the page names only the setting that blocked the name.

boolean
logs_enabled
required
boolean
log_client_ip
required
boolean
log_domains
required
boolean
log_destination
required
string
Allowed values: cloud self-hosted both none
retention_days
required
integer
>= 1 <= 90
cname_uncloak
required
boolean
cache_boost_ttl
required
integer
<= 86400
ecs
required

EDNS Client Subnet (RFC 7871) forwarded to authoritative servers. off sends none (an explicit /0 opt-out). anonymised (the default for new profiles) sends the network of the client truncated to /24 (IPv4) or /56 (IPv6), never the address itself. CDNs pick a nearby server, and every client of one prefix shares one cached answer. full sends the address of the client itself (/32 and /128 by default). The operator can set a lower cap, often /64 for IPv6. So the IP address of the client reaches every authoritative server queried for it: better CDN steering, less privacy. If a client sends its own ECS option, the resolver forwards it no wider than the mode allows, and always honors its /0 opt-out.

string
Allowed values: off anonymised full
web3

Resolves Web3 names (0.39.0) for this profile. ENS .eth names resolve as a CNAME to the gateway of the operator (eth.limo by default). Unstoppable Domains and Handshake names resolve where the operator configures a gateway or resolver for them. The gateway sees every Web3 name requested. No chain client runs on the edge. Lists and the denylist block Web3 names and their gateway hosts like any name. Absent or false (the default): these names are not ICANN names and answer NXDOMAIN.

boolean
node_queue_hours
required

How long opdns holds the logs of this profile for its self-hosted node while the node is offline (log destination self-hosted or both), in hours, 24 at most. 0 holds nothing: opdns drops the records made while the node is offline (with both, it still keeps the cloud copy). opdns never delivers records older than the window. retention_days is the cloud log retention, a different setting. Profiles saved before 0.9.0 read as 24.

integer
default: 24
Allowed values: 0 1 12 24
log_region
required

Where opdns stores the query log of this profile in the cloud (log destination cloud or both). ca: Canada, the only region available today and the default. eu is announced but not accepted yet: the API refuses it with a 422 problem (settings.log_region) until the region exists. The logs of a self-hosted node stay on the node. Profiles saved before 0.10.0 read as ca.

string
default: ca
Allowed values: ca eu
protection

The Privacy sliders of the dashboard: the step, 1 (least restrictive) to 5 (most restrictive), per protection group. Only ads_trackers, malware_phishing and scams_abuse have a slider. Any other key is an unknown field (400 bad_request). This includes telemetry, because device telemetry keeps its per-manufacturer switches. A step outside 1 to 5 gets a 422 problem (settings.protection.<group>). The steps record the positions of the sliders. The lists of the profile still do the filtering (PUT /v1/profiles/{id}/lists), so a client sets both. For each group, the lists of a set of steps are the catalog lists that are not retired (GET /v1/lists), of that group, whose level is 1 to the step of the group. A group without a step counts as step 3. A step never chooses a list outside these groups. New profiles store every group at step 3 and start with those lists. Profiles saved before 0.30.0 have no steps, so clients derive a step from the lists.

object
ads_trackers
integer
>= 1 <= 5
malware_phishing
integer
>= 1 <= 5
scams_abuse
integer
>= 1 <= 5
timezone

The IANA time zone of the profile (0.35.0), in which parental schedules run. Absent when never set. Schedules then run in UTC. An unknown name gets a 422 problem (settings.timezone).

string
<= 64 characters
endpoints
required

How to reach the resolver of the profile, computed from the configuration of the deployment.

object
doh
required
string format: uri
dot
required

DoT host name. <device>-<id>.<domain> also identifies a device.

string
doq
required
string
ipv6
required

IPv6 resolver addresses that encode the profile id, one per anycast /48.

Array<string>
do53_ipv4
required

Anycast IPv4 resolvers. They identify the profile only through a linked IP.

Array<string>
suspended
required

The operator suspended the profile. Until it is reinstated, the resolvers (the cloud edges and the self-hosted nodes of the profile) answer every query of it REFUSED, without logging. The answer has Extended DNS Error 15 (Blocked) and the text profile suspended, or profile suspended: <suspended_public_reason>. Writes to the profile fail with 409 profile_suspended. The API never shows the internal reason of the operator.

boolean
suspended_public_reason

The explanation of the operator for the users of the profile. Present only while the profile is suspended and the operator gave one. The resolvers send it in the Extended DNS Error text of every refused answer.

string
<= 120 characters
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{
"profiles": [
{
"parental": {
"schedules": [
{
"mode": "allow_during",
"windows": [
{
"day": "mon",
"start": "20:00",
"end": "07:00",
"end_day": "mon"
}
]
}
]
},
"settings": {
"block_mode": "nxdomain",
"block_page_show_name": false,
"log_destination": "cloud",
"ecs": "off",
"web3": false,
"node_queue_hours": 0,
"log_region": "ca",
"timezone": "America/Toronto"
},
"endpoints": {
"doh": "https://dns.opdns.net/abc123",
"dot": "abc123.dns.opdns.net",
"doq": "abc123.dns.opdns.net"
}
}
]
}

Malformed request.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required

Stable machine code.

string
Allowed values: bad_request body_too_large bad_if_match unauthenticated signup_closed invite_required waitlist_unavailable mail_unavailable invalid_token token_expired token_used email_unverified session_required insufficient_scope csrf_rejected not_found version_mismatch ip_conflict managed_by_opwan no_opdns_account service_unavailable unknown_list too_many_rules validation_failed rate_limited internal node_revoked node_offline node_busy node_timeout node_error result_too_large shape_unsupported node_token_superseded relay_unavailable not_implemented query_timeout query_too_expensive range_too_large too_many_queries mfa_required reauth_required account_pending_deletion deletion_pending no_deletion_pending deletion_started organisation_has_members export_in_progress export_not_ready block_exists profile_not_empty no_adoption_pending invalid_cursor bad_idempotency_key idempotency_key_reused idempotency_in_progress too_many_streams too_many_reports profile_suspended plan_limit owner_required billing_unavailable billing_provider_error subscription_exists no_billing_account block_page_ca_exists oidc_unavailable feedback_status_conflict reply_not_wanted reply_unavailable
detail
string
errors
Array<object>
object
field
required
string
message
required
string
request_id
string
retry_after

Seconds, the same value as the Retry-After header (rate limits, offline nodes).

integer
limit

The plan limit that a plan_limit problem reached.

object
name
required
string
Allowed values: profiles linked_ips nodes queries_per_month log_retention_days api_tokens api_requests_per_minute
max
required

The value of the limit in the plan.

integer format: int64
plan
required
string
Allowed values: free personal family business
upgrade_url
required

Where to change to a larger plan.

string format: uri
required_scope

The scope that the API token did not have (insufficient_scope).

string
Allowed values: profiles:read profiles:write nodes:write account:read billing:read logs:read analytics:read
Example
{
"type": "https://opdns.io/problems/bad_request",
"title": "Bad Request",
"status": 400,
"code": "bad_request",
"detail": "The JSON in the request is not valid (unexpected end of JSON input). Correct the JSON and try again.",
"request_id": "5f2c9a0e7b1d4c38"
}

Not authenticated.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required

Stable machine code.

string
Allowed values: bad_request body_too_large bad_if_match unauthenticated signup_closed invite_required waitlist_unavailable mail_unavailable invalid_token token_expired token_used email_unverified session_required insufficient_scope csrf_rejected not_found version_mismatch ip_conflict managed_by_opwan no_opdns_account service_unavailable unknown_list too_many_rules validation_failed rate_limited internal node_revoked node_offline node_busy node_timeout node_error result_too_large shape_unsupported node_token_superseded relay_unavailable not_implemented query_timeout query_too_expensive range_too_large too_many_queries mfa_required reauth_required account_pending_deletion deletion_pending no_deletion_pending deletion_started organisation_has_members export_in_progress export_not_ready block_exists profile_not_empty no_adoption_pending invalid_cursor bad_idempotency_key idempotency_key_reused idempotency_in_progress too_many_streams too_many_reports profile_suspended plan_limit owner_required billing_unavailable billing_provider_error subscription_exists no_billing_account block_page_ca_exists oidc_unavailable feedback_status_conflict reply_not_wanted reply_unavailable
detail
string
errors
Array<object>
object
field
required
string
message
required
string
request_id
string
retry_after

Seconds, the same value as the Retry-After header (rate limits, offline nodes).

integer
limit

The plan limit that a plan_limit problem reached.

object
name
required
string
Allowed values: profiles linked_ips nodes queries_per_month log_retention_days api_tokens api_requests_per_minute
max
required

The value of the limit in the plan.

integer format: int64
plan
required
string
Allowed values: free personal family business
upgrade_url
required

Where to change to a larger plan.

string format: uri
required_scope

The scope that the API token did not have (insufficient_scope).

string
Allowed values: profiles:read profiles:write nodes:write account:read billing:read logs:read analytics:read
Example
{
"type": "https://opdns.io/problems/unauthenticated",
"title": "Unauthorized",
"status": 401,
"code": "unauthenticated",
"detail": "You are not signed in, or your sign-in ended. Sign in again to continue.",
"request_id": "5f2c9a0e7b1d4c38"
}

Authenticated but not allowed: insufficient_scope, session_required, csrf_rejected, reauth_required (sign in again within five minutes), account_pending_deletion (the account is in its deletion cooling-off period), email_unverified (creating a profile before the email address is verified).

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required

Stable machine code.

string
Allowed values: bad_request body_too_large bad_if_match unauthenticated signup_closed invite_required waitlist_unavailable mail_unavailable invalid_token token_expired token_used email_unverified session_required insufficient_scope csrf_rejected not_found version_mismatch ip_conflict managed_by_opwan no_opdns_account service_unavailable unknown_list too_many_rules validation_failed rate_limited internal node_revoked node_offline node_busy node_timeout node_error result_too_large shape_unsupported node_token_superseded relay_unavailable not_implemented query_timeout query_too_expensive range_too_large too_many_queries mfa_required reauth_required account_pending_deletion deletion_pending no_deletion_pending deletion_started organisation_has_members export_in_progress export_not_ready block_exists profile_not_empty no_adoption_pending invalid_cursor bad_idempotency_key idempotency_key_reused idempotency_in_progress too_many_streams too_many_reports profile_suspended plan_limit owner_required billing_unavailable billing_provider_error subscription_exists no_billing_account block_page_ca_exists oidc_unavailable feedback_status_conflict reply_not_wanted reply_unavailable
detail
string
errors
Array<object>
object
field
required
string
message
required
string
request_id
string
retry_after

Seconds, the same value as the Retry-After header (rate limits, offline nodes).

integer
limit

The plan limit that a plan_limit problem reached.

object
name
required
string
Allowed values: profiles linked_ips nodes queries_per_month log_retention_days api_tokens api_requests_per_minute
max
required

The value of the limit in the plan.

integer format: int64
plan
required
string
Allowed values: free personal family business
upgrade_url
required

Where to change to a larger plan.

string format: uri
required_scope

The scope that the API token did not have (insufficient_scope).

string
Allowed values: profiles:read profiles:write nodes:write account:read billing:read logs:read analytics:read
Example
{
"type": "https://opdns.io/problems/insufficient_scope",
"title": "Forbidden",
"status": 403,
"code": "insufficient_scope",
"detail": "This API token does not have the profiles:write scope that this request needs. Create a token with this scope, then try again.",
"required_scope": "profiles:write",
"request_id": "5f2c9a0e7b1d4c38"
}

Field validation failed (validation_failed, unknown_list), or the plan of the organization does not allow the write (plan_limit, which names the limit in limit).

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required

Stable machine code.

string
Allowed values: bad_request body_too_large bad_if_match unauthenticated signup_closed invite_required waitlist_unavailable mail_unavailable invalid_token token_expired token_used email_unverified session_required insufficient_scope csrf_rejected not_found version_mismatch ip_conflict managed_by_opwan no_opdns_account service_unavailable unknown_list too_many_rules validation_failed rate_limited internal node_revoked node_offline node_busy node_timeout node_error result_too_large shape_unsupported node_token_superseded relay_unavailable not_implemented query_timeout query_too_expensive range_too_large too_many_queries mfa_required reauth_required account_pending_deletion deletion_pending no_deletion_pending deletion_started organisation_has_members export_in_progress export_not_ready block_exists profile_not_empty no_adoption_pending invalid_cursor bad_idempotency_key idempotency_key_reused idempotency_in_progress too_many_streams too_many_reports profile_suspended plan_limit owner_required billing_unavailable billing_provider_error subscription_exists no_billing_account block_page_ca_exists oidc_unavailable feedback_status_conflict reply_not_wanted reply_unavailable
detail
string
errors
Array<object>
object
field
required
string
message
required
string
request_id
string
retry_after

Seconds, the same value as the Retry-After header (rate limits, offline nodes).

integer
limit

The plan limit that a plan_limit problem reached.

object
name
required
string
Allowed values: profiles linked_ips nodes queries_per_month log_retention_days api_tokens api_requests_per_minute
max
required

The value of the limit in the plan.

integer format: int64
plan
required
string
Allowed values: free personal family business
upgrade_url
required

Where to change to a larger plan.

string format: uri
required_scope

The scope that the API token did not have (insufficient_scope).

string
Allowed values: profiles:read profiles:write nodes:write account:read billing:read logs:read analytics:read
Example
{
"type": "https://opdns.io/problems/validation_failed",
"title": "Unprocessable Content",
"status": 422,
"code": "validation_failed",
"detail": "Some values in the request are not valid. The list of errors tells you what to change.",
"errors": [
{
"field": "settings.block_mode",
"message": "one of nxdomain, refused, null, block-page"
}
],
"request_id": "5f2c9a0e7b1d4c38"
}