curl --request GET \
--url https://api.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId} \
--header 'Authorization: Bearer <token>' \
--header 'Tenant-Name: <api-key>'import { CortiClient, CortiEnvironment } from "@corti/sdk";
const client = new CortiClient({
environment: CortiEnvironment.Eu,
auth: {
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET"
},
tenantName: "YOUR_TENANT_NAME"
});
await client.agentic.contexts.tasks.artifacts.get("ctx.0192f4c8-3d6b-7c4f-a02b-4d9e7f3c8b51", "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62", "art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84");
using Corti;
var client = new CortiClient(
"TENANT_NAME",
CortiClientEnvironment.Eu,
new CortiClientAuth.ClientCredentials("client_id", "client_secret")
);
await client.Agentic.Contexts.Tasks.Artifacts.GetAsync(
"ctx.0192f4c8-3d6b-7c4f-a02b-4d9e7f3c8b51",
"task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62",
"art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84"
);
import requests
url = "https://api.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}"
headers = {
"Authorization": "Bearer <token>",
"Tenant-Name": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}",
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>",
"Tenant-Name: <api-key>"
],
]);
$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.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Tenant-Name", "<api-key>")
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.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}")
.header("Authorization", "Bearer <token>")
.header("Tenant-Name", "<api-key>")
.asString();{
"artifactId": "art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84",
"name": "icd10-result",
"parts": [
{
"text": "J45.909"
}
]
}{
"error": {
"code": "ASSIGNMENT_CONFLICT",
"message": "could not complete assignment",
"details": {
"assignment_id": "asg_99",
"expert_id": "exp_42"
}
}
}{
"error": {
"code": "ASSIGNMENT_CONFLICT",
"message": "could not complete assignment",
"details": {
"assignment_id": "asg_99",
"expert_id": "exp_42"
}
}
}{
"error": {
"code": "ASSIGNMENT_CONFLICT",
"message": "could not complete assignment",
"details": {
"assignment_id": "asg_99",
"expert_id": "exp_42"
}
}
}Get an artifact
Returns an artifact produced by a task within a context. File parts may
carry inline bytes or a uri to fetch the content out of band.
curl --request GET \
--url https://api.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId} \
--header 'Authorization: Bearer <token>' \
--header 'Tenant-Name: <api-key>'import { CortiClient, CortiEnvironment } from "@corti/sdk";
const client = new CortiClient({
environment: CortiEnvironment.Eu,
auth: {
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET"
},
tenantName: "YOUR_TENANT_NAME"
});
await client.agentic.contexts.tasks.artifacts.get("ctx.0192f4c8-3d6b-7c4f-a02b-4d9e7f3c8b51", "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62", "art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84");
using Corti;
var client = new CortiClient(
"TENANT_NAME",
CortiClientEnvironment.Eu,
new CortiClientAuth.ClientCredentials("client_id", "client_secret")
);
await client.Agentic.Contexts.Tasks.Artifacts.GetAsync(
"ctx.0192f4c8-3d6b-7c4f-a02b-4d9e7f3c8b51",
"task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62",
"art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84"
);
import requests
url = "https://api.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}"
headers = {
"Authorization": "Bearer <token>",
"Tenant-Name": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}",
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>",
"Tenant-Name: <api-key>"
],
]);
$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.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Tenant-Name", "<api-key>")
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.{environment}.corti.app/v2/agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}")
.header("Authorization", "Bearer <token>")
.header("Tenant-Name", "<api-key>")
.asString();{
"artifactId": "art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84",
"name": "icd10-result",
"parts": [
{
"text": "J45.909"
}
]
}{
"error": {
"code": "ASSIGNMENT_CONFLICT",
"message": "could not complete assignment",
"details": {
"assignment_id": "asg_99",
"expert_id": "exp_42"
}
}
}{
"error": {
"code": "ASSIGNMENT_CONFLICT",
"message": "could not complete assignment",
"details": {
"assignment_id": "asg_99",
"expert_id": "exp_42"
}
}
}{
"error": {
"code": "ASSIGNMENT_CONFLICT",
"message": "could not complete assignment",
"details": {
"assignment_id": "asg_99",
"expert_id": "exp_42"
}
}
}Authorizations
OAuth 2.0 / OIDC bearer token.
The tenant the request operates within.
Path Parameters
Context identifier (prefixed UUIDv7).
Context identifier. Accepts ctx.<uuidv7> or a bare UUIDv7 on input; always returned prefixed.
^(ctx\.)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"ctx.0192f4c8-3d6b-7c4f-a02b-4d9e7f3c8b51"
Task identifier (prefixed UUIDv7).
Task identifier. Accepts task.<uuidv7> or a bare UUIDv7 on input; always returned prefixed.
^(task\.)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62"
Artifact identifier (prefixed UUIDv7).
Artifact identifier. Accepts art.<uuidv7> or a bare UUIDv7 on input; always returned prefixed.
^(art\.)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84"
Response
The artifact.
A named output produced by a task.
Artifact identifier. Accepts art.<uuidv7> or a bare UUIDv7 on input; always returned prefixed.
^(art\.)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"art.0192f4c8-6a9e-7f72-a35e-70c1ac6fbe84"
Content parts of the artifact.
Show child attributes
Show child attributes
[{ "text": "J45.909" }]
Optional artifact name.
"icd10-result"
A human-readable description of the artifact.
URIs of extensions that contributed to this artifact.
Optional metadata included with the artifact.
Was this page helpful?