curl --request POST \
--url http://localhost:3000/api/v1/insights/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"summary": "<string>",
"agent": "<string>",
"artifact": "<string>",
"autoContext": true,
"comment": "<string>",
"confidence": "<string>",
"detail": "<string>",
"importance": "<string>",
"kind": "<string>",
"linkId": "<string>",
"linkType": "<string>",
"profile": "<string>",
"session": "<string>",
"tag": [
"<string>"
],
"task": "<string>"
}
'import requests
url = "http://localhost:3000/api/v1/insights/create"
payload = {
"summary": "<string>",
"agent": "<string>",
"artifact": "<string>",
"autoContext": True,
"comment": "<string>",
"confidence": "<string>",
"detail": "<string>",
"importance": "<string>",
"kind": "<string>",
"linkId": "<string>",
"linkType": "<string>",
"profile": "<string>",
"session": "<string>",
"tag": ["<string>"],
"task": "<string>"
}
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({
summary: '<string>',
agent: '<string>',
artifact: '<string>',
autoContext: true,
comment: '<string>',
confidence: '<string>',
detail: '<string>',
importance: '<string>',
kind: '<string>',
linkId: '<string>',
linkType: '<string>',
profile: '<string>',
session: '<string>',
tag: ['<string>'],
task: '<string>'
})
};
fetch('http://localhost:3000/api/v1/insights/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/insights/create",
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([
'summary' => '<string>',
'agent' => '<string>',
'artifact' => '<string>',
'autoContext' => true,
'comment' => '<string>',
'confidence' => '<string>',
'detail' => '<string>',
'importance' => '<string>',
'kind' => '<string>',
'linkId' => '<string>',
'linkType' => '<string>',
'profile' => '<string>',
'session' => '<string>',
'tag' => [
'<string>'
],
'task' => '<string>'
]),
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 := "http://localhost:3000/api/v1/insights/create"
payload := strings.NewReader("{\n \"summary\": \"<string>\",\n \"agent\": \"<string>\",\n \"artifact\": \"<string>\",\n \"autoContext\": true,\n \"comment\": \"<string>\",\n \"confidence\": \"<string>\",\n \"detail\": \"<string>\",\n \"importance\": \"<string>\",\n \"kind\": \"<string>\",\n \"linkId\": \"<string>\",\n \"linkType\": \"<string>\",\n \"profile\": \"<string>\",\n \"session\": \"<string>\",\n \"tag\": [\n \"<string>\"\n ],\n \"task\": \"<string>\"\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("http://localhost:3000/api/v1/insights/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"summary\": \"<string>\",\n \"agent\": \"<string>\",\n \"artifact\": \"<string>\",\n \"autoContext\": true,\n \"comment\": \"<string>\",\n \"confidence\": \"<string>\",\n \"detail\": \"<string>\",\n \"importance\": \"<string>\",\n \"kind\": \"<string>\",\n \"linkId\": \"<string>\",\n \"linkType\": \"<string>\",\n \"profile\": \"<string>\",\n \"session\": \"<string>\",\n \"tag\": [\n \"<string>\"\n ],\n \"task\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/insights/create")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"summary\": \"<string>\",\n \"agent\": \"<string>\",\n \"artifact\": \"<string>\",\n \"autoContext\": true,\n \"comment\": \"<string>\",\n \"confidence\": \"<string>\",\n \"detail\": \"<string>\",\n \"importance\": \"<string>\",\n \"kind\": \"<string>\",\n \"linkId\": \"<string>\",\n \"linkType\": \"<string>\",\n \"profile\": \"<string>\",\n \"session\": \"<string>\",\n \"tag\": [\n \"<string>\"\n ],\n \"task\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}Create a new insight with lineage captured from the current runtime context
curl --request POST \
--url http://localhost:3000/api/v1/insights/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"summary": "<string>",
"agent": "<string>",
"artifact": "<string>",
"autoContext": true,
"comment": "<string>",
"confidence": "<string>",
"detail": "<string>",
"importance": "<string>",
"kind": "<string>",
"linkId": "<string>",
"linkType": "<string>",
"profile": "<string>",
"session": "<string>",
"tag": [
"<string>"
],
"task": "<string>"
}
'import requests
url = "http://localhost:3000/api/v1/insights/create"
payload = {
"summary": "<string>",
"agent": "<string>",
"artifact": "<string>",
"autoContext": True,
"comment": "<string>",
"confidence": "<string>",
"detail": "<string>",
"importance": "<string>",
"kind": "<string>",
"linkId": "<string>",
"linkType": "<string>",
"profile": "<string>",
"session": "<string>",
"tag": ["<string>"],
"task": "<string>"
}
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({
summary: '<string>',
agent: '<string>',
artifact: '<string>',
autoContext: true,
comment: '<string>',
confidence: '<string>',
detail: '<string>',
importance: '<string>',
kind: '<string>',
linkId: '<string>',
linkType: '<string>',
profile: '<string>',
session: '<string>',
tag: ['<string>'],
task: '<string>'
})
};
fetch('http://localhost:3000/api/v1/insights/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/insights/create",
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([
'summary' => '<string>',
'agent' => '<string>',
'artifact' => '<string>',
'autoContext' => true,
'comment' => '<string>',
'confidence' => '<string>',
'detail' => '<string>',
'importance' => '<string>',
'kind' => '<string>',
'linkId' => '<string>',
'linkType' => '<string>',
'profile' => '<string>',
'session' => '<string>',
'tag' => [
'<string>'
],
'task' => '<string>'
]),
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 := "http://localhost:3000/api/v1/insights/create"
payload := strings.NewReader("{\n \"summary\": \"<string>\",\n \"agent\": \"<string>\",\n \"artifact\": \"<string>\",\n \"autoContext\": true,\n \"comment\": \"<string>\",\n \"confidence\": \"<string>\",\n \"detail\": \"<string>\",\n \"importance\": \"<string>\",\n \"kind\": \"<string>\",\n \"linkId\": \"<string>\",\n \"linkType\": \"<string>\",\n \"profile\": \"<string>\",\n \"session\": \"<string>\",\n \"tag\": [\n \"<string>\"\n ],\n \"task\": \"<string>\"\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("http://localhost:3000/api/v1/insights/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"summary\": \"<string>\",\n \"agent\": \"<string>\",\n \"artifact\": \"<string>\",\n \"autoContext\": true,\n \"comment\": \"<string>\",\n \"confidence\": \"<string>\",\n \"detail\": \"<string>\",\n \"importance\": \"<string>\",\n \"kind\": \"<string>\",\n \"linkId\": \"<string>\",\n \"linkType\": \"<string>\",\n \"profile\": \"<string>\",\n \"session\": \"<string>\",\n \"tag\": [\n \"<string>\"\n ],\n \"task\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/insights/create")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"summary\": \"<string>\",\n \"agent\": \"<string>\",\n \"artifact\": \"<string>\",\n \"autoContext\": true,\n \"comment\": \"<string>\",\n \"confidence\": \"<string>\",\n \"detail\": \"<string>\",\n \"importance\": \"<string>\",\n \"kind\": \"<string>\",\n \"linkId\": \"<string>\",\n \"linkType\": \"<string>\",\n \"profile\": \"<string>\",\n \"session\": \"<string>\",\n \"tag\": [\n \"<string>\"\n ],\n \"task\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}Authorizations
Runtime context-key (rctx_*) issued by the Ravi gateway. Required for every non-open scope. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.
Body
Short actionable summary
Link the insight to an agent
Link the insight to one artifact path
Auto-link the current runtime session and agent when present
Optional initial comment to append after creation
low|medium|high
Longer explanation or evidence
low|normal|high
observation|pattern|win|problem|improvement
Extra link target ID/path
Extra link type: task|session|agent|artifact|profile
Link the insight to a task profile
Link the insight to a session
Canonical tags; can be repeated or comma-separated
Link the insight to a task
Response
Success — no @Returns schema declared; payload shape is loose.
The response is of type object.