List files
curl --request GET \
--url https://api.phylo.bio/api/v1/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.phylo.bio/api/v1/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.phylo.bio/api/v1/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.phylo.bio/api/v1/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 => [
"Authorization: Bearer <token>"
],
]);
$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.phylo.bio/api/v1/files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.phylo.bio/api/v1/files")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.phylo.bio/api/v1/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "file_8a2c3b91de",
"object": "file",
"created": 1779123597,
"filename": "brca1_demo_variants.vcf",
"bytes": 673,
"purpose": "input",
"mime_type": "text/x-vcard",
"project_id": "proj_93f8f2a5bd",
"platform": "api"
},
{
"id": "file_1f0b7c4a92",
"object": "file",
"created": 1779131500,
"filename": "patient001_counts.csv",
"bytes": 4321,
"purpose": "input",
"mime_type": "text/csv",
"project_id": "proj_93f8f2a5bd",
"platform": "api"
}
],
"has_more": false
}Files
List files
List the input files uploaded to a project.
GET
/
files
List files
curl --request GET \
--url https://api.phylo.bio/api/v1/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.phylo.bio/api/v1/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.phylo.bio/api/v1/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.phylo.bio/api/v1/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 => [
"Authorization: Bearer <token>"
],
]);
$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.phylo.bio/api/v1/files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.phylo.bio/api/v1/files")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.phylo.bio/api/v1/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "file_8a2c3b91de",
"object": "file",
"created": 1779123597,
"filename": "brca1_demo_variants.vcf",
"bytes": 673,
"purpose": "input",
"mime_type": "text/x-vcard",
"project_id": "proj_93f8f2a5bd",
"platform": "api"
},
{
"id": "file_1f0b7c4a92",
"object": "file",
"created": 1779131500,
"filename": "patient001_counts.csv",
"bytes": 4321,
"purpose": "input",
"mime_type": "text/csv",
"project_id": "proj_93f8f2a5bd",
"platform": "api"
}
],
"has_more": false
}Returns metadata only (
id, filename, bytes, mime_type) — not the contents; download with GET /files/{id}/content. Pass a file’s id in a message’s file_ids to attach it to a Task as an explicit input.Authorizations
Requires an API key. See the Authentication guide.
⌘I
