Get Job
curl --request GET \
--url https://api.novita.ai/gpus/v2/jobs/{job_id} \
--header 'Authorization: <authorization>'import requests
url = "https://api.novita.ai/gpus/v2/jobs/{job_id}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.novita.ai/gpus/v2/jobs/{job_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.novita.ai/gpus/v2/jobs/{job_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 => [
"Authorization: <authorization>"
],
]);
$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.novita.ai/gpus/v2/jobs/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.novita.ai/gpus/v2/jobs/{job_id}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novita.ai/gpus/v2/jobs/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": "job-id",
"type": "saveImage",
"envs": [],
"status": {
"status": "Succeeded",
"error": "",
"message": ""
},
"log": {
"endpoint": "https://example.com/logs/job-id"
},
"created_at": 1714982400,
"member_id": "member-id",
"owner_id": "owner-id",
"deleted_time": 0,
"update_at": 1714982600,
"instance_id": "instance-id"
}Jobs
Get Job
GET
/
gpus
/
v2
/
jobs
/
{job_id}
Get Job
curl --request GET \
--url https://api.novita.ai/gpus/v2/jobs/{job_id} \
--header 'Authorization: <authorization>'import requests
url = "https://api.novita.ai/gpus/v2/jobs/{job_id}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.novita.ai/gpus/v2/jobs/{job_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.novita.ai/gpus/v2/jobs/{job_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 => [
"Authorization: <authorization>"
],
]);
$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.novita.ai/gpus/v2/jobs/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.novita.ai/gpus/v2/jobs/{job_id}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novita.ai/gpus/v2/jobs/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": "job-id",
"type": "saveImage",
"envs": [],
"status": {
"status": "Succeeded",
"error": "",
"message": ""
},
"log": {
"endpoint": "https://example.com/logs/job-id"
},
"created_at": 1714982400,
"member_id": "member-id",
"owner_id": "owner-id",
"deleted_time": 0,
"update_at": 1714982600,
"instance_id": "instance-id"
}Header
Bearer authentication format, e.g.: Bearer {{API_KEY}}.
Pfadparameter
Job ID. String, length: 1-255 characters.
Antwort
200 - application/json
OK
Job ID
Beispiel:
"job-id"
Job type
Beispiel:
"saveImage"
Job environment variables
Beispiel:
[]
Job status
Show child attributes
Show child attributes
Job log endpoint
Beispiel:
{
"endpoint": "https://example.com/logs/job-id"
}
Creation time. Unix timestamp
Beispiel:
1714982400
Creator member ID. Same semantics as the legacy creator field
Beispiel:
"member-id"
Owner user UUID. Same semantics as the legacy uuid field
Beispiel:
"owner-id"
Deletion time. Unix timestamp
Beispiel:
0
Update time. Same semantics as v1, Unix timestamp
Beispiel:
1714982600
Associated instance ID
Beispiel:
"instance-id"
Zuletzt geändert am 10. August 2026