Skip to main content
POST
Create a file upload

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 a POST 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 CDN https://img.openpage.fun/{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.openpage.fun/fake-uuid-1234-5678-9012-3456/testimage1-jpg?format=png&size=100

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Community ID

Body

application/json
name
string
required

The name of the file (must include file extension)

Response

200 - application/json

File created successfully

The response is of type object.