Skip to main content
Version: Next 🚧

Debug File APIs

Upload debug file​

This allows you to upload an single iOS, Android debug file.

Debug file accepts:

  • iOS: a Zipped dSYM file
  • Android: a Zipped file includes mapping.txt, R.txt or AndroidManifest.xml files.
POST /api/debug_files/upload

Parameters​

info

Authentication required.

AttributeTypeRequiredDescription
channel_keyStringtrueChannel key
fileFiletrueArichved file by zip
release_versionStringtrueRelease version, ignore this param if iOS app
build_versionStringtrueBuild version, ignore this param if iOS app

Return body​

{
"id": 1,
"app_name": "Demo App",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}

Download debug file​

This allows you to download an single iOS, Android debug file.

GET /api/debug_files/download

Parameters​

AttributeTypeRequiredDescription
channel_keyStringtrueChannel key
release_versionStringtrueRelease version, ignore this param if iOS app
build_versionStringfalseBuild version, ignore this param if iOS app
orderStringfalseOrder by
version = latest version, upload_date = last uploaded date
Vaild in release_version is latest

Return body​

  • Retun 200 status code if the version exists and redirect to the download address with a 302 status code.
  • return 404 status code if the version does not exist.

List debug files​

Get a list of debug files.

This function takes pagination parameters page and per_page to restrict the list of debug files.

GET /api/debug_files

Parameters​

AttributeTypeRequiredDescription
channel_keyStringtrueChannel key
pageIntegerfalsePage number (default: 1)
per_pageIntegerfalseNumber of items to list per page (default: 25, max: 100).

Return body​

[
{
"id": 1,
"app_name": "Demo App",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}
]

Get a debug file​

Allows you to receive information about debug file like name, file size, UUID (iOS only), platform (iOS only) or file list (Android only).

GET /api/debug_files/:id

Parameters​

info

Authentication required.

AttributeTypeRequiredDescription
channel_keyStringtrueChannel key
idStringtrueID

Return body​

{
"id": 1,
"app_name": "Demo App",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}

Update a existed debug file​

This allows you to update a debug file.

PUT /api/debug_files/:id

Parameters​

info

Authentication required.

AttributeTypeRequiredDescription
channel_keyStringtrueChannel key
idStringtrueID
fileFiletruea Zipped debug file
release_versionStringtrueRelease version, ignore this param if iOS app
build_versionStringtrueBuild version, ignore this param if iOS app

Return body​

{
"id": 1,
"app_name": "Demo App",
"device_type": "ios",
"release_version": "1.14.0",
"build_version": "980",
"file_url": "https://tryzealot.ews.im/download/debug_files/1",
"metadata": [
{
"id": 1,
"debug_file_id": 1,
"uuid": "34656552-21ae-3722-a7fb-3582bc9b1d98",
"type": "arm64",
"object": "AppName",
"data": {},
"size": 4137941,
"created_at": "2022-11-25T15:53:15.157+08:00",
"updated_at": "2022-11-25T15:53:15.157+08:00"
}
]
}

Delete a debug file​

This allows you to delete a debug file.

DELETE /api/debug_files/:id

Parameters​

info

Authentication required.

AttributeTypeRequiredDescription
channel_keyStringtrueChannel key
idStringtrueID

Return body​

{
"mesage": "OK"
}