curl --request POST \
--url https://api.checkfu.com/v1/instruction-proposals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'checkfu-version: <checkfu-version>' \
--data '
{
"agent": "<string>",
"source_session_ids": [
"<string>"
],
"model_routing_profile_key": "<string>",
"instructions": "<string>",
"length_budget": 1408
}
'import requests
url = "https://api.checkfu.com/v1/instruction-proposals"
payload = {
"agent": "<string>",
"source_session_ids": ["<string>"],
"model_routing_profile_key": "<string>",
"instructions": "<string>",
"length_budget": 1408
}
headers = {
"checkfu-version": "<checkfu-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'checkfu-version': '<checkfu-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent: '<string>',
source_session_ids: ['<string>'],
model_routing_profile_key: '<string>',
instructions: '<string>',
length_budget: 1408
})
};
fetch('https://api.checkfu.com/v1/instruction-proposals', 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.checkfu.com/v1/instruction-proposals",
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([
'agent' => '<string>',
'source_session_ids' => [
'<string>'
],
'model_routing_profile_key' => '<string>',
'instructions' => '<string>',
'length_budget' => 1408
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"checkfu-version: <checkfu-version>"
],
]);
$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.checkfu.com/v1/instruction-proposals"
payload := strings.NewReader("{\n \"agent\": \"<string>\",\n \"source_session_ids\": [\n \"<string>\"\n ],\n \"model_routing_profile_key\": \"<string>\",\n \"instructions\": \"<string>\",\n \"length_budget\": 1408\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("checkfu-version", "<checkfu-version>")
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.checkfu.com/v1/instruction-proposals")
.header("checkfu-version", "<checkfu-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": \"<string>\",\n \"source_session_ids\": [\n \"<string>\"\n ],\n \"model_routing_profile_key\": \"<string>\",\n \"instructions\": \"<string>\",\n \"length_budget\": 1408\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.checkfu.com/v1/instruction-proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["checkfu-version"] = '<checkfu-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": \"<string>\",\n \"source_session_ids\": [\n \"<string>\"\n ],\n \"model_routing_profile_key\": \"<string>\",\n \"instructions\": \"<string>\",\n \"length_budget\": 1408\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "authoring",
"agent": "<string>",
"base_draft_revision": 1,
"base_instructions": "<string>",
"model_routing_profile_key": "<string>",
"judge_model_routing_profile_key": "<string>",
"source_session_ids": [
"<string>"
],
"instructions": "<string>",
"length_budget": 1,
"deltas": [
{
"op": "add",
"after": "<string>",
"text": "<string>",
"provenance": {
"sources": [
{
"session": "<string>",
"event": "<string>"
}
],
"note": "<string>"
}
}
],
"result_instructions": "<string>",
"evaluation_material": {
"task": "<string>",
"rubric": "<string>"
},
"evaluations": [
{
"baseline_session": "<string>",
"candidate_session": "<string>",
"started_at": "<string>",
"result": {
"baseline": "satisfied",
"candidate": "satisfied",
"improved": true,
"baseline_cost_tokens": 1,
"candidate_cost_tokens": 1,
"completed_at": "<string>"
}
}
],
"application": {
"agent_version": 1,
"draft_revision": 1,
"applied_at": "<string>"
},
"published_version": 1,
"error": "input_session_unavailable",
"usage": {
"input_tokens": 1,
"cached_input_tokens": 1,
"cache_write_input_tokens": 1,
"output_tokens": 1,
"reasoning_output_tokens": 1,
"total_tokens": 1
},
"created_at": "<string>",
"updated_at": "<string>",
"version": 1
}{
"error": {
"type": "validation.malformed",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#validation-malformed"
}
}{
"error": {
"type": "auth.invalid_key",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#auth-invalid-key"
}
}{
"error": {
"type": "auth.disabled_tenancy",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#auth-disabled-tenancy"
}
}{
"error": {
"type": "validation.not_found",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#validation-not-found"
}
}{
"error": {
"type": "validation.conflict",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#validation-conflict"
}
}{
"error": {
"type": "model.no_eligible_model",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#model-no-eligible-model"
}
}{
"error": {
"type": "budget.exceeded",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#budget-exceeded"
}
}{
"error": {
"type": "runtime.internal",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#runtime-internal"
}
}Author an instruction proposal
Start a model-curated reflection job over outcome-bearing source Session logs, where needs_revision and failed grader verdicts are the richest signal. The artifact is an ordered set of span-addressed deltas against one Agent draft revision, each citing the verdict events that justify it, under a hard result-length budget — never a wholesale rewrite. The reflection model_routing_profile_key must differ from the route the Outcome grader judges through, and each source Session may appear at most once. Returns the InstructionProposal in authoring; accepts an optional Idempotency-Key.
Checkfu support posture: alpha; hosted. Required evidence journey: skill-delivery. Deployment-specific readiness and the latest proven release are available from GET /v1/support/capabilities.
curl --request POST \
--url https://api.checkfu.com/v1/instruction-proposals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'checkfu-version: <checkfu-version>' \
--data '
{
"agent": "<string>",
"source_session_ids": [
"<string>"
],
"model_routing_profile_key": "<string>",
"instructions": "<string>",
"length_budget": 1408
}
'import requests
url = "https://api.checkfu.com/v1/instruction-proposals"
payload = {
"agent": "<string>",
"source_session_ids": ["<string>"],
"model_routing_profile_key": "<string>",
"instructions": "<string>",
"length_budget": 1408
}
headers = {
"checkfu-version": "<checkfu-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'checkfu-version': '<checkfu-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent: '<string>',
source_session_ids: ['<string>'],
model_routing_profile_key: '<string>',
instructions: '<string>',
length_budget: 1408
})
};
fetch('https://api.checkfu.com/v1/instruction-proposals', 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.checkfu.com/v1/instruction-proposals",
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([
'agent' => '<string>',
'source_session_ids' => [
'<string>'
],
'model_routing_profile_key' => '<string>',
'instructions' => '<string>',
'length_budget' => 1408
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"checkfu-version: <checkfu-version>"
],
]);
$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.checkfu.com/v1/instruction-proposals"
payload := strings.NewReader("{\n \"agent\": \"<string>\",\n \"source_session_ids\": [\n \"<string>\"\n ],\n \"model_routing_profile_key\": \"<string>\",\n \"instructions\": \"<string>\",\n \"length_budget\": 1408\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("checkfu-version", "<checkfu-version>")
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.checkfu.com/v1/instruction-proposals")
.header("checkfu-version", "<checkfu-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": \"<string>\",\n \"source_session_ids\": [\n \"<string>\"\n ],\n \"model_routing_profile_key\": \"<string>\",\n \"instructions\": \"<string>\",\n \"length_budget\": 1408\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.checkfu.com/v1/instruction-proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["checkfu-version"] = '<checkfu-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": \"<string>\",\n \"source_session_ids\": [\n \"<string>\"\n ],\n \"model_routing_profile_key\": \"<string>\",\n \"instructions\": \"<string>\",\n \"length_budget\": 1408\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "authoring",
"agent": "<string>",
"base_draft_revision": 1,
"base_instructions": "<string>",
"model_routing_profile_key": "<string>",
"judge_model_routing_profile_key": "<string>",
"source_session_ids": [
"<string>"
],
"instructions": "<string>",
"length_budget": 1,
"deltas": [
{
"op": "add",
"after": "<string>",
"text": "<string>",
"provenance": {
"sources": [
{
"session": "<string>",
"event": "<string>"
}
],
"note": "<string>"
}
}
],
"result_instructions": "<string>",
"evaluation_material": {
"task": "<string>",
"rubric": "<string>"
},
"evaluations": [
{
"baseline_session": "<string>",
"candidate_session": "<string>",
"started_at": "<string>",
"result": {
"baseline": "satisfied",
"candidate": "satisfied",
"improved": true,
"baseline_cost_tokens": 1,
"candidate_cost_tokens": 1,
"completed_at": "<string>"
}
}
],
"application": {
"agent_version": 1,
"draft_revision": 1,
"applied_at": "<string>"
},
"published_version": 1,
"error": "input_session_unavailable",
"usage": {
"input_tokens": 1,
"cached_input_tokens": 1,
"cache_write_input_tokens": 1,
"output_tokens": 1,
"reasoning_output_tokens": 1,
"total_tokens": 1
},
"created_at": "<string>",
"updated_at": "<string>",
"version": 1
}{
"error": {
"type": "validation.malformed",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#validation-malformed"
}
}{
"error": {
"type": "auth.invalid_key",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#auth-invalid-key"
}
}{
"error": {
"type": "auth.disabled_tenancy",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#auth-disabled-tenancy"
}
}{
"error": {
"type": "validation.not_found",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#validation-not-found"
}
}{
"error": {
"type": "validation.conflict",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#validation-conflict"
}
}{
"error": {
"type": "model.no_eligible_model",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#model-no-eligible-model"
}
}{
"error": {
"type": "budget.exceeded",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#budget-exceeded"
}
}{
"error": {
"type": "runtime.internal",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#runtime-internal"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
2026-08-24 255Body
^agent_[0-9a-f]{32}$1 - 8 elements^sess_[0-9a-f]{32}$^[a-z0-9](?:[a-z0-9._-]{0,93})$1 - 4096256 <= x <= 2560Response
distinct reflection and judge bindings, an error exactly on authoring failure, an artifact exactly past authoring, an application exactly on applied, a published version only after application, and evaluation states only with a recorded comparison
^inp_[0-9a-f]{32}$authoring, drafted, authoring_failed, evaluating, evaluated, evaluation_failed, applied, discarded ^agent_[0-9a-f]{32}$x > 0^[a-z0-9](?:[a-z0-9._-]{0,93})$^[a-z0-9](?:[a-z0-9._-]{0,93})$1 - 8 elements^sess_[0-9a-f]{32}$4096x > 01 - 8 elements- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Show child attributes
Show child attributes
4Show child attributes
Show child attributes
Show child attributes
Show child attributes
x > 0input_session_unavailable, input_sessions_too_large, authoring_failed, internal Show child attributes
Show child attributes
x > 0