Resource Hierarchy
Overview
There are three primary resources Divertly works with:
Arranged by relationship, they look like this.
Resources
Organizations
At the top is the Organization — this represents the person or company that owns the account.
Organizations also manage subscriptions, users, and API keys.
Domains
Organizations manage Domains. Domains are the fully-qualified domain names that the Divertly platform is set up to use. Organizations can use the shared domain (dvt.fyi) or bring their own — see Subscriptions for what’s included in your plan.
Routes
Domains manage routes. A Route is the public-facing path after the domain that points to one or many targets. Example: dvt.fyi/foo — /foo is the route.
Routes must be unique within a domain.
Routes control how traffic is diverted through the platform, from which target to select, how errors are handled, and which target is the default target.
Targets
A target represents a single destination that a request can be routed to. A target could be a webpage, a YouTube video, a file to download — anything with a valid URL.

