Uploading Your File to The CDN
Once you’ve created an OpenPage file upload request, you will need to upload the file to make use of it by executing aPOST
request to the file upload endpoint with a body containing the upload.body
object.
CURL Request Example
Image CDN
Image files can make use of the OpenPage image CDNhttps://img.op.xyz/{your-file-key}?format={format}&size={size}
to auto format and resize as needed.
Below is an example of how to return your image with a max size of 100px and as a png.
https://img.op.xyz/fake-uuid-1234-5678-9012-3456/testimage1-jpg?format=png&size=100
Authorizations
Path Parameters
Community ID
Body
application/json
The name of the file (must include file extension)
Response
200 - application/json
File created successfully
The response is of type object
.