Skip to content

Upload Files

Fresh

Upload Temporary Files (3-day expiry)

Step 1: Get Upload URL

URL: https://openapi.geelark.com/open/v1/upload/getUrlMethod: POST

ParameterRequiredTypeDescription
fileTypeYesstringFile extension

Supported types: jpg, jpeg, png, gif, bmp, webp, heif, heic, mp4, webm, xml, apk, xapk

json
{ "fileType": "mp4" }

Response

json
{
  "code": 0,
  "data": {
    "uploadUrl": "https://storage.example.com/upload?token=...",
    "resourceUrl": "https://material-prod.geelark.cn/open-upload/..."
  }
}
FieldDescription
uploadUrlURL to upload file (valid 30 min)
resourceUrlURL to access the file after upload

Step 2: Upload the File

Use PUT request to upload the file to uploadUrl:

bash
curl -X PUT --upload-file ./video.mp4 "uploadUrl"

After upload, the file is accessible via resourceUrl.


Upload Files to Cloud Phone

URL: https://openapi.geelark.com/open/v1/phone/file/uploadMethod: POST

ParameterRequiredTypeDescription
idYesstringCloud phone ID
fileUrlYesstringFile URL to download
savePathYesstringSave path on cloud phone

Query Upload Status

URL: https://openapi.geelark.com/open/v1/phone/file/upload/status

ParameterRequiredTypeDescription
taskIdYesstringUpload task ID

Upload Keybox File

URL: https://openapi.geelark.com/open/v1/phone/keybox/uploadMethod: POST

ParameterRequiredTypeDescription
idYesstringCloud phone ID
fileUrlYesstringKeybox file URL

Query Keybox Upload Status

URL: https://openapi.geelark.com/open/v1/phone/keybox/upload/status

ParameterRequiredTypeDescription
taskIdYesstringTask ID

GEELark API Documentation - Built with VitePress