Call a tool
curl --request POST \
--url https://app.outlit.ai/api/tools/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool": "outlit_list_customers",
"input": {
"filters": {
"billingStatus": [],
"arr": {
"above": 4503599627370495,
"below": 4503599627370495,
"currency": "<string>"
},
"fields": [
{
"field": {
"key": "<string>"
},
"value": "<string>"
}
],
"owner": {
"id": "<string>",
"email": "<string>",
"has": true
},
"activity": {
"within": "7d",
"notWithin": "7d",
"activatedSince": "2023-11-07T05:31:56Z"
},
"renewal": {
"after": "2023-12-25",
"before": "2023-12-25"
},
"search": "<string>",
"partOf": "<string>"
},
"fields": [
{
"key": "<string>"
}
],
"limit": 25,
"cursor": "<string>",
"orderBy": "last_activity_at"
}
}
'import requests
url = "https://app.outlit.ai/api/tools/call"
payload = {
"tool": "outlit_list_customers",
"input": {
"filters": {
"billingStatus": [],
"arr": {
"above": 4503599627370495,
"below": 4503599627370495,
"currency": "<string>"
},
"fields": [
{
"field": { "key": "<string>" },
"value": "<string>"
}
],
"owner": {
"id": "<string>",
"email": "<string>",
"has": True
},
"activity": {
"within": "7d",
"notWithin": "7d",
"activatedSince": "2023-11-07T05:31:56Z"
},
"renewal": {
"after": "2023-12-25",
"before": "2023-12-25"
},
"search": "<string>",
"partOf": "<string>"
},
"fields": [{ "key": "<string>" }],
"limit": 25,
"cursor": "<string>",
"orderBy": "last_activity_at"
}
}
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({
tool: 'outlit_list_customers',
input: {
filters: {
billingStatus: [],
arr: {above: 4503599627370495, below: 4503599627370495, currency: '<string>'},
fields: [{field: {key: '<string>'}, value: '<string>'}],
owner: {id: '<string>', email: '<string>', has: true},
activity: {within: '7d', notWithin: '7d', activatedSince: '2023-11-07T05:31:56Z'},
renewal: {after: '2023-12-25', before: '2023-12-25'},
search: '<string>',
partOf: '<string>'
},
fields: [{key: '<string>'}],
limit: 25,
cursor: '<string>',
orderBy: 'last_activity_at'
}
})
};
fetch('https://app.outlit.ai/api/tools/call', 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://app.outlit.ai/api/tools/call",
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([
'tool' => 'outlit_list_customers',
'input' => [
'filters' => [
'billingStatus' => [
],
'arr' => [
'above' => 4503599627370495,
'below' => 4503599627370495,
'currency' => '<string>'
],
'fields' => [
[
'field' => [
'key' => '<string>'
],
'value' => '<string>'
]
],
'owner' => [
'id' => '<string>',
'email' => '<string>',
'has' => true
],
'activity' => [
'within' => '7d',
'notWithin' => '7d',
'activatedSince' => '2023-11-07T05:31:56Z'
],
'renewal' => [
'after' => '2023-12-25',
'before' => '2023-12-25'
],
'search' => '<string>',
'partOf' => '<string>'
],
'fields' => [
[
'key' => '<string>'
]
],
'limit' => 25,
'cursor' => '<string>',
'orderBy' => 'last_activity_at'
]
]),
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://app.outlit.ai/api/tools/call"
payload := strings.NewReader("{\n \"tool\": \"outlit_list_customers\",\n \"input\": {\n \"filters\": {\n \"billingStatus\": [],\n \"arr\": {\n \"above\": 4503599627370495,\n \"below\": 4503599627370495,\n \"currency\": \"<string>\"\n },\n \"fields\": [\n {\n \"field\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ],\n \"owner\": {\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"has\": true\n },\n \"activity\": {\n \"within\": \"7d\",\n \"notWithin\": \"7d\",\n \"activatedSince\": \"2023-11-07T05:31:56Z\"\n },\n \"renewal\": {\n \"after\": \"2023-12-25\",\n \"before\": \"2023-12-25\"\n },\n \"search\": \"<string>\",\n \"partOf\": \"<string>\"\n },\n \"fields\": [\n {\n \"key\": \"<string>\"\n }\n ],\n \"limit\": 25,\n \"cursor\": \"<string>\",\n \"orderBy\": \"last_activity_at\"\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://app.outlit.ai/api/tools/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool\": \"outlit_list_customers\",\n \"input\": {\n \"filters\": {\n \"billingStatus\": [],\n \"arr\": {\n \"above\": 4503599627370495,\n \"below\": 4503599627370495,\n \"currency\": \"<string>\"\n },\n \"fields\": [\n {\n \"field\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ],\n \"owner\": {\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"has\": true\n },\n \"activity\": {\n \"within\": \"7d\",\n \"notWithin\": \"7d\",\n \"activatedSince\": \"2023-11-07T05:31:56Z\"\n },\n \"renewal\": {\n \"after\": \"2023-12-25\",\n \"before\": \"2023-12-25\"\n },\n \"search\": \"<string>\",\n \"partOf\": \"<string>\"\n },\n \"fields\": [\n {\n \"key\": \"<string>\"\n }\n ],\n \"limit\": 25,\n \"cursor\": \"<string>\",\n \"orderBy\": \"last_activity_at\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.outlit.ai/api/tools/call")
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 \"tool\": \"outlit_list_customers\",\n \"input\": {\n \"filters\": {\n \"billingStatus\": [],\n \"arr\": {\n \"above\": 4503599627370495,\n \"below\": 4503599627370495,\n \"currency\": \"<string>\"\n },\n \"fields\": [\n {\n \"field\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ],\n \"owner\": {\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"has\": true\n },\n \"activity\": {\n \"within\": \"7d\",\n \"notWithin\": \"7d\",\n \"activatedSince\": \"2023-11-07T05:31:56Z\"\n },\n \"renewal\": {\n \"after\": \"2023-12-25\",\n \"before\": \"2023-12-25\"\n },\n \"search\": \"<string>\",\n \"partOf\": \"<string>\"\n },\n \"fields\": [\n {\n \"key\": \"<string>\"\n }\n ],\n \"limit\": 25,\n \"cursor\": \"<string>\",\n \"orderBy\": \"last_activity_at\"\n }\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"billingStatus": "none",
"activatedAt": "2023-11-07T05:31:56Z",
"lastActivityAt": "2023-11-07T05:31:56Z",
"daysSinceActivity": 4503599627370495,
"contactCount": 4503599627370495,
"arr": {
"value": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"estimated": true,
"lifecycle": "active",
"parts": {
"subscriptions": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"usage": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"invoicedLast12Months": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"usageWindow": {
"periods": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"amount": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
}
}
],
"count": 4503599627370495,
"partial": true
}
},
"basis": "subscriptions"
},
"owner": {
"id": "<string>",
"email": "<string>",
"name": "<string>"
},
"outlit": {
"firstSyncedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"status": "provisional",
"renewal": {
"date": "<string>",
"source": "outlit"
},
"credits": {
"runsOutAt": "2023-11-07T05:31:56Z",
"pool": {
"id": "<string>",
"name": "<string>"
},
"balance": {
"remaining": 123,
"granted": 123
}
},
"meter": {
"feature": "<string>",
"reported": 123,
"accounts": 4503599627370496,
"observed": "2023-11-07T05:31:56Z"
},
"fields": [
{
"field": {
"source": "hubspot",
"key": "<string>"
},
"label": "<string>",
"values": [
"<string>"
]
}
],
"crmSummary": [
{
"provider": "<string>",
"connectionId": "<string>",
"accountId": "<string>",
"name": "<string>",
"fields": [
{
"field": {
"source": "hubspot",
"key": "<string>"
},
"label": "<string>",
"values": [
"<string>"
]
}
]
}
]
}
],
"page": {
"hasMore": true,
"nextCursor": "<string>",
"total": 4503599627370495
},
"totals": {
"arr": [
{
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
}
]
},
"arrCurrencies": [
"<string>"
],
"coverage": {
"searched": "<string>",
"stale": 4503599627370495,
"withoutMeter": 4503599627370495,
"ambiguous": 4503599627370495
},
"truncation": {
"truncated": true,
"reason": "byte_cap",
"returned": 4503599627370495,
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"clipped": [
{
"path": "<string>",
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
}
}
]
}
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}Call a tool
Call customer intelligence tools through the public tool gateway.
POST
/
api
/
tools
/
call
Call a tool
curl --request POST \
--url https://app.outlit.ai/api/tools/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool": "outlit_list_customers",
"input": {
"filters": {
"billingStatus": [],
"arr": {
"above": 4503599627370495,
"below": 4503599627370495,
"currency": "<string>"
},
"fields": [
{
"field": {
"key": "<string>"
},
"value": "<string>"
}
],
"owner": {
"id": "<string>",
"email": "<string>",
"has": true
},
"activity": {
"within": "7d",
"notWithin": "7d",
"activatedSince": "2023-11-07T05:31:56Z"
},
"renewal": {
"after": "2023-12-25",
"before": "2023-12-25"
},
"search": "<string>",
"partOf": "<string>"
},
"fields": [
{
"key": "<string>"
}
],
"limit": 25,
"cursor": "<string>",
"orderBy": "last_activity_at"
}
}
'import requests
url = "https://app.outlit.ai/api/tools/call"
payload = {
"tool": "outlit_list_customers",
"input": {
"filters": {
"billingStatus": [],
"arr": {
"above": 4503599627370495,
"below": 4503599627370495,
"currency": "<string>"
},
"fields": [
{
"field": { "key": "<string>" },
"value": "<string>"
}
],
"owner": {
"id": "<string>",
"email": "<string>",
"has": True
},
"activity": {
"within": "7d",
"notWithin": "7d",
"activatedSince": "2023-11-07T05:31:56Z"
},
"renewal": {
"after": "2023-12-25",
"before": "2023-12-25"
},
"search": "<string>",
"partOf": "<string>"
},
"fields": [{ "key": "<string>" }],
"limit": 25,
"cursor": "<string>",
"orderBy": "last_activity_at"
}
}
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({
tool: 'outlit_list_customers',
input: {
filters: {
billingStatus: [],
arr: {above: 4503599627370495, below: 4503599627370495, currency: '<string>'},
fields: [{field: {key: '<string>'}, value: '<string>'}],
owner: {id: '<string>', email: '<string>', has: true},
activity: {within: '7d', notWithin: '7d', activatedSince: '2023-11-07T05:31:56Z'},
renewal: {after: '2023-12-25', before: '2023-12-25'},
search: '<string>',
partOf: '<string>'
},
fields: [{key: '<string>'}],
limit: 25,
cursor: '<string>',
orderBy: 'last_activity_at'
}
})
};
fetch('https://app.outlit.ai/api/tools/call', 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://app.outlit.ai/api/tools/call",
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([
'tool' => 'outlit_list_customers',
'input' => [
'filters' => [
'billingStatus' => [
],
'arr' => [
'above' => 4503599627370495,
'below' => 4503599627370495,
'currency' => '<string>'
],
'fields' => [
[
'field' => [
'key' => '<string>'
],
'value' => '<string>'
]
],
'owner' => [
'id' => '<string>',
'email' => '<string>',
'has' => true
],
'activity' => [
'within' => '7d',
'notWithin' => '7d',
'activatedSince' => '2023-11-07T05:31:56Z'
],
'renewal' => [
'after' => '2023-12-25',
'before' => '2023-12-25'
],
'search' => '<string>',
'partOf' => '<string>'
],
'fields' => [
[
'key' => '<string>'
]
],
'limit' => 25,
'cursor' => '<string>',
'orderBy' => 'last_activity_at'
]
]),
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://app.outlit.ai/api/tools/call"
payload := strings.NewReader("{\n \"tool\": \"outlit_list_customers\",\n \"input\": {\n \"filters\": {\n \"billingStatus\": [],\n \"arr\": {\n \"above\": 4503599627370495,\n \"below\": 4503599627370495,\n \"currency\": \"<string>\"\n },\n \"fields\": [\n {\n \"field\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ],\n \"owner\": {\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"has\": true\n },\n \"activity\": {\n \"within\": \"7d\",\n \"notWithin\": \"7d\",\n \"activatedSince\": \"2023-11-07T05:31:56Z\"\n },\n \"renewal\": {\n \"after\": \"2023-12-25\",\n \"before\": \"2023-12-25\"\n },\n \"search\": \"<string>\",\n \"partOf\": \"<string>\"\n },\n \"fields\": [\n {\n \"key\": \"<string>\"\n }\n ],\n \"limit\": 25,\n \"cursor\": \"<string>\",\n \"orderBy\": \"last_activity_at\"\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://app.outlit.ai/api/tools/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool\": \"outlit_list_customers\",\n \"input\": {\n \"filters\": {\n \"billingStatus\": [],\n \"arr\": {\n \"above\": 4503599627370495,\n \"below\": 4503599627370495,\n \"currency\": \"<string>\"\n },\n \"fields\": [\n {\n \"field\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ],\n \"owner\": {\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"has\": true\n },\n \"activity\": {\n \"within\": \"7d\",\n \"notWithin\": \"7d\",\n \"activatedSince\": \"2023-11-07T05:31:56Z\"\n },\n \"renewal\": {\n \"after\": \"2023-12-25\",\n \"before\": \"2023-12-25\"\n },\n \"search\": \"<string>\",\n \"partOf\": \"<string>\"\n },\n \"fields\": [\n {\n \"key\": \"<string>\"\n }\n ],\n \"limit\": 25,\n \"cursor\": \"<string>\",\n \"orderBy\": \"last_activity_at\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.outlit.ai/api/tools/call")
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 \"tool\": \"outlit_list_customers\",\n \"input\": {\n \"filters\": {\n \"billingStatus\": [],\n \"arr\": {\n \"above\": 4503599627370495,\n \"below\": 4503599627370495,\n \"currency\": \"<string>\"\n },\n \"fields\": [\n {\n \"field\": {\n \"key\": \"<string>\"\n },\n \"value\": \"<string>\"\n }\n ],\n \"owner\": {\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"has\": true\n },\n \"activity\": {\n \"within\": \"7d\",\n \"notWithin\": \"7d\",\n \"activatedSince\": \"2023-11-07T05:31:56Z\"\n },\n \"renewal\": {\n \"after\": \"2023-12-25\",\n \"before\": \"2023-12-25\"\n },\n \"search\": \"<string>\",\n \"partOf\": \"<string>\"\n },\n \"fields\": [\n {\n \"key\": \"<string>\"\n }\n ],\n \"limit\": 25,\n \"cursor\": \"<string>\",\n \"orderBy\": \"last_activity_at\"\n }\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"billingStatus": "none",
"activatedAt": "2023-11-07T05:31:56Z",
"lastActivityAt": "2023-11-07T05:31:56Z",
"daysSinceActivity": 4503599627370495,
"contactCount": 4503599627370495,
"arr": {
"value": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"estimated": true,
"lifecycle": "active",
"parts": {
"subscriptions": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"usage": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"invoicedLast12Months": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
},
"usageWindow": {
"periods": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"amount": {
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
}
}
],
"count": 4503599627370495,
"partial": true
}
},
"basis": "subscriptions"
},
"owner": {
"id": "<string>",
"email": "<string>",
"name": "<string>"
},
"outlit": {
"firstSyncedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"status": "provisional",
"renewal": {
"date": "<string>",
"source": "outlit"
},
"credits": {
"runsOutAt": "2023-11-07T05:31:56Z",
"pool": {
"id": "<string>",
"name": "<string>"
},
"balance": {
"remaining": 123,
"granted": 123
}
},
"meter": {
"feature": "<string>",
"reported": 123,
"accounts": 4503599627370496,
"observed": "2023-11-07T05:31:56Z"
},
"fields": [
{
"field": {
"source": "hubspot",
"key": "<string>"
},
"label": "<string>",
"values": [
"<string>"
]
}
],
"crmSummary": [
{
"provider": "<string>",
"connectionId": "<string>",
"accountId": "<string>",
"name": "<string>",
"fields": [
{
"field": {
"source": "hubspot",
"key": "<string>"
},
"label": "<string>",
"values": [
"<string>"
]
}
]
}
]
}
],
"page": {
"hasMore": true,
"nextCursor": "<string>",
"total": 4503599627370495
},
"totals": {
"arr": [
{
"amount": 0,
"currency": "<string>",
"decimals": 2,
"formatted": "<string>"
}
]
},
"arrCurrencies": [
"<string>"
],
"coverage": {
"searched": "<string>",
"stale": 4503599627370495,
"withoutMeter": 4503599627370495,
"ambiguous": 4503599627370495
},
"truncation": {
"truncated": true,
"reason": "byte_cap",
"returned": 4503599627370495,
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"clipped": [
{
"path": "<string>",
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
}
}
]
}
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}{
"code": "INVALID_JSON",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"plan": "<string>",
"feature": "<string>",
"resetAt": 123,
"resetsAt": "<string>",
"limitBytes": 123,
"actualBytes": 123,
"validationIssues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"validValues": [
"<string>"
]
}
],
"next": {
"instruction": "<string>",
"tool": "<string>",
"input": {}
},
"missingPermission": "<string>",
"retryAfterSeconds": 30
}Authentication
Pass an Outlit API key in theAuthorization header as Bearer ok_....
Request body
{
"tool": "outlit_list_customers",
"input": {
"limit": 10,
"filters": { "billingStatus": ["paying"] }
}
}
tool is a public tool name. The table below lists the main tools; Integration tools
also documents two compatibility handoff tools. input is the tool-specific object, validated
against the shared @outlit/tools contract before the tool runs.
Supported tools
Customers and people
| Tool | Purpose |
|---|---|
outlit_list_customers | Browse and filter customers by billing status, activity recency, ARR, owner, customer fields (CRM, support tool or SDK traits), or name |
outlit_list_customer_fields | List the fields Outlit holds about customers (CRM and support tool account fields, SDK traits), with their values, to filter customers on |
outlit_list_people | Browse and filter the people at customers by journey stage, role, activity recency, customer, traits, email, or name, each with when they last took part in a conversation |
outlit_get_customer | Get one customer, with optional sections: users, revenue, billing, relationship (a bounded summary with source labels), features, meters, credits and more |
Identity
| Tool | Purpose |
|---|---|
outlit_get_identity | Read a customer’s bounded possible duplicate records and the evidence behind each; include: ["links"] adds its records in other systems |
outlit_list_merge_suggestions | Browse saved merge suggestions and history; include adds impact, scope, Jev evidence and the cluster |
outlit_reject_merge_suggestion | Reject one saved suggestion by id; needs an idempotencyKey |
outlit_merge_customers | Two-phase customer merge by exact IDs: mode: "preview" (default, read-only) returns the impact, a linked-records diff and a preview.token; mode: "execute" needs that token and an idempotencyKey |
outlit_get_merge | Track a merge by its operation.id |
Inbox
| Tool | Purpose |
|---|---|
outlit_list_tasks | List one section of your Inbox (today, open, snoozed, done or pool), as tasks in the To do page’s order, each with its task id, type, what it is part of and what it answers |
outlit_get_task | Retrieve one Inbox task by id; include adds source, draft (opt-in) and covered |
outlit_act_on_task | Act on your own Inbox task by id (done, won’t do, wrong, reopen, snooze, unsnooze, take, put back, not covered, recover cover), as you would on the To do page; needs an idempotencyKey; returns an undo |
outlit_undo_task_action | Undo an action with its undo.token (as undoToken); needs an idempotencyKey |
Access
| Tool | Purpose |
|---|---|
outlit_list_members | Browse internal workspace members such as CSMs, managers, account owners, and admins |
outlit_set_customer_owner | Assign an active workspace member as the customer’s primary owner; previews first, and returns an undo token |
outlit_set_customer_access | Set a member’s access to a customer to viewer, editor, or none; returns an undo token |
Timeline and sources
| Tool | Purpose |
|---|---|
outlit_get_timeline | Get chronological customer activity across product, billing, support, and conversation channels |
outlit_list_facts | Browse stored customer facts and evidence |
outlit_get_fact | Retrieve one exact customer fact |
outlit_get_source | Retrieve one exact source record behind a fact or search result |
outlit_list_sources | List concrete source records such as calls, emails, calendar events, support tickets, Slack conversations, or opportunities |
outlit_search_customer_context | Search customer context semantically |
Analytics
| Tool | Purpose |
|---|---|
outlit_query | Run SQL against customer intelligence views |
outlit_get_schema | Inspect the analytics views: columns with units and currencies, view rules, event types and worked queries |
Features
| Tool | Purpose |
|---|---|
outlit_list_features | Read configured Features, eligible sources, and on request exact historical usage and event candidates, each with its own coverage |
outlit_create_feature | Create or idempotently return one Feature observed by one event rule |
outlit_archive_feature | Preview, then archive a Feature using its opaque id and current revision when another active feature remains |
Toolsets
Tools belong to a toolset:core (customers, people, facts, sources, search, SQL), work (your tasks, the Inbox, and acting on them, with undo), identity (merges), admin (access, destinations, integrations, settings, Features) and meta (feedback and these three tools).
| Tool | Purpose |
|---|---|
outlit_list_toolsets | List the toolsets with their purpose and tools, whether this connection lists them, and the MCP URL that adds one (null outside MCP) |
outlit_load_toolset | Return a one-line summary of each tool in a toolset and the MCP URL that lists them; pass tools (at most 10 names) to get those tools’ full descriptions and input JSON Schemas |
outlit_get_skill | Return the Outlit skill: the full guide to the tools, with when to use each, the order to call them in, and worked chains. About 20 KB (5,000 tokens) and the same text every call, so read it once |
Configuration
| Tool | Purpose |
|---|---|
outlit_list_destinations | List destinations with masked configuration, or read some by ids |
outlit_create_destination | Create a delivery destination |
outlit_update_destination | Update a destination, including enabling or disabling it |
outlit_archive_destination | Preview, then archive a destination |
outlit_list_integrations | List every provider with its readiness, how it signs in, and its connection |
outlit_setup_integration | Complete a supported credential, mapping, or browser handoff step |
outlit_get_setup_session | Check the status of a browser sign-in started by setup |
outlit_get_settings | Read the workspace timezone, default customer owner, and activation event |
outlit_update_settings | Update the timezone, default customer owner, or activation event |
outlit_preview_activation | Preview an event against past activity without changing activation |
Feedback
| Tool | Purpose |
|---|---|
outlit_submit_feedback | Submit product feedback — bugs, ideas, or agent friction — to the Outlit team |
outlit_submit_feedback accepts body (required, trimmed, non-empty, at most 20,000
characters), optional area (trimmed, non-empty, at most 100 characters), and optional
context (a JSON object of at most 16 KiB serialized, for diagnostics such as the surface
or client version — never secrets or unnecessary customer data). It returns the recorded
feedback id and createdAt timestamp.
Submissions require authentication and are rate limited under a dedicated quota; they do not
consume paid plan API-call quota. Feedback is product intake, not a support ticket, and does
not guarantee a reply.
For schema-driven clients, @outlit/tools publishes tool input schemas as publicToolContracts.
TypeScript client
Use@outlit/tools when you want the same tool names and input contracts that power the CLI, Pi package, and public tool gateway:
npm install @outlit/tools
import { createOutlitClient, publicToolContracts } from "@outlit/tools"
const outlit = createOutlitClient({
apiKey: process.env.OUTLIT_API_KEY!,
})
const result = await outlit.callTool(
publicToolContracts.outlit_search_customer_context.toolName,
{
query: "What pricing concerns came up recently?",
customer: "acme.com",
limit: 5,
filters: { sourceTypes: ["call", "email", "support_ticket", "opportunity"] },
},
)
publicToolContracts, publicToolNames, server-defined consumerToolPolicies, defaultToolNames, analyticalToolNames, piToolNames, cliToolNames, allPublicToolNames, publicOpenApiTransports, toolGatewayTransport, apiKeyValidationTransport, toolGatewayErrorCodes, toolGatewayErrorSchema, ingestTransport, and enum lists such as sourceTypes. The context tools take and return lowercase values (email, calendar_event, churn_risk). opportunity is the source type for CRM opportunities; CRM and CRM_OPPORTUNITY are older input spellings. invoice is the Stripe invoice source type; outlit_get_source and outlit_list_sources also accept STRIPE_INVOICE as an older spelling, but search and outlit_list_facts do not.
Reading a list
A list tool returns its rows under a key named for what they are, not alwaysitems, beside page and, when the gateway cut the list to fit the size cap, truncation.
| Tool | Rows key |
|---|---|
outlit_list_customers, outlit_list_customer_fields, outlit_list_people, outlit_list_members, outlit_list_sources, outlit_list_destinations, outlit_list_integrations, outlit_list_features, outlit_list_tasks, outlit_list_merge_suggestions | items |
outlit_list_facts | facts |
outlit_get_timeline | events |
outlit_search_customer_context | results (no page) |
outlit_query | rows (with columns) |
@outlit/tools reads them one way: collectionOf(toolName, output) returns { key, items, page?, truncation? }, or undefined for a tool that returns no list. items is empty when the output holds no rows, so check truncation and page.hasMore before reading it as “nothing there”. isCollectionTool(name) and the collectionKeys table are exported too, and a test checks the table against the generated output schemas.
import { collectionOf } from "@outlit/tools"
const output = await outlit.callTool("outlit_list_facts", { customer: "acme.com" })
const list = collectionOf("outlit_list_facts", output)
for (const fact of list?.items ?? []) console.log(fact)
if (list?.page?.hasMore) console.log("next cursor:", list.page.nextCursor)
if (list?.truncation) console.log(list.truncation.next?.instruction)
Examples
List paying customers
curl -X POST https://app.outlit.ai/api/tools/call \
-H "Authorization: Bearer ok_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"tool": "outlit_list_customers",
"input": {
"filters": { "billingStatus": ["paying"] },
"limit": 10
}
}'
Get customer details
{
"tool": "outlit_get_customer",
"input": {
"customer": "acme.com",
"include": ["users", "revenue", "recentTimeline"],
"timeframe": "30d"
}
}
Read a Stripe invoice
Useinvoice (outlit_get_source and outlit_list_sources also accept STRIPE_INVOICE as an older spelling) with the Stripe invoice ID. The record lists every stored line item: amounts, quantity, price, product, service period, whether it recurs or is one-off, and proration. Every amount is a Money value ({ amount, currency, decimals, formatted }).
{
"tool": "outlit_get_source",
"input": {
"source": { "type": "invoice", "id": "in_1PqExample" }
}
}
Read a customer’s renewal date
{
"tool": "outlit_get_customer",
"input": {
"customer": "acme.com",
"include": ["renewal"]
}
}
"renewal": { "status": "available", "asOf": "...", "data": { "date": "2026-03-01", "source": "billing" } }, the date the customer page shows. source is outlit (set in Outlit), crm (a CRM opportunity), or billing (the billing period of a yearly subscription). The section has status empty when the customer has none.
Read a customer’s CRM account fields
{
"tool": "outlit_get_customer",
"input": {
"customer": "acme.com",
"include": ["crm"]
}
}
crm.data: one entry per CRM or support tool account linked to the customer, with provider, connectionId, accountId, name, the owner as that system records it, recordUpdatedAt, and fields: every non-empty field as stored, each with its key, label, value and whether it is custom. contacts lists the people that system associates with the account, whatever their email domain, most recently modified first: up to 25, each with contactId, name, email, title and userId, the customer’s user with that contact or email (null when the person is not one of its users). More are counted in omittedContactCount, and contactsNext is the call that reads the next 25: crmContacts: { connectionId, accountId, cursor? }. Fields past the response’s size limit are counted in omittedFieldCount and named in omittedFields while they fit; ask for them with fields (selectors { "key": "hs_lead_status" }, optionally with a source; selectors that match nothing come back in unmatchedFields). The section is enabled per workspace, and is absent until it is.
Filter and list customers by customer fields
{
"tool": "outlit_list_customers",
"input": {
"filters": {
"fields": [{ "field": { "source": "hubspot", "key": "lifecyclestage" }, "op": "eq", "value": "customer" }]
},
"fields": [{ "source": "hubspot", "key": "industry" }]
}
}
filters.fields filters by customer fields: up to 10 filters, all of which must hold. A field’s source is hubspot, salesforce, attio, pylon (the fields of the customers’ CRM and support tool accounts, any linked account counting) or traits (traits sent with the Outlit SDK). eq and in compare text ignoring case; gte and lte compare numbers or ISO dates. fields (up to 5) adds fields to each customer: each field with its label and its values. Find a field’s source and key, its picklist options and the values customers hold with outlit_list_customer_fields. Filters matching more than 5,000 customers are refused; add a narrower one.
outlit_list_customers filters are grouped under filters: billingStatus (an array of lowercase statuses), arr (above, below, currency; minor units), fields, owner (id, email, has), activity (within, notWithin, activatedSince), renewal (within one of next_30d to next_365d, or after and before as YYYY-MM-DD UTC dates; customers with no stored renewal date never match) and search. orderBy renewal_date sorts by the stored renewal date (ascending by default, customers with none last), and each customer carries renewal: { date, source } | null. The earlier top-level spellings (billingStatus, arrAbove, arrBelow, arrCurrency, mrrAbove, mrrBelow, traitFilters, crm, crmFields, search, ownerId, ownerEmail, hasOwner, hasActivityInLast, noActivityInLast, activatedSince), uppercase billing statuses and the orderBy values arr_cents, mrr_cents and first_seen_at are mapped to the new ones until 2026-12-11, and refused with the new name after that. outlit_list_crm_fields is now outlit_list_customer_fields, with provider renamed source.
Read a contact’s or deal’s CRM fields
outlit_list_people with "include": ["crm"] (or outlit_get_customer with "include": ["users", "crm"]) adds crm to each user: the CRM contacts linked to them, with fields in the same shape as account fields. outlit_get_source on an opportunity adds the deal’s fields. The same size limit applies: fields left out are counted in omittedFieldCount, and contacts left out are counted in omittedCrmContacts. A user has no crm when the section is not enabled for the workspace or when the size limit left no room for them; ask for fewer users or fields to get it.
Search customer context
{
"tool": "outlit_search_customer_context",
"input": {
"customer": "acme.com",
"query": "What renewal concerns came up recently?",
"filters": {
"sourceTypes": ["email", "call", "support_ticket", "opportunity"],
"after": "2026-01-01T00:00:00Z"
},
"limit": 5
}
}
customer to search across all customers. The top-level customer is the
customer you scoped to, or null for a search across customers. Each source and
fact result also carries a customer (id, name, domain) naming the customer
it belongs to. A result’s customer is null when it can’t be attributed to exactly
one customer you can read. When nothing matches, results is empty and
coverage.searched says what was searched.
customer takes an ID, a domain or a name, the same on every context tool. The
earlier top-level topK, sourceTypes, after and before (and sourceType on
outlit_list_sources, startDate/endDate/timeframe/channels/eventTypes on
outlit_get_timeline, status/factTypes/factCategories on outlit_list_facts, and
sourceType/sourceId on outlit_get_source), uppercase values, and the source aliases
CRM, CRM_OPPORTUNITY and STRIPE_INVOICE are mapped to the new ones until 2026-12-11,
and refused with the new name after that.
{
"tool": "outlit_search_customer_context",
"input": {
"query": "Who raised security concerns?",
"limit": 5
}
}
{
"customer": null,
"results": [
{
"kind": "source",
"score": 0.91,
"source": { "type": "email", "id": "email_123" },
"customer": { "id": "cust_123", "name": "Acme", "domain": "acme.com" },
"occurredAt": "2026-08-12T14:05:00Z",
"title": "Security review before renewal",
"permalink": null,
"matchCount": 1,
"matches": [{ "text": "Can you send your SOC 2 Type II report before we renew?" }]
},
{
"kind": "source",
"score": 0.87,
"source": { "type": "call", "id": "call_456" },
"customer": { "id": "cust_789", "name": "Globex", "domain": "globex.com" },
"occurredAt": "2026-08-20T16:00:00Z",
"title": "Q3 business review",
"permalink": null,
"matchCount": 2,
"matches": [{ "text": "Their CISO asked about data residency and SSO enforcement." }]
}
]
}
List active contact transition facts
{
"tool": "outlit_list_facts",
"input": {
"customer": "acme.com",
"filters": {
"status": ["active"],
"sourceTypes": ["call", "opportunity"],
"types": ["contact_departure", "contact_position_change", "contact_disengagement"],
"after": "2026-01-01T00:00:00Z"
},
"limit": 20
}
}
Read a fact’s reasoning, quote and evidence
A fact fromoutlit_list_facts or outlit_search_customer_context is concise: it has no reasoning or source.quote unless the call asks with "include": ["reasoning", "quote", "evidence"]. With evidence a fact carries its first three cited excerpts as evidence: { items, page, more }. outlit_get_fact { "id": "fact_123" } returns the whole fact; "part": { "field": "reasoning" } (assertion, reasoning, quote or evidence) reads one long field a page at a time, and part.cursor continues it with the previous page’s nextCursor.
Open one source record
{
"tool": "outlit_get_source",
"input": {
"source": { "type": "opportunity", "id": "opp_123" }
}
}
Read exact source content
Exact lookup can includecontent, a section with bounded content segments. Only
content.status: "available" has data. The default page size is 10 segments, with a
maximum of 100. Pass the returned content.data.page.nextCursor with the same source
when content.data.page.hasMore is true; until then the content is partial.
content.data.omittedFields names record fields left out.
{
"tool": "outlit_get_source",
"input": {
"source": { "type": "call", "id": "call_123" },
"limit": 10
}
}
{
"source": { "type": "call", "id": "call_123" },
"occurredAt": "2026-09-01T12:00:00Z",
"title": "Renewal discussion",
"summary": "The customer asked for a renewal proposal.",
"permalink": null,
"provider": "gong",
"customer": { "id": "cust_123", "name": "Acme", "domain": "acme.com" },
"participants": [],
"record": { "kind": "call" },
"content": {
"status": "available",
"asOf": "2026-09-01T12:05:00Z",
"data": {
"kind": "call_transcript",
"segments": [{ "id": "segment_1", "text": "Please send the renewal proposal." }],
"page": { "hasMore": false, "nextCursor": null, "total": 1 },
"omittedFields": []
}
}
}
Follow person profile evidence
When a fact or search result references aperson_profile source, pass its source
for exact lookup. Replace the example ID with the ID from that reference.
{
"tool": "outlit_get_source",
"input": {
"source": { "type": "person_profile", "id": "snapshot_123" }
}
}
Read customer features
{
"tool": "outlit_get_customer",
"input": {
"customer": "acme.com",
"include": ["features", "meters"],
"features": { "weeks": 12 }
}
}
include also takes relationship (a summary and at most eight current statements), meters (Autumn metered quantities that are not credits) and credits (Autumn credit pools). features, meters and credits come in pages of 25 by default, at most 100: pass features, meters or credits with limit and cursor to page one of them.
Feature usage is factual historical evidence. A feature can report complete or partial counts,
no matches in the requested window, or unavailable source evidence. Unavailable evidence is not
converted to zero. Archive is the available self-service lifecycle action.
Creating a Feature also creates the supporting weekly event-count and active-days metrics inside
Outlit; those metrics are not separate public resources.
Admin tools
The admin tools change a workspace, so they share a few rules.- Retries. Writes that can be sent twice take an
idempotencyKey, any unique string (outlit_create_destination,outlit_archive_destination,outlit_set_customer_owner,outlit_set_customer_access,outlit_setup_integration,outlit_create_feature,outlit_archive_feature). A retry with the sameidempotencyKeyand input returns the first result; a changed input with the same key is refused. - Previews.
outlit_archive_destination,outlit_archive_featureandoutlit_set_customer_ownerchange nothing on the first call. They returnpreview.token, what the change would affect, andnext, the exact call to confirm. Confirm with the same target,"mode": "execute"and"previewToken". A token lasts 15 minutes; a token that no longer matches the current state is refused withpreview_staleand a fresh preview. - Undo.
outlit_set_customer_ownerandoutlit_set_customer_accessreturnundo: { token, until }(24 hours), ornullwhen the change cannot be undone. Call the same tool with{ "undoToken", "idempotencyKey" }to put the earlier state back. When the caller could not undo a change, such as removing their own access, the first call returnsoutcome: "needs_confirmation"with the reason, a preview andnext. - Set state.
outlit_update_destinationandoutlit_update_settingstake the end state; only the fields you send are written.revisionis optional: when it is stale the call is refused withstale_revision, unless every field you asked for already holds its value. - Shapes. Lists return their rows (
items; other tools use another key) andpage { hasMore, nextCursor, total }(25 per page by default, at most 100), andcoveragewhen empty. People are{ id, name, email }; customers{ id, name, domain }. Enums are lowercase. A missing permission isTOOL_CALL_FORBIDDENwithmissingPermission.
{
"tool": "outlit_set_customer_access",
"input": {
"customer": "acme.com",
"member": "alex@example.com",
"role": "viewer",
"idempotencyKey": "6d1c8a6e-5c0b-4c0e-9d6a-2f5f6a2c9d11"
}
}
Moving from the earlier admin tools
| Earlier | Now |
|---|---|
outlit_get_destination {id}, outlit_list_destinations → {destinations} | outlit_list_destinations {ids: [id]} → {items, missing}; maskedConfig is config, syncStatus and lastSyncedAt are delivery; each has a revision |
outlit_enable_destination, outlit_disable_destination | outlit_update_destination {id, enabled} |
outlit_update_destination {id, type, label?, isDefault?} | {id, revision?, label?, isDefault?, enabled?}; type is dropped |
outlit_create_destination {type: "SLACK_CHANNEL", ...} → {destination} | {type: "slack_channel", ..., idempotencyKey} → {created, destination} |
outlit_archive_destination {id} archives at once | {id, idempotencyKey} previews; {..., mode: "execute", previewToken} archives |
outlit_assign_customer_owner {customerId, targetUserId} | outlit_set_customer_owner {customer, member, idempotencyKey} |
outlit_grant_customer_access, outlit_update_customer_access {customerId, targetUserId, role: "VIEWER" | "EDITOR"} | outlit_set_customer_access {customer, member, role: "viewer" | "editor", idempotencyKey} |
outlit_revoke_customer_access | outlit_set_customer_access {..., role: "none"} |
outlit_list_workspace_users {search, role, ..., orderBy: "owned_customer_count"}, up to 1000 per page | outlit_list_members {filters: {search, role, managerEmail, hasOwnedCustomers}, orderBy: "owned_customers" | "name"}, up to 100 per page; ownedCustomerCount is ownedCustomers |
outlit_get_integration_capabilities, outlit_get_integration_status, the earlier outlit_list_integrations {connectedOnly} | outlit_list_integrations {provider?, filters: {connected?}} → items[] with status, setup {auth, mode}, connection |
outlit_begin_integration_setup {provider} | outlit_setup_integration {provider, handoff: true, idempotencyKey} → step: {kind: "browser_handoff", url, sessionId, expiresAt} |
outlit_setup_integration → next, error {code: "OWNER_REQUIRED"}; outlitStage: "Won" | step, problem {code: "owner_required", ...}; next is a next call; outlitStage: "won" |
outlit_get_integration_setup_status {sessionId} | outlit_get_setup_session {id} → {sessionId, provider, status, pollAfterSeconds?, next?} |
outlit_get_workspace_settings, outlit_get_customer_activation | outlit_get_settings → {settings: {general, activation}, revision} |
outlit_update_workspace_settings {defaultTimezone, customerOwnership}, outlit_update_customer_activation {eventName} | outlit_update_settings {revision?, timezone?, defaultOwner?, activationEvent?} → {settings, revision, changed} |
outlit_preview_customer_activation {eventName} → {preview: {...Count}} | outlit_preview_activation {event} → {customers, contacts, examples} |
outlit_list_features {sourceKey, weeks, candidateLimit: 100}, always with evidence and candidates | {filters: {sourceKey, eventSearch}, include: ["usage", "candidates"], weeks, candidateLimit: 25, limit, cursor}; features is items, evidence is usage, selectedSourceKey is sources[].selected, workspaceActiveFeatureCount is workspaceActiveFeatures, candidates are a section |
outlit_create_feature, outlit_archive_feature {id, revision} | idempotencyKey added; archive previews first |
Submit product feedback
{
"tool": "outlit_submit_feedback",
"input": {
"body": "The merge preview did not list the losing record's traits.",
"area": "customers",
"context": { "surface": "cli", "command": "customers merge" }
}
}
{ "id": "10000000-0000-4000-8000-000000000004", "createdAt": "2026-09-28T12:00:00.000Z" }. See
Feedback for input limits. Feedback is product intake, not a support ticket.
Response
The response is the selected tool’s JSON result. List tools return paginated collections; exact lookup tools return the matched record or an error when the record cannot be found. Search returns grouped artifact-levelsource and fact results, not raw vector chunks. Every source is a source of { type, id } that outlit_get_source opens as it is; a fact’s source also carries occurredAt, quote and permalink when available.
Money is always { "amount", "currency", "decimals", "formatted" }: amount is an integer in the billing provider’s minor units for the currency, decimals is how many digits follow the decimal point (so amount / 10^decimals is the major-unit value), and formatted is ready to display (for example 1234500 is “$12,345.00" in USD). Other currencies follow the provider's amount rules (see [Stripe's currency docs](https://docs.stripe.com/currencies)). Customer `arr` is the annualized revenue run rate, the same figure the Outlit app shows: `arr.value` is the money, and `estimated` is `true` when the amount includes a usage or per-seat estimate. `arr.value.amount` is `0` for a churned, paused, or trialing customer, and `arr` is `null` when the app shows none. `outlit_get_customer` returns `revenue.data.arr` with the customer's `lifecycle` and the `parts` it is counted from. The example below is for a customer billed in USD, so `"amount": 300000` is $3,000.00 ARR.
The legacy monthly currentMrr and mrrCalculationStatus fields are removed from customer results. Customer lists and reads use lowercase billing statuses (none, trialing, paying, past_due, churned), page for pagination, and outlit.firstSyncedAt for when Outlit first synced the customer (formerly firstSeenAt). Each section outlit_get_customer includes is { "status": "available", "asOf", "data" }, or a status of empty, not_connected, not_synced or unavailable with a reason.
Example list response:
{
"items": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Acme",
"domain": "acme.com",
"billingStatus": "paying",
"activatedAt": "2026-01-15T09:30:00.000Z",
"outlit": { "firstSyncedAt": "2025-12-02T17:05:00.000Z" },
"lastActivityAt": "2026-04-10T18:22:11.000Z",
"contactCount": 42,
"arr": {
"value": { "amount": 300000, "currency": "USD", "decimals": 2, "formatted": "$3,000.00" },
"estimated": false,
"lifecycle": "active"
},
"owner": null,
"daysSinceActivity": 3
}
],
"page": {
"hasMore": true,
"nextCursor": "cursor_abc",
"total": 128
},
"totals": {
"arr": [{ "amount": 38400000, "currency": "USD", "decimals": 2, "formatted": "$384,000.00" }]
}
}
Call allowance and limits
- Plan allowance. Every tool call spends one API call from the workspace’s plan allowance, and a repeated write that replays a stored result still counts. A call the gateway ends without a result, such as a resource that is not found, is given back. When the allowance is spent the call is refused (
429 plan_api_limit_exceededon the free plan,402 plan_billing_action_requiredon a paid plan) withresetsAt, the time it renews. The refusal is not retryable before then.outlit_submit_feedbackhas its own quota and spends none of the allowance. - Response size. A result is at most 64 KiB. A list returns the rows that fit, with
truncationsaying how many it kept andnextthe call for the rest; any other tool returns413 TOOL_RESULT_TOO_LARGEwith anextsaying how to ask for less. - Paging. Lists return 25 rows by default and at most 100 per page, except
outlit_get_source, whose content comes in segments of 10 by default, andoutlit_query(default 100 rows, at most 1,000 per page). - SQL.
outlit_queryruns at most 3 queries at once per workspace; a fourth waits up to 10 seconds for a slot, then fails and can be retried. A query is stopped after about 30 seconds. - Idempotency. A write’s result is kept for 24 hours under its idempotency key. A retry with the same key and input in that time returns the first result; the same key with different input is refused with
IDEMPOTENCY_CONFLICT.
Error responses
Invalid JSON, unknown tool names, or invalid tool inputs return400:
{
"code": "INVALID_TOOL_INPUT",
"message": "Invalid tool input",
"retryable": false,
"requestId": "req_123"
}
401. A workspace that has spent its plan allowance gets 429 with the code plan_api_limit_exceeded (free plan) or 402 with plan_billing_action_required (paid plan); see Call allowance and limits. Both are retryable: false and carry resetsAt, an ISO 8601 time, and the earlier resetAt (milliseconds since the epoch; prefer resetsAt).
Codes: INVALID_JSON, INVALID_TOOL_CALL, INVALID_TOOL_INPUT (400), INVALID_CREDENTIALS (401), TOOL_CALL_FORBIDDEN (403), TOOL_RESOURCE_NOT_FOUND (404), CONFLICT (409, a write that conflicts with the current state, such as a stale revision), IDEMPOTENCY_CONFLICT (409), TOOL_RESULT_TOO_LARGE (413), RATE_LIMITED (429, a tool’s own rate limit: wait retryAfterSeconds), INTERNAL_ERROR (500) and TOOL_GATEWAY_ERROR (503, retryable). TOOL_IMPLEMENTATION_ERROR is what earlier releases sent for a conflict, a rate limit or a crash; it remains the code for other tool failures (an unreadable page, an outage), and clients should keep accepting it. Readers should ignore a code they do not know.
A validation issue in validationIssues carries path, code and a message saying what to fix, written from the schema’s own bounds and never from the received value; an enum or literal mismatch also lists validValues. A 429 carries retryAfterSeconds (and a Retry-After header): the whole seconds to wait. A key whose every grant is a read grant is refused for a write with TOOL_CALL_FORBIDDEN, “This key can only read” and the missingPermission the tool needs; previews of a write and outlit_submit_feedback still run. Reading destinations, behavior metrics and integrations takes the grants destinations:read, behavior_metrics:read and integrations:read.
An idempotency key that was already used with different input returns 409 with the code IDEMPOTENCY_CONFLICT; send a new idempotency key, or repeat the original input. A result larger than 64 KiB is never returned whole: a list returns the items that fit with a truncation field whose next names the call for the rest, and anything else returns 413 with the code TOOL_RESULT_TOO_LARGE and a next saying how to ask for less.
Response headers
Beside the result, the gateway can send these headers.@outlit/tools reports them through the client’s onResponse option, the CLI prints deprecations and notices to stderr, and Pi adds them as a second text block after the result.
| Header | Meaning |
|---|---|
outlit-deprecation | The call used a retired tool name. JSON { "tool", "use", "until", "message" }: the name you called, the tool to call instead, and the last day the old name works. Deprecation and Sunset carry the same information as standard headers |
outlit-notice | A JSON array of sentences about an old input spelling the gateway changed, such as a limit lowered to the maximum or a 12-hour window rounded up to one day |
idempotent-replayed | true when the result was stored from an earlier call with the same idempotency key |
outlit-request-id | The id of this request, on every response, results and errors alike. Quote it in a bug report or to support. The error body carries the same value as requestId |
outlit-version | The dated output version this answer follows, for example 2026-11-12 (see Compatibility) |
Outlit-Version: <date> to say which output version it expects. Only the current version is accepted; any other value is refused before the call runs with INVALID_TOOL_INPUT, naming the value sent and the accepted one. Leave the header out to take the current version. MCP results carry the same values in _meta: "outlit/requestId" and "outlit/version", and an error result carries its envelope in _meta["outlit/error"] with no structuredContent.
@outlit/tools returns them as meta.requestId and meta.version from client.callToolWithMeta(), as error.requestId and error.version on OutlitToolsApiError, and in onResponse. createOutlitClient({ version }) sends Outlit-Version. The CLI prints them to stderr with --verbose (a JSON line in JSON mode), and Pi puts them in the result’s details.
Every call from @outlit/tools, @outlit/cli and @outlit/pi sends x-outlit-client: <package>/<version>, for example @outlit/cli/5.0.0. The gateway uses it to add a deprecation notice to the response of a client below the minimum version for a release; see Compatibility. Send it from your own client too, naming your own package and version.
Retired tool names answer until the date in their outlit-deprecation header, then return INVALID_TOOL_INPUT with the issue code renamed_tool and the new name in next.tool.Body
application/json
- List customers
- List customer fields
- Get customer
- List people
- List members
- Set customer owner
- Set customer access
- Get timeline
- List facts
- Get fact
- Get source
- List sources
- Search customer context
- Query analytics
- Inspect analytics schema
- List destinations
- Create destination
- Update destination
- Archive destination
- Submit feedback
- List toolsets
- Load toolset
- Get skill
- List integrations
- Set up integration
- Get setup session
- Preview activation
- Get settings
- Update settings
- List features
- Create feature
- Archive feature
- List tasks
- Get task
- Act on task
- Undo task action
- Get identity
- List merge suggestions
- Reject merge suggestion
- Merge customers
- Get merge
Response
Capability output
- List customers
- List customer fields
- Get customer
- List people
- List members
- Set customer owner
- Set customer owner
- Set customer owner
- Set customer access
- Set customer access
- Get timeline
- List facts
- Get fact
- Get source
- List sources
- Search customer context
- Query analytics
- Inspect analytics schema
- Inspect analytics schema
- Inspect analytics schema
- Inspect analytics schema
- List destinations
- Create destination
- Update destination
- Archive destination
- Archive destination
- Submit feedback
- List toolsets
- Load toolset
- Get skill
- List integrations
- Set up integration
- Get setup session
- Preview activation
- Get settings
- Update settings
- List features
- Create feature
- Archive feature
- Archive feature
- List tasks
- Get task
- Act on task
- Undo task action
- Get identity
- List merge suggestions
- Reject merge suggestion
- Merge customers
- Merge customers
- Get merge
Was this page helpful?
