cURL
curl --request POST \ --url https://api.jogg.ai/v2/upload/asset \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "filename": "product-image.jpg", "content_type": "image/jpeg", "file_size": 1024000 } '
{ "code": 0, "msg": "Success", "data": { "sign_url": "<string>", "asset_url": "<string>" } }
Upload an asset file and get signed URL for direct upload to cloud storage. Use the returned sign_url to upload your file with a PUT request.
curl --request POST \ --url 'https://api.jogg.ai/v2/upload/asset' \ --header 'x-api-key: YOUR_API_KEY' \ --header 'Content-Type: multipart/form-data' \ --form 'file=@/path/to/your/image.jpg' \ --form 'asset_type=image' \ --form 'name=Product Photo'
API key for authentication. Obtain your key from the JoggAI dashboard.
Name of the file to upload
"product-image.jpg"
MIME type of the file
"image/jpeg"
File size in bytes (optional)
x >= 1
1024000
Success
Business status code:
0
Response message
"Success"
Show child attributes