StorageAssets
Upload file as Base64
Uploads a Base64-encoded file inside JSON and returns its public URL.
Header Parameters
x-Store-Id?string
Store the request acts on. Not needed when the token is bound to a store.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.ecomiq.pe/api/v1/storage/assets/base64" \ -H "x-Store-Id: <store-id>" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "dataBase64": "polo-de-algodon.webp", "filename": "polo-de-algodon.webp", "contentType": "polo-de-algodon.webp", "directory": "polo-de-algodon.webp", "altText": "polo-de-algodon.webp", "metadata": { "key": "polo-de-algodon.webp" } }'{ "id": "7204558912004323036", "fileName": "polo-de-algodon.webp", "publicUrl": "https://mi-tienda.ecomiq.app/images/polo-de-algodon.webp", "contentType": "polo-de-algodon.webp", "size": 1, "width": 30, "height": 30, "altText": "polo-de-algodon.webp", "directory": "polo-de-algodon.webp", "metadata": { "key": "polo-de-algodon.webp" }, "createdOn": "2026-09-28T15:30:00Z", "createdBy": "2f40d7e4-3d9c-4ab2-b04e-7a6a132db821"}