Get File Download Links
curl --request POST \
--url https://files.uqpaytech.com/api/v1/files/download_links \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"file_ids": [
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
]
}
'import requests
url = "https://files.uqpaytech.com/api/v1/files/download_links"
payload = { "file_ids": ["b3d9d2d5-4c12-4946-a09d-953e82sed2b0", "b3d9d2d5-4c12-4946-a09d-953e82sed2b1", "b3d9d2d5-4c12-4946-a09d-953e82sed2b2"] }
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
file_ids: [
'b3d9d2d5-4c12-4946-a09d-953e82sed2b0',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b1',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b2'
]
})
};
fetch('https://files.uqpaytech.com/api/v1/files/download_links', 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://files.uqpaytech.com/api/v1/files/download_links",
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([
'file_ids' => [
'b3d9d2d5-4c12-4946-a09d-953e82sed2b0',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b1',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b2'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <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://files.uqpaytech.com/api/v1/files/download_links"
payload := strings.NewReader("{\n \"file_ids\": [\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b0\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b1\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b2\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<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://files.uqpaytech.com/api/v1/files/download_links")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_ids\": [\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b0\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b1\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b2\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://files.uqpaytech.com/api/v1/files/download_links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_ids\": [\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b0\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b1\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b2\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"files": [
{
"file_id": "b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"file_type": "png",
"file_name": "example.png",
"size": 123456,
"url": "https://files.uqpaytech.com/api/v1/files/b3d9d2d5-4c12-4946-a09d-953e82sed2b0"
}
],
"absent_files": [
"b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
]
}File Service
Get File Download Links
Get file download links. Populate the download request with a list of file IDs and the API responds with associated download links. Files do not exceed 20MB.
POST
/
v1
/
files
/
download_links
Get File Download Links
curl --request POST \
--url https://files.uqpaytech.com/api/v1/files/download_links \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"file_ids": [
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
]
}
'import requests
url = "https://files.uqpaytech.com/api/v1/files/download_links"
payload = { "file_ids": ["b3d9d2d5-4c12-4946-a09d-953e82sed2b0", "b3d9d2d5-4c12-4946-a09d-953e82sed2b1", "b3d9d2d5-4c12-4946-a09d-953e82sed2b2"] }
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
file_ids: [
'b3d9d2d5-4c12-4946-a09d-953e82sed2b0',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b1',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b2'
]
})
};
fetch('https://files.uqpaytech.com/api/v1/files/download_links', 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://files.uqpaytech.com/api/v1/files/download_links",
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([
'file_ids' => [
'b3d9d2d5-4c12-4946-a09d-953e82sed2b0',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b1',
'b3d9d2d5-4c12-4946-a09d-953e82sed2b2'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <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://files.uqpaytech.com/api/v1/files/download_links"
payload := strings.NewReader("{\n \"file_ids\": [\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b0\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b1\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b2\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<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://files.uqpaytech.com/api/v1/files/download_links")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_ids\": [\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b0\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b1\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b2\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://files.uqpaytech.com/api/v1/files/download_links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_ids\": [\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b0\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b1\",\n \"b3d9d2d5-4c12-4946-a09d-953e82sed2b2\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"files": [
{
"file_id": "b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"file_type": "png",
"file_name": "example.png",
"size": 123456,
"url": "https://files.uqpaytech.com/api/v1/files/b3d9d2d5-4c12-4946-a09d-953e82sed2b0"
}
],
"absent_files": [
"b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
]
}Authorizations
Token used to request APIs
Headers
The value set to the connected account's ID. More information at List Connected Accounts
Body
application/json
List of file IDs to retrieve download links for.
Example:
[
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
]
Response
200 - application/json
OK - Successfully get file download links.
⌘I

