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 |
header_code | string | Extra HTML to add to all the proxy's pages right before the ending |
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 |
|
| Filter for proxies associated with a particular |
|
| Return proxies based on if they are active ( |
|
| Searching by domain/subdomain similar to how you pass formatted_domain on Proxy creation |
|
| 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 |
|
| required |
|
| required Full URL of the source site (i.e. http://www.example.com). Supports |
|
| required If you know the user account you want to publish this proxy on the behalf of, use |
Optional | ||
|
| Under private labels with sub-directory based proxies, this is where it is defined (defaults to slash |
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