This endpoint allows you to upload new brand assets (images) to your workspace. You can upload images from a URL or as a base64-encoded string.
https://api.orshot.com/v1/brand-assets/images/addawait fetch("https://api.orshot.com/v1/brand-assets/images/add", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <ORSHOT_API_KEY>",
},
body: JSON.stringify({
file: "https://example.com/path/to/image.png", // supports base64, url or binary
fileName: "company-logo.png", // optional
fileType: "image/png", // optional
}),
});| Parameter | Type | Required | Description |
|---|---|---|---|
file | String | Yes | URL, binary or base64-encoded string of the image |
fileName | String | No | Custom filename for the asset (default: auto-generated based on timestamp) |
fileType | String | No | MIME type of the file (e.g., "image/png"). If not provided, it will be detected from the file |
image/png)image/jpeg)image/webp)image/svg+xml)image/gif)