Brand kit assets
Upload brand kit assets
This endpoint makes an HTTP POST request to upload assets to a brand kit.
Request
Method: POST
Endpoint:
https://api.creatopy.com/v1/brandkit/uploadAssets
Body:
brandkitId
(integer, required): The id of the brand kit.mediaFolderId
(integer, optional): The id of the media folder inside the brand kit.sources
([string], required): The source url of the assets.
curl --location 'https://api.creatopy.com/v1/brandkit/uploadAssets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ...' \
--data '{
"brandkitId": 123456,
"mediaFolderId:" 65765,
"sources": [
'https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/eff1.svg',
'https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/eff2.svg',
]
}'
Valid media file extensions:
mp3, wav, ogg for audio files
mp4, mov, avi, webm, mkv for video files
jpg, jpeg, png, gif, svg for image files
Max sizes for media files: 20 MB for images (1MB for gifs) , 10MB for audio files and 100 MB for video files. Also max duration for video and audio files is set to 5 mins.
For now, we only allow uploading from valid public direct links, not from google drive, dropbox or other sources.
Response
The response will be in JSON format with the following schema:
{
"response": [
{
"id": 494270,
"hash": "zp1o5x",
"name": "eff1",
"fileName": "eff1.svg",
"type": "IMAGE",
"format": "svg",
"status": "VALID",
"height": 84,
"width": 120,
"size": 370,
"duration": null,
"url": null,
"createdBy": 50,
"createdByUser": {
"id": 50,
"name": "User Name"
}
},
{
"id": 494271,
"hash": "8wrk4d",
"name": "eff2",
"fileName": "eff2.svg",
"type": "IMAGE",
"format": "svg",
"status": "VALID",
"height": 84,
"width": 120,
"size": 370,
"duration": null,
"url": null,
"createdBy": 50,
"createdByUser": {
"id": 50,
"name": "User name"
}
}
]
}
List brand kit assets
This endpoint makes an HTTP GET request to list the assets of a brand kit.
Request
Method: GET
Endpoint:
https://api.creatopy.com/v1/brandkit/{id}/assets
Query Params:
first
(integer, optional): Limit the number of brandkit assets returned.cursor
(string, optional): Cursor used for pagination.parentId
: (integer, optional): The parent folder id if you want to limit the query for assets only in this folder.search
(string, optional): Search keyword for the brandkit assets.mediaFormat
: (enum, optional): Filter by media format. possible value could bejpg png swf gif svg wav ogg mpeg mp4 mp3 webm mov mkv avi
mediaType
(enum, optional): Filter by media type. possible value could beIMAGE VIDEO AUDIO
curl -X 'GET' \
'https://api.creatopy.dev/v1beta/brandkit/734226/assets?first=5' \
-H 'accept: */*' \
-H 'Authorization: Bearer eyJ...'
Response
The response will be in JSON format with the following schema:
{
"response": {
"id": 734226,
"name": "V' API brandkit with assets",
"elements": {
"nodes": [
{
"id": 496163,
"fileName": "LEGO_logo.svg",
"type": "IMAGE",
"format": "svg",
"checksum": "57bacd0c848bc3271c6d1e1052b82530",
"createdAt": "2025-01-24T15:06:51.796Z",
"createdBy": 123863,
"createdByUser": {
"id": 123863,
"name": "Vridhi R"
},
"duration": null,
"hash": "9j9739",
"height": 180,
"name": "LEGO_logo",
"size": 5362,
"src": "https://creatopy-cdn-ed8ea45.s3.eu-central-1.amazonaws.com/assets/media/9j9739",
"status": "VALID",
"updatedAt": "2025-01-24T15:06:52.475Z",
"url": "uploads/b1b276d8-f2f9-4042-85a1-4f697db5f887",
"width": 180
},
{
"id": 493944,
"fileName": "Collision8-Bit.ogg",
"type": "AUDIO",
"format": "ogg",
"checksum": "ed9d71e7f317feb401fc5caf582dec42",
"createdAt": "2025-01-17T10:59:37.244Z",
"createdBy": 123863,
"createdByUser": {
"id": 123863,
"name": "Vridhi R"
},
"duration": 0.183923,
"hash": "2y6d58",
"height": null,
"name": "Collision8-Bit",
"size": 6649,
"src": "https://creatopy-cdn-ed8ea45.s3.eu-central-1.amazonaws.com/assets/media/2y6d58",
"status": "VALID",
"updatedAt": "2025-01-17T10:59:37.673Z",
"url": null,
"width": null
},
{
"id": 488349,
"fileName": "pjgmrx-1080x1080px-slide(0).png",
"type": "IMAGE",
"format": "png",
"checksum": "45692251da7cb1ab1521094435569eeb",
"createdAt": "2024-12-30T13:49:10.217Z",
"createdBy": 123863,
"createdByUser": {
"id": 123863,
"name": "Vridhi R"
},
"duration": null,
"hash": "736r72",
"height": 1080,
"name": "pjgmrx-1080x1080px-slide(0)",
"size": 461955,
"src": "https://creatopy-cdn-ed8ea45.s3.eu-central-1.amazonaws.com/assets/media/736r72",
"status": "VALID",
"updatedAt": "2024-12-30T13:49:10.979Z",
"url": "uploads/326415a4-5a78-41a0-a45c-a2eb34fa2e7c",
"width": 1080
},
{
"id": 488348,
"fileName": "image (5).png",
"type": "IMAGE",
"format": "png",
"checksum": "7670978772f37ddb377d673bc19df2f8",
"createdAt": "2024-12-30T13:49:10.209Z",
"createdBy": 123863,
"createdByUser": {
"id": 123863,
"name": "Vridhi R"
},
"duration": null,
"hash": "0ydj24",
"height": 227,
"name": "image (5)",
"size": 27806,
"src": "https://creatopy-cdn-ed8ea45.s3.eu-central-1.amazonaws.com/assets/media/0ydj24",
"status": "VALID",
"updatedAt": "2024-12-30T13:49:10.887Z",
"url": "uploads/4f8ff28d-01d4-4165-8720-011086e57ead",
"width": 1528
},
{
"id": 488347,
"fileName": "image (6).png",
"type": "IMAGE",
"format": "png",
"checksum": "e92819da21c03e763564d29003e9b8fb",
"createdAt": "2024-12-30T13:49:10.033Z",
"createdBy": 123863,
"createdByUser": {
"id": 123863,
"name": "Vridhi R"
},
"duration": null,
"hash": "8wr9nn",
"height": 1040,
"name": "image (6)",
"size": 204109,
"src": "https://creatopy-cdn-ed8ea45.s3.eu-central-1.amazonaws.com/assets/media/8wr9nn",
"status": "VALID",
"updatedAt": "2024-12-30T13:49:10.734Z",
"url": "uploads/91c73884-dd1b-4765-b045-e7e7d0cc88cc",
"width": 1920
}
],
"pageInfo": {
"endCursor": "eyJjcmVhdGVkQXQiOjE3MzU1NjY1NTAwMzN9",
"hasNextPage": true
},
"totalCount": 48
}
}
}
Last updated