Create a Request
To create a request, set up the API APP, and review the information about creating JSON, ZIP and TSV requests.
Here’s what your request should look like:
POST https://hub.celtra.io/api/export
Authorization: Basic <your API App ID> <your API App Secret>
Content-Type: application/json; charset=utf-8
{
"filters": {
"designFile": {
"id": ["mockedDesignFileId"],
"lastModificationTimestamp": [
{
"gt": "2023-06-30 00:00:00",
"lte": "2023-06-30 23:55:00"
}
]
}
},
"assetFormats": {
"Image": {
"image": {
"format": "jpeg",
"quality": 85
}
}
}
}
Replace
"mockedDesignFileId"
with a valid ID of a project you have access to.“Image” defines the format of the output you want to change, and “image” is a particular property of the format (“Image” format only has “image” property).
The number 85 in the request means that the output will be exported at 85% of the original quality.