Lister les runs
curl --request GET \
--url https://api.retriever.run/v1/runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.retriever.run/v1/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.retriever.run/v1/runs', 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.retriever.run/v1/runs",
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.retriever.run/v1/runs"
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.retriever.run/v1/runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.retriever.run/v1/runs")
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{
"items": [
{
"id": "run_001",
"workspace_id": "ws_001",
"conversation_id": "conv_001",
"status": "completed",
"message": "J'ai créé la table Fintechs FR avec 30 entreprises.",
"artifacts": [
{
"type": "table",
"id": "tbl_001",
"name": "Fintechs FR",
"effect": "created",
"links": {
"self": "/v1/tables/tbl_001",
"rows": "/v1/tables/tbl_001/rows"
}
}
],
"output": null,
"error": null,
"cancellation_requested": false,
"links": {
"self": "/v1/runs/run_001",
"app": "https://app.retriever.so/app/workspaces/ws_001/conversations/conv_001"
}
}
],
"next_offset": 123
}{
"error": {
"code": "invalid_request",
"message": "prompt: prompt must not be blank",
"details": [
{
"path": "prompt",
"message": "prompt must not be blank"
}
]
}
}{
"error": {
"code": "not_authenticated",
"message": "A valid API key is required."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry later."
}
}Runs
Lister les runs
GET
/
v1
/
runs
Lister les runs
curl --request GET \
--url https://api.retriever.run/v1/runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.retriever.run/v1/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.retriever.run/v1/runs', 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.retriever.run/v1/runs",
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.retriever.run/v1/runs"
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.retriever.run/v1/runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.retriever.run/v1/runs")
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{
"items": [
{
"id": "run_001",
"workspace_id": "ws_001",
"conversation_id": "conv_001",
"status": "completed",
"message": "J'ai créé la table Fintechs FR avec 30 entreprises.",
"artifacts": [
{
"type": "table",
"id": "tbl_001",
"name": "Fintechs FR",
"effect": "created",
"links": {
"self": "/v1/tables/tbl_001",
"rows": "/v1/tables/tbl_001/rows"
}
}
],
"output": null,
"error": null,
"cancellation_requested": false,
"links": {
"self": "/v1/runs/run_001",
"app": "https://app.retriever.so/app/workspaces/ws_001/conversations/conv_001"
}
}
],
"next_offset": 123
}{
"error": {
"code": "invalid_request",
"message": "prompt: prompt must not be blank",
"details": [
{
"path": "prompt",
"message": "prompt must not be blank"
}
]
}
}{
"error": {
"code": "not_authenticated",
"message": "A valid API key is required."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry later."
}
}Authorizations
Clé API ret_live_… créée dans Settings → API keys.
Query Parameters
Required range:
1 <= x <= 1000Required range:
x >= 0Filtre par workspace.
Filtre par conversation.