cURL
curl --request POST \ --url https://api.jogg.ai/v1/upload/asset \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "filename": "1.jpg" } '
{ "code": 123, "msg": "<string>", "data": { "sign_url": "<string>", "asset_id": "<string>" } }
Generate a signed URL for file upload. Use the sign_url obtained here to upload your file.
sign_url
Data required for file upload
"1.jpg"
Success
Business status code:
0 - Success
10104 - Record not found
10105 - Invalid API key
18020 - Insufficient credit
18025 - No permission to call APIs.
40000 - Parameter error
50000 - System error
Response message
Show child attributes