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:

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 be

    • mediaType (enum, optional): Filter by media type. possible value could be

Response

The response will be in JSON format with the following schema:

Last updated