uploads

Create an upload

Creates an upload of your own APK and a one-off URL for its file: POST the APK's bytes there with upload_headers within an hour, then complete the upload with the storageId it answers. At most 500 MiB a file and 500 MiB of uploads per project, and 50 new uploads a day; the project needs credits. Completing with a file the project already has ready answers with that upload.

post/v1/apps/uploads

Request

  • Base URL: https://phonebox.dev
  • URL: https://phonebox.dev/v1/apps/uploads
  • Auth: HTTP bearer

Request body

object required

Response

The upload, waiting for its file, with where to send it.

object'upload' required
idstring required
status'awaiting_file' | 'processing' | 'ready' | 'invalid_apk' | 'too_large' | 'storage_full' | 'failed' | 'duplicate' | 'deleted' required
packagestring nullable required

The package the APK's manifest declares, once read.

version_codeinteger nullable required
version_namestring nullable required
min_sdkinteger nullable required
size_bytesinteger nullable required
sha256string nullable required

The file's SHA-256, in hex.

created_atstring date-time required

ISO 8601 timestamp (UTC)

expires_atstring date-time required

When Phonebox deletes the upload: 7 days after its last install, or its creation if never installed; an hour after creation while it waits for its file.

upload_urlstring uri required

Send the APK's bytes here with upload_method and upload_headers, within an hour. The answer is {"storageId": "…"}.

upload_method'POST' required
upload_headersobject required
max_bytesinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.