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 <yourBase64Token>
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
}
}
}
}
<yourBase64Token>is a base64 encoded string of your API App ID and API APP Secret. Learn here how to set it up.“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.
Replace
"mockedDesignFileId"with a valid ID of a project you have access to.