Create a JSON Request
To create a request, set up the API APP, and review the information about creating a request here.
Accept
header is optional and will default to application/json
, if not specified.
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": ["d1m6jqpdaglh"]
},
}
}
Replace "mockedDesignFileId"
with a valid ID of a project you have access to.
Response
The outputs are in the finished state and have URLs generated.
Here's what the response will look like:
[
{
"id": "mockedOutputId",
"name": "Demo Project",
"status": "finished",
"previewUrl": "https://demo-account.celtra.io/projects/mockedDesignFileId/overview",
"account": {
"id": "mockedAccountId",
"name": "Celtra Autotest Creative Assets Folder"
},
"folder": {
"id": "mockedFolderId",
"name": "Demo Project",
"customAttributesByName": {}
},
"designFile": {
"id": "mockedDesignFileId",
"name": "Demo Project",
"lastModificationTimestamp": "2023-01-01 01:01:01",
"contentBlobHash": "mockedContentBlobHash"
},
"customLayoutDimensions": {
"dimentionId1": {
"id": "dimentionId1",
"name": "CTA Position",
"value": {
"id": "dimentionValueId1",
"name": "left"
}
},
"dimentionId2": {
"id": "dimentionId2",
"name": "Background Color",
"value": {
"id": "dimentionValueId2",
"name": "yellow"
}
}
},
"contentDimensions": {
"dimensionId3": {
"id": "dimensionId3",
"name": "Language",
"value": {
"id": "dimensionValueId3",
"name": "de"
},
"attributes": {}
}
},
"mediaLineItemAttributes": {},
"customLayoutDimensionsByName": {
"CTA Position": "left",
"Background Color": "yellow"
},
"contentDimensionsByName": {
"Language": "de"
},
"mediaLineItemAttributesByName": {},
"activation": null,
"assets": {
"image": {
"type": "Image",
"width": 1080,
"height": 1080,
"status": "finished",
"blobHash": "mockedAssetBlobHash",
"extension": "png",
"url": "mockedUrlThatExpires"
}
}
},
...
]