Proxies
Proxies
The Proxies resource is the primary way of publishing and managing reverse proxy sites within the platform
Proxy Model
Proxy object
A proxy object contains the following fields
Attribute
Type
Description
id
integer
unique id of the proxy
business_id
integer
Reference id to the Business this proxy is under
user_id
integer
Reference id to the User that created this proxy
domain
string
The hostname/domain where the proxy is published
source_domain
string
The URL without including the path of the site you want to proxy
deleted
boolean
Field that denotes if the proxy is disabled or not
https
boolean
Toggle for enabling SSL for the proxy
extra_css
string
Extra CSS to add to all the proxy's pages
footer_code
string
Extra HTML to add to all the proxy's pages right before the ending </body>
tag
header_code
string
Extra HTML to add to all the proxy's pages right before the ending </head>
tag
added
timestamp
Date and time proxy was created
modified
timestamp
Date and time proxy was modified
ssl_last_updated
string
Timestamp of when the proxy's SSL was last updated
custom_fields
object
Custom field values assigned to the site
google_site_verification
string
Google meta tag verification. Enter only the value of the meta tag and not the full tag.
Example object:
List proxies
List all proxies including active, deleted, non-published and published
List all active proxies
Parameters
Name
Type
Description
business_id
string
Filter for proxies associated with a particular Business
deleted
string
Return proxies based on if they are active (0
) or deleted/disabled (1
)
formatted_domain
string
Searching by domain/subdomain similar to how you pass formatted_domain on Proxy creation
partner_proxy_id
string
Used to lookup/search for proxies matching a particular internal id
Response
Get a single proxy
Fetch the Proxy detail using the Proxy.id
Response
Create a proxy
Parameters
Name
Type
Description
domain
string
required
source_domain
string
user_id
or partner_user_id
integer
or string
required If you know the user account you want to publish this proxy on the behalf of, use user_id
. If you don't know the user ID, you can use the partner_user_id
method described further down this document.
Optional
base_directory
string
Under private labels with sub-directory based proxies, this is where it is defined (defaults to slash /
but an example might be /some-page/
)
Example
Response
A status code of 201 created
is returned on a successful creation and contains the created proxy object as JSON. See the Get a single proxy section for an example Proxy object.
Updating a proxy
You can PUT
a partial or full object to the detail endpoint to update/change values on the Proxy object. If using a partial object, you must insure that the primary proxy id
is part of the payload.
Disabling / enabling a proxy
Disabling a proxy
To disable an active proxy and clear all cache references to the domain, use the DELETE
method on the Proxy detail endpoint.
Enabling a proxy
To enable a currently disabled proxy, you will set the param for deleted
to False
using the Proxy update endpoint.
Last updated