uploadBrand kit assets

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.thebrief.ai/v1/brandkit/{brandkitId}/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. A possible value could be

      jpg
      png
      swf
      gif
      svg
      wav
      ogg
      mpeg
      mp4
      mp3
      webm
      mov
      mkv
      avi
    • mediaType (enum, optional): Filter by media type. A possible value could be

      IMAGE
      VIDEO
      AUDIO

Response

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

Upload brand kit assets

This endpoint makes an HTTP POST request to upload assets to a brand kit.

Request

  • Method: POST

  • Endpoint: https://api.thebrief.ai/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.

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, but not from google drive, dropbox or other sources.

Response

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

Last updated