List objects.
curl --request GET \
--url https://api.coinfer.ai/api/object \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.coinfer.ai/api/object"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.coinfer.ai/api/object', 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.coinfer.ai/api/object",
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.coinfer.ai/api/object"
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.coinfer.ai/api/object")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinfer.ai/api/object")
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{
"status": "ok",
"data": {
"total": 123,
"page": 123,
"count_per_page": 123,
"objects": [
{
"object_type": "experiment",
"short_id": "<string>",
"name": "<string>",
"status": "<string>",
"n_chains": 123,
"n_variables": 123,
"n_samples": 123,
"sample_update_time": "2023-11-07T05:31:56Z",
"run_on": "<string>",
"model_name": "<string>",
"model_id": "<string>",
"meta": {
"action": "",
"iteration_count": 123
},
"workflow_id": "",
"workflow_name": ""
}
]
}
}{
"status": "error",
"code": "<string>",
"message": "<string>"
}Object
List objects.
List Objects
By default, the API returns only objects created by the current user, excluding sharing information for performance optimization.
When shared_with_me is enabled, the API returns objects owned by other users but
shared with the current user, including their sharing details.
Enabling shared_by_me will include sharing information for objects that the current
user has shared with others.
Setting with_share_info to true combines both scenarios: it returns objects shared
by the current user as well as objects shared with the current user, complete with
their respective sharing information. This effectively merges the functionality of
both shared_by_me and shared_with_me.
Example
List models:
GET /api/object?object_type=model
GET /api/object?object_type=model&shared_by_me=true
GET /api/object?object_type=model&shared_with_me=true
GET /api/object?object_type=model&with_share_info=true
List experiments:
GET /api/object?object_type=experiment
GET /api/object?object_type=experiment&shared_by_me=true
GET /api/object?object_type=experiment&shared_with_me=true
GET /api/object?object_type=experiment&with_share_info=true
GET
/
api
/
object
List objects.
curl --request GET \
--url https://api.coinfer.ai/api/object \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.coinfer.ai/api/object"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.coinfer.ai/api/object', 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.coinfer.ai/api/object",
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.coinfer.ai/api/object"
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.coinfer.ai/api/object")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinfer.ai/api/object")
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{
"status": "ok",
"data": {
"total": 123,
"page": 123,
"count_per_page": 123,
"objects": [
{
"object_type": "experiment",
"short_id": "<string>",
"name": "<string>",
"status": "<string>",
"n_chains": 123,
"n_variables": 123,
"n_samples": 123,
"sample_update_time": "2023-11-07T05:31:56Z",
"run_on": "<string>",
"model_name": "<string>",
"model_id": "<string>",
"meta": {
"action": "",
"iteration_count": 123
},
"workflow_id": "",
"workflow_name": ""
}
]
}
}{
"status": "error",
"code": "<string>",
"message": "<string>"
}Authorizations
Query Parameters
Response
OK