API by router
Website pages
GET
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages'Example Response
[ { "content_html": "string", "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "slug": "string", "sort_order": 0, "status": "draft", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3" }]POST
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidX-Api-Key?string|nullapplication/json- body
content_html?Content HtmlDefault
""metadata_json?Default
{}slug*SlugMatch
^[a-z0-9][a-z0-9\-]*$Length
length <= 200sort_order?Sort OrderDefault
0status?StatusMatch
^(draft|published|archived)$Default
"draft"title*TitleLength
length <= 300Successful Response
application/json- response
content_html*Content Htmlcreated_at*Created AtFormat
date-timeid*IdFormat
uuidmetadata_json?Default
{}slug*Slugsort_order?Sort OrderDefault
0status?StatusDefault
"draft"title*Titleupdated_at*Updated AtFormat
date-timewebsite_config_id*Website Config IdFormat
uuidcurl -X POST 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages' \ -H 'Content-Type: application/json' \ -d '{ "slug": "string", "title": "string"}'Example Response
{ "content_html": "string", "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "slug": "string", "sort_order": 0, "status": "draft", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}GET
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidslug*SlugX-Api-Key?string|nullSuccessful Response
application/json- response
content_html*Content Htmlcreated_at*Created AtFormat
date-timeid*IdFormat
uuidmetadata_json?Default
{}slug*Slugsort_order?Sort OrderDefault
0status?StatusDefault
"draft"title*Titleupdated_at*Updated AtFormat
date-timewebsite_config_id*Website Config IdFormat
uuidcurl -X GET 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string'Example Response
{ "content_html": "string", "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "slug": "string", "sort_order": 0, "status": "draft", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}DELETE
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidslug*SlugX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string'Example Response
Empty
PUT
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidslug*SlugX-Api-Key?string|nullapplication/json- body
content_html?string|nullmetadata_json?|nullsort_order?integer|nullstatus?|nulltitle?|nullSuccessful Response
application/json- response
content_html*Content Htmlcreated_at*Created AtFormat
date-timeid*IdFormat
uuidmetadata_json?Default
{}slug*Slugsort_order?Sort OrderDefault
0status?StatusDefault
"draft"title*Titleupdated_at*Updated AtFormat
date-timewebsite_config_id*Website Config IdFormat
uuidcurl -X PUT 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "content_html": "string", "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "slug": "string", "sort_order": 0, "status": "draft", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}