API by router
Portal
POST
HTTPBearerheader
AuthorizationBearer <token>application/json- body
conversation_id?string|nullmessage*MessageLength
1 <= length <= 8000Successful Response
response?unknownapplication/jsoncurl -X POST 'https://example.com/v1/portal/chat' \ -H 'Content-Type: application/json' \ -d '{ "message": "string"}'Example Response
nullGET
HTTPBearerheader
AuthorizationBearer <token>Successful Response
application/json- response
company_name*string|nullemail*string|nullid*IdFormat
uuidindustry*string|nulllocale*string|nullportal_modules?timezone*string|nullcurl -X GET 'https://example.com/v1/portal/me'Example Response200
{ "company_name": "string", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "industry": "string", "locale": "string", "portal_modules": {}, "timezone": "string"}POST
HTTPBearerheader
AuthorizationBearer <token>application/json- body
content_type*Content TypeLength
1 <= length <= 100filename*FilenameLength
1 <= length <= 255Successful Response
application/json- response
curl -X POST 'https://example.com/v1/portal/media/upload-url' \ -H 'Content-Type: application/json' \ -d '{ "content_type": "string", "filename": "string"}'Example Response
{}POST
HTTPBearerheader
AuthorizationBearer <token>media_id*Media IdFormat
uuidSuccessful Response
application/json- response
curl -X POST 'https://example.com/v1/portal/media/497f6eca-6276-4993-bfeb-53cbbbba6f08/confirm'Example Response
{}GET
HTTPBearerheader
AuthorizationBearer <token>Successful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/portal/sites'Example Response200
[ { "content_mode": "string", "created_at": "2019-08-24T14:15:22Z", "hosting_mode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "primary_domain": "string", "status": "string" }]GET
HTTPBearerheader
AuthorizationBearer <token>config_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/v1/portal/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
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidunread_only?Unread OnlyDefault
falseSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/portal/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/forms'Example Response
[ { "fields": {}, "form_name": "", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "string", "submitted_at": "2019-08-24T14:15:22Z", "submitter_email": "string", "submitter_name": "string" }]GET
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/portal/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages'Example Response
[ { "content_html": "", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "published": false, "slug": "string", "sort_order": 0, "status": "string", "title": "string", "updated_at": "2019-08-24T14:15:22Z" }]POST
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidapplication/json- body
content_html?Content HtmlDefault
""slug*SlugLength
length <= 100status?StatusDefault
"draft"title*TitleLength
length <= 200Successful Response
application/json- response
content_html?Content HtmlDefault
""id*IdFormat
uuidpublished?PublishedDefault
falseslug*Slugsort_order*Sort Orderstatus*Statustitle*Titleupdated_at*Updated AtFormat
date-timecurl -X POST 'https://example.com/v1/portal/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages' \ -H 'Content-Type: application/json' \ -d '{ "slug": "string", "title": "string"}'Example Response
{ "content_html": "", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "published": false, "slug": "string", "sort_order": 0, "status": "string", "title": "string", "updated_at": "2019-08-24T14:15:22Z"}DELETE
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidslug*SlugSuccessful Response
curl -X DELETE 'https://example.com/v1/portal/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string'Example Response
Empty
PUT
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidslug*Slugapplication/json- body
content_html?string|nullpublished?boolean|nullstatus?string|nulltitle?string|nullSuccessful Response
application/json- response
content_html?Content HtmlDefault
""id*IdFormat
uuidpublished?PublishedDefault
falseslug*Slugsort_order*Sort Orderstatus*Statustitle*Titleupdated_at*Updated AtFormat
date-timecurl -X PUT 'https://example.com/v1/portal/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "content_html": "", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "published": false, "slug": "string", "sort_order": 0, "status": "string", "title": "string", "updated_at": "2019-08-24T14:15:22Z"}GET
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidoffset?OffsetDefault
0limit?LimitDefault
50unread_only?Unread OnlyDefault
falseSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/portal/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/submissions'Example Response
[ { "fields": {}, "form_name": "", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "string", "submitted_at": "2019-08-24T14:15:22Z", "submitter_email": "string", "submitter_name": "string" }]PATCH
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidsubmission_id*Submission IdFormat
uuidapplication/json- body
status*StatusValue in
"read""unread"Successful Response
application/json- response
curl -X PATCH 'https://example.com/v1/portal/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/submissions/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "status": "read"}'Example Response
{}