Skip to content
Sign inDashboard

The plan of the organization, its limits and the usage for this month.

GET
/v1/account/plan
curl --request GET \
--url https://api.opdns.io/v1/account/plan \
--cookie __Host-opdns_session=<__Host-opdns_session>

Token scope: account:read. Plans attach to the organization. limits are the ceilings of the plan. usage is what the organization holds of the counted items (linked_ips is the most that any one profile holds). queries gives the billable queries of the calendar month (UTC): every query that the cloud resolved for its profiles, logged or counted. A query that a self-hosted node resolved never counts. The API meters queries.used from the query counters, at most a few minutes behind (null before the first metering). queries.state is what the resolvers apply: warn from 80 %, and over at the limit. At over, the resolvers keep resolving and filtering, but they stop keeping the query log until reset_at or a larger plan. The API refuses profiles, linked IPs, nodes, retention and API tokens past a limit with 422 plan_limit. Requests with an API token past api_requests_per_minute (per organization) get 429 rate_limited. provisional is true while the price or limits of the plan can still change before paid plans start. upgrade is the plan that the organization is offered next (its name, list price and limits, for upgrade prompts), or null when there is none.

The plan.

Media typeapplication/json
object
plan
required
string
Allowed values: free personal family business
name
required
string
source
required

Who set the plan last.

string
Allowed values: default operator billing
changed_at
required
string | null format: date-time
provisional
required

The price or limits of the plan can still change before paid plans start.

boolean
price
required
object
currency
required
string
monthly
required

Whole currency units a month. Null when the price is on request.

integer | null
yearly
required

Whole currency units a year. Null when the price is on request.

integer | null
limits
required

The ceilings of a plan.

object
profiles
required

Live profiles per organization.

integer
linked_ips
required

Linked IPs and DDNS slots per profile.

integer
nodes
required

Self-hosted nodes per organization (enrolled, or pending with a valid code).

integer
queries_per_month
required

Billable queries per calendar month (UTC). Metered, never refused.

integer format: int64
log_retention_days
required

The longest log retention that a profile can choose.

integer
api_tokens
required

Unexpired API tokens per organization.

integer
api_requests_per_minute
required

Requests a minute with an API token, per organization (429 past the limit).

integer
usage
required
object
profiles
required
integer
linked_ips
required

The most linked IPs and slots that any one profile holds.

integer
nodes
required
integer
api_tokens
required
integer
queries
required
object
used
required

Billable queries so far this month. Null before the first metering.

integer | null format: int64
limit
required
integer format: int64
ratio
required

Used / limit.

number | null
state
required

What the resolvers apply. over pauses the query log, never resolution or filtering.

string
Allowed values: ok warn over
warn_ratio
required

The share of the limit from which the state is warn (0.8).

number
period
required

The calendar month (UTC), YYYY-MM.

string
/^[0-9]{4}-[0-9]{2}$/
period_start
required
string format: date-time
reset_at
required

When usage starts again from zero (the next month, 00:00 UTC).

string format: date-time
metered_at
required
string | null format: date-time
upgrade_url
required
string format: uri
upgrade
required
One of:

A plan on offer, with its list price (whole currency units) and limits.

object
plan
required
string
Allowed values: free personal family business
name
required
string
price
required
object
currency
required
string
monthly
required

Whole currency units a month. Null when the price is on request.

integer | null
yearly
required

Whole currency units a year. Null when the price is on request.

integer | null
limits
required

The ceilings of a plan.

object
profiles
required

Live profiles per organization.

integer
linked_ips
required

Linked IPs and DDNS slots per profile.

integer
nodes
required

Self-hosted nodes per organization (enrolled, or pending with a valid code).

integer
queries_per_month
required

Billable queries per calendar month (UTC). Metered, never refused.

integer format: int64
log_retention_days
required

The longest log retention that a profile can choose.

integer
api_tokens
required

Unexpired API tokens per organization.

integer
api_requests_per_minute
required

Requests a minute with an API token, per organization (429 past the limit).

integer
Example
{
"plan": "free",
"name": "Free",
"source": "default",
"changed_at": null,
"provisional": true,
"price": {
"currency": "USD",
"monthly": 0,
"yearly": 0
},
"limits": {
"profiles": 3,
"linked_ips": 20,
"nodes": 1,
"queries_per_month": 300000,
"log_retention_days": 30,
"api_tokens": 2,
"api_requests_per_minute": 120
},
"usage": {
"profiles": 2,
"linked_ips": 1,
"nodes": 0,
"api_tokens": 1
},
"queries": {
"used": 182340,
"limit": 300000,
"ratio": 0.6078,
"state": "ok",
"warn_ratio": 0.8,
"period": "2026-10",
"period_start": "2026-10-01T00:00:00Z",
"reset_at": "2026-11-01T00:00:00Z",
"metered_at": "2026-10-20T12:00:00Z"
},
"upgrade_url": "https://opdns.io/pricing/",
"upgrade": {
"plan": "personal",
"name": "Personal",
"price": {
"currency": "USD",
"monthly": 2,
"yearly": 10
},
"limits": {
"profiles": 10,
"linked_ips": 20,
"nodes": 3,
"queries_per_month": 20000000,
"log_retention_days": 90,
"api_tokens": 10,
"api_requests_per_minute": 300
}
}
}

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"
}