Preview resolved Session setup
curl --request POST \
--url https://api.checkfu.com/v1/sessions/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'checkfu-version: <checkfu-version>' \
--data '
{
"agent": "<string>",
"environment_id": "<string>",
"expected_resolution": "<string>",
"initial_events": [
{
"type": "user.message",
"content": [
{
"type": "text",
"text": "<string>"
}
]
}
],
"metadata": {},
"resources": [
{
"authorization_token": "<string>",
"type": "github_repository",
"url": "<string>",
"checkout": {
"type": "branch",
"name": "<string>"
},
"mount_path": "<string>"
}
],
"title": "<string>",
"vault_ids": [
"<string>"
],
"acted_as": "<string>"
}
'import requests
url = "https://api.checkfu.com/v1/sessions/preview"
payload = {
"agent": "<string>",
"environment_id": "<string>",
"expected_resolution": "<string>",
"initial_events": [
{
"type": "user.message",
"content": [
{
"type": "text",
"text": "<string>"
}
]
}
],
"metadata": {},
"resources": [
{
"authorization_token": "<string>",
"type": "github_repository",
"url": "<string>",
"checkout": {
"type": "branch",
"name": "<string>"
},
"mount_path": "<string>"
}
],
"title": "<string>",
"vault_ids": ["<string>"],
"acted_as": "<string>"
}
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>',
environment_id: '<string>',
expected_resolution: '<string>',
initial_events: [{type: 'user.message', content: [{type: 'text', text: '<string>'}]}],
metadata: {},
resources: [
{
authorization_token: '<string>',
type: 'github_repository',
url: '<string>',
checkout: {type: 'branch', name: '<string>'},
mount_path: '<string>'
}
],
title: '<string>',
vault_ids: ['<string>'],
acted_as: '<string>'
})
};
fetch('https://api.checkfu.com/v1/sessions/preview', 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/sessions/preview",
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>',
'environment_id' => '<string>',
'expected_resolution' => '<string>',
'initial_events' => [
[
'type' => 'user.message',
'content' => [
[
'type' => 'text',
'text' => '<string>'
]
]
]
],
'metadata' => [
],
'resources' => [
[
'authorization_token' => '<string>',
'type' => 'github_repository',
'url' => '<string>',
'checkout' => [
'type' => 'branch',
'name' => '<string>'
],
'mount_path' => '<string>'
]
],
'title' => '<string>',
'vault_ids' => [
'<string>'
],
'acted_as' => '<string>'
]),
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/sessions/preview"
payload := strings.NewReader("{\n \"agent\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"expected_resolution\": \"<string>\",\n \"initial_events\": [\n {\n \"type\": \"user.message\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"metadata\": {},\n \"resources\": [\n {\n \"authorization_token\": \"<string>\",\n \"type\": \"github_repository\",\n \"url\": \"<string>\",\n \"checkout\": {\n \"type\": \"branch\",\n \"name\": \"<string>\"\n },\n \"mount_path\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"vault_ids\": [\n \"<string>\"\n ],\n \"acted_as\": \"<string>\"\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/sessions/preview")
.header("checkfu-version", "<checkfu-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"expected_resolution\": \"<string>\",\n \"initial_events\": [\n {\n \"type\": \"user.message\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"metadata\": {},\n \"resources\": [\n {\n \"authorization_token\": \"<string>\",\n \"type\": \"github_repository\",\n \"url\": \"<string>\",\n \"checkout\": {\n \"type\": \"branch\",\n \"name\": \"<string>\"\n },\n \"mount_path\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"vault_ids\": [\n \"<string>\"\n ],\n \"acted_as\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.checkfu.com/v1/sessions/preview")
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 \"environment_id\": \"<string>\",\n \"expected_resolution\": \"<string>\",\n \"initial_events\": [\n {\n \"type\": \"user.message\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"metadata\": {},\n \"resources\": [\n {\n \"authorization_token\": \"<string>\",\n \"type\": \"github_repository\",\n \"url\": \"<string>\",\n \"checkout\": {\n \"type\": \"branch\",\n \"name\": \"<string>\"\n },\n \"mount_path\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"vault_ids\": [\n \"<string>\"\n ],\n \"acted_as\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"type": "session_preview",
"resolution_digest": "<string>",
"agent": {
"id": "<string>",
"connection_bindings": [
{
"name": "<string>",
"connection_id": "<string>",
"provider": "<string>",
"provider_package_digest": "<string>",
"connection_revision_id": "<string>",
"capability_snapshot_id": "<string>",
"capability_snapshot_digest": "<string>",
"tools": [
{
"name": "<string>",
"digest": "<string>"
}
]
}
],
"description": "<string>",
"harness": "<string>",
"mcp_servers": [
{
"type": "url",
"name": "<string>",
"url": "<string>"
}
],
"model": {
"id": "<string>",
"effort": {
"type": "low"
},
"inference_geo": "global",
"speed": "standard",
"provider": "<string>",
"model_credential_id": "<string>"
},
"name": "<string>",
"skills": [
{
"type": "anthropic",
"skill_id": "<string>",
"version": "<string>"
}
],
"system": "<string>",
"tools": [
{
"type": "agent_toolset_20260401",
"configs": [
{
"name": "bash",
"type": "bash",
"enabled": true,
"permission_policy": {
"type": "auto"
}
}
],
"default_config": {
"enabled": true,
"permission_policy": {
"type": "auto"
}
}
}
],
"type": "agent",
"version": 123,
"skill_selection": {
"type": "listed",
"skills": [
{
"type": "anthropic",
"skill_id": "<string>",
"version": "<string>"
}
]
}
},
"environment": {
"id": "<string>",
"archived_at": "<string>",
"config": {
"type": "cloud",
"networking": {
"type": "unrestricted"
},
"packages": {
"apt": [
"<string>"
],
"cargo": [
"<string>"
],
"gem": [
"<string>"
],
"go": [
"<string>"
],
"npm": [
"<string>"
],
"pip": [
"<string>"
],
"type": "packages"
}
},
"created_at": "<string>",
"description": "<string>",
"metadata": {},
"name": "<string>",
"type": "environment",
"updated_at": "<string>",
"scope": "organization"
},
"resources": [
{
"authorization_token": "<string>",
"type": "github_repository",
"url": "<string>",
"checkout": {
"type": "branch",
"name": "<string>"
},
"mount_path": "<string>"
}
],
"model_routing": {
"routing_policy": "cheapest_sufficient",
"eligible_candidates": [],
"access_intents": [],
"original_published_profile": {
"id": "<string>",
"version_id": "<string>",
"version": 123,
"content_sha256": "<string>"
}
}
}{
"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": "runtime.harness_incompatible",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#runtime-harness-incompatible"
}
}{
"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"
}
}{
"error": {
"type": "auth.authorization_unavailable",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#auth-authorization-unavailable"
}
}Preview resolved Session setup
Read-only resolution of the exact Agent Version, Environment, model route and payer, and supported attachment access.
POST
/
v1
/
sessions
/
preview
Preview resolved Session setup
curl --request POST \
--url https://api.checkfu.com/v1/sessions/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'checkfu-version: <checkfu-version>' \
--data '
{
"agent": "<string>",
"environment_id": "<string>",
"expected_resolution": "<string>",
"initial_events": [
{
"type": "user.message",
"content": [
{
"type": "text",
"text": "<string>"
}
]
}
],
"metadata": {},
"resources": [
{
"authorization_token": "<string>",
"type": "github_repository",
"url": "<string>",
"checkout": {
"type": "branch",
"name": "<string>"
},
"mount_path": "<string>"
}
],
"title": "<string>",
"vault_ids": [
"<string>"
],
"acted_as": "<string>"
}
'import requests
url = "https://api.checkfu.com/v1/sessions/preview"
payload = {
"agent": "<string>",
"environment_id": "<string>",
"expected_resolution": "<string>",
"initial_events": [
{
"type": "user.message",
"content": [
{
"type": "text",
"text": "<string>"
}
]
}
],
"metadata": {},
"resources": [
{
"authorization_token": "<string>",
"type": "github_repository",
"url": "<string>",
"checkout": {
"type": "branch",
"name": "<string>"
},
"mount_path": "<string>"
}
],
"title": "<string>",
"vault_ids": ["<string>"],
"acted_as": "<string>"
}
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>',
environment_id: '<string>',
expected_resolution: '<string>',
initial_events: [{type: 'user.message', content: [{type: 'text', text: '<string>'}]}],
metadata: {},
resources: [
{
authorization_token: '<string>',
type: 'github_repository',
url: '<string>',
checkout: {type: 'branch', name: '<string>'},
mount_path: '<string>'
}
],
title: '<string>',
vault_ids: ['<string>'],
acted_as: '<string>'
})
};
fetch('https://api.checkfu.com/v1/sessions/preview', 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/sessions/preview",
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>',
'environment_id' => '<string>',
'expected_resolution' => '<string>',
'initial_events' => [
[
'type' => 'user.message',
'content' => [
[
'type' => 'text',
'text' => '<string>'
]
]
]
],
'metadata' => [
],
'resources' => [
[
'authorization_token' => '<string>',
'type' => 'github_repository',
'url' => '<string>',
'checkout' => [
'type' => 'branch',
'name' => '<string>'
],
'mount_path' => '<string>'
]
],
'title' => '<string>',
'vault_ids' => [
'<string>'
],
'acted_as' => '<string>'
]),
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/sessions/preview"
payload := strings.NewReader("{\n \"agent\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"expected_resolution\": \"<string>\",\n \"initial_events\": [\n {\n \"type\": \"user.message\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"metadata\": {},\n \"resources\": [\n {\n \"authorization_token\": \"<string>\",\n \"type\": \"github_repository\",\n \"url\": \"<string>\",\n \"checkout\": {\n \"type\": \"branch\",\n \"name\": \"<string>\"\n },\n \"mount_path\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"vault_ids\": [\n \"<string>\"\n ],\n \"acted_as\": \"<string>\"\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/sessions/preview")
.header("checkfu-version", "<checkfu-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": \"<string>\",\n \"environment_id\": \"<string>\",\n \"expected_resolution\": \"<string>\",\n \"initial_events\": [\n {\n \"type\": \"user.message\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"metadata\": {},\n \"resources\": [\n {\n \"authorization_token\": \"<string>\",\n \"type\": \"github_repository\",\n \"url\": \"<string>\",\n \"checkout\": {\n \"type\": \"branch\",\n \"name\": \"<string>\"\n },\n \"mount_path\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"vault_ids\": [\n \"<string>\"\n ],\n \"acted_as\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.checkfu.com/v1/sessions/preview")
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 \"environment_id\": \"<string>\",\n \"expected_resolution\": \"<string>\",\n \"initial_events\": [\n {\n \"type\": \"user.message\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"metadata\": {},\n \"resources\": [\n {\n \"authorization_token\": \"<string>\",\n \"type\": \"github_repository\",\n \"url\": \"<string>\",\n \"checkout\": {\n \"type\": \"branch\",\n \"name\": \"<string>\"\n },\n \"mount_path\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"vault_ids\": [\n \"<string>\"\n ],\n \"acted_as\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"type": "session_preview",
"resolution_digest": "<string>",
"agent": {
"id": "<string>",
"connection_bindings": [
{
"name": "<string>",
"connection_id": "<string>",
"provider": "<string>",
"provider_package_digest": "<string>",
"connection_revision_id": "<string>",
"capability_snapshot_id": "<string>",
"capability_snapshot_digest": "<string>",
"tools": [
{
"name": "<string>",
"digest": "<string>"
}
]
}
],
"description": "<string>",
"harness": "<string>",
"mcp_servers": [
{
"type": "url",
"name": "<string>",
"url": "<string>"
}
],
"model": {
"id": "<string>",
"effort": {
"type": "low"
},
"inference_geo": "global",
"speed": "standard",
"provider": "<string>",
"model_credential_id": "<string>"
},
"name": "<string>",
"skills": [
{
"type": "anthropic",
"skill_id": "<string>",
"version": "<string>"
}
],
"system": "<string>",
"tools": [
{
"type": "agent_toolset_20260401",
"configs": [
{
"name": "bash",
"type": "bash",
"enabled": true,
"permission_policy": {
"type": "auto"
}
}
],
"default_config": {
"enabled": true,
"permission_policy": {
"type": "auto"
}
}
}
],
"type": "agent",
"version": 123,
"skill_selection": {
"type": "listed",
"skills": [
{
"type": "anthropic",
"skill_id": "<string>",
"version": "<string>"
}
]
}
},
"environment": {
"id": "<string>",
"archived_at": "<string>",
"config": {
"type": "cloud",
"networking": {
"type": "unrestricted"
},
"packages": {
"apt": [
"<string>"
],
"cargo": [
"<string>"
],
"gem": [
"<string>"
],
"go": [
"<string>"
],
"npm": [
"<string>"
],
"pip": [
"<string>"
],
"type": "packages"
}
},
"created_at": "<string>",
"description": "<string>",
"metadata": {},
"name": "<string>",
"type": "environment",
"updated_at": "<string>",
"scope": "organization"
},
"resources": [
{
"authorization_token": "<string>",
"type": "github_repository",
"url": "<string>",
"checkout": {
"type": "branch",
"name": "<string>"
},
"mount_path": "<string>"
}
],
"model_routing": {
"routing_policy": "cheapest_sufficient",
"eligible_candidates": [],
"access_intents": [],
"original_published_profile": {
"id": "<string>",
"version_id": "<string>",
"version": 123,
"content_sha256": "<string>"
}
}
}{
"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": "runtime.harness_incompatible",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#runtime-harness-incompatible"
}
}{
"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"
}
}{
"error": {
"type": "auth.authorization_unavailable",
"message": "<string>",
"more": "https://docs.checkfu.com/reference/errors#auth-authorization-unavailable"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Available options:
2026-08-31 Body
application/json
Pattern:
^agent_[0-9a-f]{32}$Pattern:
^env_[0-9a-f]{32}$Pattern:
^sha256:[0-9a-f]{64}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum array length:
50Show child attributes
Show child attributes
at most 16 correlation pairs with keys of 1 to 64 characters
Show child attributes
Show child attributes
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Pattern:
^vlt_[0-9a-f]{32}$Show child attributes
Show child attributes
Signed review binding the resolved Agent, Environment, build, verified resource bodies, initial input, and future-input policy.
Show child attributes
Show child attributes
Pattern:
^prin_[0-9a-f]{32}$Response
Success
Available options:
session_preview Pattern:
^sha256:[0-9a-f]{64}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Show child attributes
Show child attributes