Retrieve a user upload
curl --request GET \
--url https://api-sandbox.argyle.com/v2/user-uploads/{id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-sandbox.argyle.com/v2/user-uploads/{id}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-sandbox.argyle.com/v2/user-uploads/{id}', 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-sandbox.argyle.com/v2/user-uploads/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.argyle.com/v2/user-uploads/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.argyle.com/v2/user-uploads/{id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.argyle.com/v2/user-uploads/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"id": "01320596-2c3d-189c-53e7-a8ce6d625b33",
"account": "01856c65-43b6-8b5d-b32a-56b8fbda5c28",
"document_type": "paystubs",
"file_url": "www.argyle.com/storagename",
"file_name": "most_recent_paystub.pdf",
"metadata": {
"employment": {},
"ocr_data": {},
"ocr_documents": [],
"ocr_authenticity": {},
"ocr_authenticity_score": null
},
"processing": {
"classification": "unauthorized",
"ocr": "unauthorized",
"authenticity": "unauthorized"
},
"created_at": "2024-07-08T13:43:49.864Z",
"updated_at": "2024-07-08T13:43:51.868Z"
}User Uploads
Retrieve A User Upload
Retrieves a user upload object.
GET
/
v2
/
user-uploads
/
{id}
Retrieve a user upload
curl --request GET \
--url https://api-sandbox.argyle.com/v2/user-uploads/{id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-sandbox.argyle.com/v2/user-uploads/{id}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-sandbox.argyle.com/v2/user-uploads/{id}', 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-sandbox.argyle.com/v2/user-uploads/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.argyle.com/v2/user-uploads/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.argyle.com/v2/user-uploads/{id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.argyle.com/v2/user-uploads/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"id": "01320596-2c3d-189c-53e7-a8ce6d625b33",
"account": "01856c65-43b6-8b5d-b32a-56b8fbda5c28",
"document_type": "paystubs",
"file_url": "www.argyle.com/storagename",
"file_name": "most_recent_paystub.pdf",
"metadata": {
"employment": {},
"ocr_data": {},
"ocr_documents": [],
"ocr_authenticity": {},
"ocr_authenticity_score": null
},
"processing": {
"classification": "unauthorized",
"ocr": "unauthorized",
"authenticity": "unauthorized"
},
"created_at": "2024-07-08T13:43:49.864Z",
"updated_at": "2024-07-08T13:43:51.868Z"
}Response
200 - application/json
A user upload object.
The document category in Link the user selected, or the document_type provided when uploading via the API.
If OCR processing is enabled, this value is overwritten when the document is found to be a different type.
Possible values:
paystubsW-21099proof-of-identityproof-of-addressmiscellaneous
URL linking to the original uploaded document file.
This static URL redirects to a download page that requires Argyle authentication headers.
Implementation requirements for client-side applications
- Ensure your HTTP client or library (for example, Axios or Python requests) is configured to follow redirects.
- Append Basic authentication headers for Argyle to the file download request.
Timestamp (ISO 8601) when the uploaded document was submitted.
Timestamp (ISO 8601) when the user upload object was last updated.