API by router
Website media
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/media'Example Response
[ { "alt_text": "string", "content_type": "string", "created_at": "2019-08-24T14:15:22Z", "filename": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "size_bytes": 0, "variants": {}, "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3" }]POST
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidalt_text?|nullX-Api-Key?string|nullmultipart/form-data- body
file*FileFormat
binarySuccessful Response
application/json- response
alt_text?string|nullcontent_type*Content Typecreated_at*Created AtFormat
date-timefilename*Filenameid*IdFormat
uuidmetadata_json?Default
{}size_bytes*Size Bytesvariants?Default
{}website_config_id*Website Config IdFormat
uuidcurl -X POST 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/media' \ -F 'file=string'Example Response
{ "alt_text": "string", "content_type": "string", "created_at": "2019-08-24T14:15:22Z", "filename": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "size_bytes": 0, "variants": {}, "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}GET
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidmedia_id*Media IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
alt_text?string|nullcontent_type*Content Typecreated_at*Created AtFormat
date-timefilename*Filenameid*IdFormat
uuidmetadata_json?Default
{}size_bytes*Size Bytesvariants?Default
{}website_config_id*Website Config IdFormat
uuidcurl -X GET 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/media/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "alt_text": "string", "content_type": "string", "created_at": "2019-08-24T14:15:22Z", "filename": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata_json": {}, "size_bytes": 0, "variants": {}, "website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"}DELETE
HTTPBearerheader
AuthorizationBearer <token>config_id*Config IdFormat
uuidmedia_id*Media IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/media/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty