curl --request GET \
--url https://api.cloneable.ai/files \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cloneable.ai/files"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cloneable.ai/files', 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.cloneable.ai/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.cloneable.ai/files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.cloneable.ai/files")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"index": 123,
"size": 123,
"count": 123,
"pages": 123,
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": "<string>",
"content_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"extension": "<string>",
"name": "<string>",
"display_name": "<string>",
"size": 123,
"type": "<string>",
"url": "<string>",
"saved_to_cloud": true,
"storage_auth_provider_name": "<string>",
"storage_provider": "<string>",
"sync_to_edge": true,
"archived_original_url": "<string>",
"related_object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"related_workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type_ref_ids": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z",
"type_ref_ID": "<string>",
"additional_properties": {}
}
],
"archived": [
"<string>"
],
"has_more": true
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}List files (paginated)
List files and photos in your organization with pagination. Note: file.url is an internal R2 storage key, not a download URL — call GET /file/{id}/download-url to get a signed one-hour URL. Check saved_to_cloud: true to confirm the field device finished uploading.
curl --request GET \
--url https://api.cloneable.ai/files \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cloneable.ai/files"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cloneable.ai/files', 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.cloneable.ai/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.cloneable.ai/files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.cloneable.ai/files")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"index": 123,
"size": 123,
"count": 123,
"pages": 123,
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": "<string>",
"content_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"extension": "<string>",
"name": "<string>",
"display_name": "<string>",
"size": 123,
"type": "<string>",
"url": "<string>",
"saved_to_cloud": true,
"storage_auth_provider_name": "<string>",
"storage_provider": "<string>",
"sync_to_edge": true,
"archived_original_url": "<string>",
"related_object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"related_workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type_ref_ids": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z",
"type_ref_ID": "<string>",
"additional_properties": {}
}
],
"archived": [
"<string>"
],
"has_more": true
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}Authorizations
Query Parameters
Base64-encoded JSON string (see Authentication & Conventions for Unicode-safe encoding). Decoded JSON schema: {"type":"object","properties":{"created_at":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}}},"search":{"type":"string"},"saved_to_cloud":{"type":"boolean"},"sync_to_edge":{"type":"boolean"},"type":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"additional_properties":{"type":"object","additionalProperties":{"nullable":true}}}}.