Get Upload Result
POST https://api.newportai.com/api/file/v1/policy_upload_finish
Request Headers
- Content-TypestringRequiredEnumapplication/json
- AuthorizationstringRequiredBearer authentication format, for example: Bearer
Request Body
- reqIdstringRequiredThe request ID.
Response
- codeinteger0 success, or error code.
- messagestring"success", or error msg.
- dataobjecturlstringFile access path.expireAtstringExpire timereqIdstringThe request Id.
Example
Request:
zsh
curl -X POST 'https://api.newportai.com/api/file/v1/policy_upload_finish' \
-H "Authorization: Bearer {{key}}" \
-H 'Content-Type: application/json' \
-d '{
"reqId": "732c9caa-0a2e-4aa1-87d9-52430a8f0314"
}'
Response:
json
{
"code": 0,
"message": "success",
"data": {
"url": "https://dreamapi-oss.oss-cn-hongkong.aliyuncs.com/tmp/dream/2024-11-19/4226536931855046/1.png?x-oss-date=20241119T082049Z&x-oss-expires=86399&x-oss-signature-version=OSS4-HMAC-SHA256&x-oss-credential=LTAI5tF1QzxoHGvEcziVACyc%2F20241119%2Fcn-hangzhou%2Foss%2Faliyun_v4_request&x-oss-signature=8dea2eed0a27b8e8636cc88299c427e7ddbce65ab4ded6cb6139df8e73e3ff95",
"expireAt": "2024-11-20 16:20:49",
"reqId": "732c9caa-0a2e-4aa1-87d9-52430a8f0314"
}
}