Upload a Build
curl --request POST \
--url https://api.docketqa.com/apps/upload-url \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"filename": "<string>",
"platform": "<string>",
"file_size": 123,
"content_type": "<string>"
}
'import requests
url = "https://api.docketqa.com/apps/upload-url"
payload = {
"filename": "<string>",
"platform": "<string>",
"file_size": 123,
"content_type": "<string>"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filename: '<string>',
platform: '<string>',
file_size: 123,
content_type: '<string>'
})
};
fetch('https://api.docketqa.com/apps/upload-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.docketqa.com/apps/upload-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filename' => '<string>',
'platform' => '<string>',
'file_size' => 123,
'content_type' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.docketqa.com/apps/upload-url"
payload := strings.NewReader("{\n \"filename\": \"<string>\",\n \"platform\": \"<string>\",\n \"file_size\": 123,\n \"content_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.docketqa.com/apps/upload-url")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"<string>\",\n \"platform\": \"<string>\",\n \"file_size\": 123,\n \"content_type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.docketqa.com/apps/upload-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename\": \"<string>\",\n \"platform\": \"<string>\",\n \"file_size\": 123,\n \"content_type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyMobile Apps
Upload a Build
POST
/
apps
/
upload-url
Upload a Build
curl --request POST \
--url https://api.docketqa.com/apps/upload-url \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"filename": "<string>",
"platform": "<string>",
"file_size": 123,
"content_type": "<string>"
}
'import requests
url = "https://api.docketqa.com/apps/upload-url"
payload = {
"filename": "<string>",
"platform": "<string>",
"file_size": 123,
"content_type": "<string>"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filename: '<string>',
platform: '<string>',
file_size: 123,
content_type: '<string>'
})
};
fetch('https://api.docketqa.com/apps/upload-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.docketqa.com/apps/upload-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filename' => '<string>',
'platform' => '<string>',
'file_size' => 123,
'content_type' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.docketqa.com/apps/upload-url"
payload := strings.NewReader("{\n \"filename\": \"<string>\",\n \"platform\": \"<string>\",\n \"file_size\": 123,\n \"content_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.docketqa.com/apps/upload-url")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"<string>\",\n \"platform\": \"<string>\",\n \"file_size\": 123,\n \"content_type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.docketqa.com/apps/upload-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename\": \"<string>\",\n \"platform\": \"<string>\",\n \"file_size\": 123,\n \"content_type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyGet a 15-minute presigned URL for uploading a build binary.
PUT the binary to s3_presigned_url, then pass the returned s3_key to Create App or Create Build.
Files are capped at 1 GB.
Request body
string
required
Original filename. Extension must match the platform.
string
required
"android" or "ios".integer
required
Size in bytes. Must be
> 0 and ≤ 1073741824.string
Defaults to
"application/octet-stream". Must match the Content-Type header you send on the S3 PUT.| Platform | Allowed extensions |
|---|---|
android | .apk, .xapk, .apks, .apkm |
ios | .zip (zipped simulator .app bundle, not .ipa) |
Response
{
"s3_presigned_url": "https://docket-blobs.s3.amazonaws.com/files/2/...&X-Amz-Signature=...",
"s3_key": "files/2/4f8e1c2a-..._acme.apk",
"content_type": "application/vnd.android.package-archive",
"filename": "acme.apk"
}
⌘I

