curl --request POST \
--url https://api.woodwide.ai/jobs/{job_id}/explain \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
123
]
}
'import requests
url = "https://api.woodwide.ai/jobs/{job_id}/explain"
payload = { "ids": [123] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: [123]})
};
fetch('https://api.woodwide.ai/jobs/{job_id}/explain', 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.woodwide.ai/jobs/{job_id}/explain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.woodwide.ai/jobs/{job_id}/explain"
payload := strings.NewReader("{\n \"ids\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.woodwide.ai/jobs/{job_id}/explain")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woodwide.ai/jobs/{job_id}/explain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "<string>",
"status": "initializing",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"created_by": {},
"actor_name": "<string>",
"model_type": "<string>",
"model_id": "<string>",
"dataset_id": "<string>",
"dataset_name": "<string>",
"input_filename": "<string>",
"parent_job_id": "<string>",
"input": {},
"output": {},
"resources": {
"dataset": {
"id": "<string>",
"version_id": "<string>",
"version_number": 123,
"archived": false
},
"type": "dataset_ingest"
},
"explanations": [
{
"id": "<string>",
"explanation_text": "<string>",
"explanation_label": "<string>",
"explanation_gloss": "<string>",
"feature_contributions": [
{}
],
"prediction_flip": {}
}
],
"error_message": "<string>",
"woodwide_runtime_version": "<string>",
"credits_consumed": 123,
"progress": 123,
"current_step": 123,
"total_steps": 123,
"current_phase": "ssl",
"metrics_history": [
{
"step": 123,
"train_loss": 123,
"val_loss": 123
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Explain Inference Rows
Create an asynchronous explanation job for selected row ids from a completed inference job. Poll the returned explanation job; inline explanations are included on the job detail once it succeeds.
curl --request POST \
--url https://api.woodwide.ai/jobs/{job_id}/explain \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
123
]
}
'import requests
url = "https://api.woodwide.ai/jobs/{job_id}/explain"
payload = { "ids": [123] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: [123]})
};
fetch('https://api.woodwide.ai/jobs/{job_id}/explain', 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.woodwide.ai/jobs/{job_id}/explain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.woodwide.ai/jobs/{job_id}/explain"
payload := strings.NewReader("{\n \"ids\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.woodwide.ai/jobs/{job_id}/explain")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woodwide.ai/jobs/{job_id}/explain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "<string>",
"status": "initializing",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"created_by": {},
"actor_name": "<string>",
"model_type": "<string>",
"model_id": "<string>",
"dataset_id": "<string>",
"dataset_name": "<string>",
"input_filename": "<string>",
"parent_job_id": "<string>",
"input": {},
"output": {},
"resources": {
"dataset": {
"id": "<string>",
"version_id": "<string>",
"version_number": 123,
"archived": false
},
"type": "dataset_ingest"
},
"explanations": [
{
"id": "<string>",
"explanation_text": "<string>",
"explanation_label": "<string>",
"explanation_gloss": "<string>",
"feature_contributions": [
{}
],
"prediction_flip": {}
}
],
"error_message": "<string>",
"woodwide_runtime_version": "<string>",
"credits_consumed": 123,
"progress": 123,
"current_step": 123,
"total_steps": 123,
"current_phase": "ssl",
"metrics_history": [
{
"step": 123,
"train_loss": 123,
"val_loss": 123
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Request a per-row explanation job for a completed inference job.
Inference row ids to explain.
1 - 500 elementsResponse
Successful Response
Detailed job information.
Extends Job with input/output payloads, typed resource
references, error details, and billing information.
Public ID of the job (e.g. job_A8K2P9QX).
Job type: dataset_ingest, train, infer_sync, or infer_batch.
Job status: initializing, pending, queued, running, succeeded, failed, canceled, or rejected. For dataset_ingest jobs, may also be 'waiting_for_upload'.
initializing, pending, queued, running, succeeded, failed, canceled, rejected, waiting_for_upload Who created this job: {principal_type, user_id, api_key_id}.
Display name of who created the job: the user's display name (email fallback), or the API key's name for API-key principals. Populated on dashboard-activity rows; null when the creator is unknown.
Model task type when applicable (e.g. prediction, clustering, anomaly). Derived from job input or the linked model; null for jobs without a model context.
Public ID of the parent model when the job is tied to a model (training, inference); null otherwise.
Public ID of the dataset when the job references a dataset version (e.g. batch inference on curated data); null for file-only inference and other jobs.
Display name of the linked dataset when resolved via dataset_version; null when there is no dataset or the name is unavailable.
Original name of the uploaded file for file-backed jobs (sync/async file inference); null when the job referenced a dataset or carries no uploaded file.
Public ID of the parent job when this job consumes outputs from it as part of a compound inference/training chain.
Resources for a dataset_ingest job.
- IngestResources
- TrainResources
- InferSyncResources
- InferBatchResources
- ModelExplainResources
Show child attributes
Show child attributes
Inline row explanations for succeeded infer_explain jobs.
Show child attributes
Show child attributes
Human-readable error message if the job failed.
ML runtime version used for this job.
Credits consumed by this job (null if not yet finalized).
Progress percentage (0-100). For training jobs, tracks training progress.
Current training step (training jobs only). Counts SSL + finetune steps.
Total training steps planned for this job (training jobs only).
Current training phase: ssl (self-supervised pre-training) or finetune (supervised head finetune). Training jobs only; null for unsupervised model types that have no training loop.
ssl, finetune Bounded series of per-interval training metrics (capped at 200 points, downsampled in place). Training jobs only; null for unsupervised paths and for jobs before the first validation gate.
Show child attributes
Show child attributes
Was this page helpful?