Get agent file
curl --request GET \
--url https://api.getnexor.ai/api/public/file-library/files/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/file-library/files/{id}"
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.getnexor.ai/api/public/file-library/files/{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.getnexor.ai/api/public/file-library/files/{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 => [
"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.getnexor.ai/api/public/file-library/files/{id}"
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.getnexor.ai/api/public/file-library/files/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/file-library/files/{id}")
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{
"success": true,
"file": {
"id": "8a1f2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"handle": "brochure",
"label": "2026 brochure",
"filename": "brochure-2026.pdf",
"mime_type": "application/pdf",
"agent_instruction": "When the lead asks for prices or a brochure.",
"created_at": "2026-09-28T00:00:00.000Z",
"legacy_folder_handle": null
}
}{
"error": "Validation error",
"message": "`id` must be a valid UUID"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "Forbidden",
"message": "This API key is missing the required scope: workflows:read"
}{
"error": "Not found",
"message": "File not found"
}{
"error": "Internal server error",
"message": "Unexpected error"
}Get agent file
Read one file your agents can send, with its handle and sending instructions.
GET
/
file-library
/
files
/
{id}
Get agent file
curl --request GET \
--url https://api.getnexor.ai/api/public/file-library/files/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/file-library/files/{id}"
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.getnexor.ai/api/public/file-library/files/{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.getnexor.ai/api/public/file-library/files/{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 => [
"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.getnexor.ai/api/public/file-library/files/{id}"
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.getnexor.ai/api/public/file-library/files/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/file-library/files/{id}")
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{
"success": true,
"file": {
"id": "8a1f2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"handle": "brochure",
"label": "2026 brochure",
"filename": "brochure-2026.pdf",
"mime_type": "application/pdf",
"agent_instruction": "When the lead asks for prices or a brochure.",
"created_at": "2026-09-28T00:00:00.000Z",
"legacy_folder_handle": null
}
}{
"error": "Validation error",
"message": "`id` must be a valid UUID"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "Forbidden",
"message": "This API key is missing the required scope: workflows:read"
}{
"error": "Not found",
"message": "File not found"
}{
"error": "Internal server error",
"message": "Unexpected error"
}Use the
id from List files. The response does not say which tasks can send the file. To check one task, list the files with workflow_id.
label is null when the file has no name of its own. In that case, show filename.Authorizations
API key for authentication. Keys are prefixed with nxr_live_.
Path Parameters
File ID, from List files. A malformed ID returns 400 Validation error.
Last modified on September 29, 2026
⌘I