List this organization's training sessions.
curl --request GET \
--url http://localhost:3001/v1/training/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"id": "<string>",
"status": "provisioning",
"provider": "modal",
"funding_source": "platform",
"lease_epoch": 1,
"lease_expires_at": "2023-11-07T05:31:56Z",
"max_cost_microusd": 123,
"error_code": "<string>",
"capability": {
"provider": "modal",
"models": [
"<string>"
],
"operations": [
"<string>"
],
"sampler_operations": [
"<string>"
],
"resource_profiles": {},
"billing_snapshot": {}
},
"capability_snapshot": {
"provider": "modal",
"models": [
"<string>"
],
"operations": [
"<string>"
],
"sampler_operations": [
"<string>"
],
"resource_profiles": {},
"billing_snapshot": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}unified-training
List this organization's training sessions.
GET
/
v1
/
training
/
sessions
List this organization's training sessions.
curl --request GET \
--url http://localhost:3001/v1/training/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"id": "<string>",
"status": "provisioning",
"provider": "modal",
"funding_source": "platform",
"lease_epoch": 1,
"lease_expires_at": "2023-11-07T05:31:56Z",
"max_cost_microusd": 123,
"error_code": "<string>",
"capability": {
"provider": "modal",
"models": [
"<string>"
],
"operations": [
"<string>"
],
"sampler_operations": [
"<string>"
],
"resource_profiles": {},
"billing_snapshot": {}
},
"capability_snapshot": {
"provider": "modal",
"models": [
"<string>"
],
"operations": [
"<string>"
],
"sampler_operations": [
"<string>"
],
"resource_profiles": {},
"billing_snapshot": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}