Creatopy Public API
  • Public API
    • Quickstart
    • Authentication
  • REST API
    • Overview
    • Auth
    • Exports
      • Creatives
    • Templates (Designs)
      • Elements
      • Template Sizes
      • Font variants
    • ShareLink
    • Projects
      • Project Users
    • Brand Kits
      • Brand kit assets
      • Brand kit logos
      • Brand kit media folders
      • Brand templates
    • Ad Networks
    • Ad Serving
    • Users
      • Team roles
    • Webhooks
      • Webhook action types
    • Design Versions
    • Folders
      • Move design to folder
    • Error codes
    • Designs
  • GraphQL API
    • Overview
    • Endpoints and queries
    • Postman Collection
Powered by GitBook
On this page
  • Upload brand kit logos
  • Request
  • Response
  1. REST API
  2. Brand Kits

Brand kit logos

Upload brand kit logos

This endpoint makes an HTTP GET request to upload logos to a brand kit.

Request

  • Method: POST

  • Endpoint: https://api.creatopy.com/v1/brandkit/uploadLogos

  • Body:

    • brandkitId (integer, required): The id of the brand kit.

    • sources ([string], required): The source url of the logos.

curl --location 'https://api.creatopy.com/v1/brandkit/uploadLogos' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ...' \
--data '{
    "brandkitId": 123456,
    "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:

  • jpg, jpeg, png, svg

Max sizes for media files: 20 MB.

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"
            }
        }
    ]
}
PreviousBrand kit assetsNextBrand kit media folders

Last updated 3 months ago