API by router
Platform internal
GET
instance_id*Instance IdFormat
uuidcustomer_id*Customer IdFormat
uuidSuccessful Response
application/json- response
customer_id*Customer IdFormat
uuidprimary_site_id?|nullsites*array<>curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/customer-context/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "primary_site_id": "e4832575-3d0f-4b4d-8fd3-3db114f512f5", "sites": [ { "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b", "content_mode": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "is_primary": true, "status": "string" } ]}GET
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidperiod?PeriodDefault
7Successful Response
application/json- response
daily_views?array<>device_breakdown?period_days*Period Daystop_pages*array<>total_views*Total Viewsunique_sessions*Unique Sessionscurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/analytics'Example Response
{ "daily_views": [ {} ], "device_breakdown": {}, "period_days": 0, "top_pages": [ {} ], "total_views": 0, "unique_sessions": 0}GET
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidunread_only?Unread OnlyDefault
falseSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/forms'Example Response
[ { "created_at": "2019-08-24T14:15:22Z", "form_data": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_read": true, "page_slug": "string", "submitter_email": "string" }]GET
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidSuccessful Response
application/json- response
total*Totalunread*Unreadcurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/forms/stats'Example Response
{ "total": 0, "unread": 0}GET
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidSuccessful Response
response?unknownapplication/jsoncurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/media'Example Response
nullPOST
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidapplication/json- body
content_type*Content Typefilename*FilenameLength
length <= 255Successful Response
response?unknownapplication/jsoncurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/media/upload-url' \ -H 'Content-Type: application/json' \ -d '{ "content_type": "string", "filename": "string"}'Example Response
nullGET
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages'Example Response
[ { "content_html": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "slug": "string", "sort_order": 0, "status": "draft", "title": "string", "updated_at": "2019-08-24T14:15:22Z" }]POST
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidapplication/json- body
content_html?Content HtmlDefault
""slug*SlugLength
length <= 200title*TitleLength
length <= 300Successful Response
response?unknownapplication/jsoncurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages' \ -H 'Content-Type: application/json' \ -d '{ "slug": "string", "title": "string"}'Example Response
nullGET
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidslug*SlugSuccessful Response
application/json- response
content_html*Content Htmlid*IdFormat
uuidmetadata_json?Default
{}slug*Slugsort_order?Sort OrderDefault
0status?StatusDefault
"draft"title*Titleupdated_at*Updated AtFormat
date-timecurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string'Example Response
{ "content_html": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "slug": "string", "sort_order": 0, "status": "draft", "title": "string", "updated_at": "2019-08-24T14:15:22Z"}DELETE
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidslug*SlugSuccessful Response
response?unknownapplication/jsoncurl -X DELETE 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string'Example Response
nullPUT
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidslug*Slugapplication/json- body
content_html?string|nullmetadata_json?|nullsort_order?integer|nullstatus?|nulltitle?|nullSuccessful Response
application/json- response
content_html*Content Htmlid*IdFormat
uuidmetadata_json?Default
{}slug*Slugsort_order?Sort OrderDefault
0status?StatusDefault
"draft"title*Titleupdated_at*Updated AtFormat
date-timecurl -X PUT 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "content_html": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "slug": "string", "sort_order": 0, "status": "draft", "title": "string", "updated_at": "2019-08-24T14:15:22Z"}POST
instance_id*Instance IdFormat
uuidconfig_id*Config IdFormat
uuidSuccessful Response
application/json- response
message*Messagestatus*Statustask_id?string|nullcurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/platform/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/publish'Example Response
{ "message": "string", "status": "string", "task_id": "string"}