ai
GET
https://lucidace.com /v1/internal/ai/orgs/{org_id}/config Parameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/internal/ai/orgs/{org_id}/config"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"api_key": "string",
"blocked": true,
"enabled": true,
"model": "string",
"month_spend_usd": 0,
"monthly_cap_usd": 0,
"provider": "string"
}Schema
api_keystringThe org's own key, opened; null = use the platform's.
blockedbooleanrequiredTrue when the switch is off or the month's spend reached the cap: make no model call.
enabledbooleanrequiredmodelstringmonth_spend_usdnumberrequiredmonthly_cap_usdnumberproviderstring401
404
POST
https://lucidace.com /v1/internal/ai/orgs/{org_id}/spend Parameters
org_idstringpathrequiredRequest body
application/json
featurestringThe AI feature that made the call (
ask, scout, research, ...); default other.usdnumberrequiredCost of the model calls just made, in USD.
{
"feature": "string",
"usd": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/internal/ai/orgs/{org_id}/spend" \
-H "Content-Type: application/json" \
-d '{"feature":"string","usd":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"blocked": true,
"month_spend_usd": 0,
"monthly_cap_usd": 0
}Schema
blockedbooleanrequiredmonth_spend_usdnumberrequiredmonthly_cap_usdnumber400
401
404
GET
https://lucidace.com /v1/internal/ai/projects/{project_id}/config Parameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/internal/ai/projects/{project_id}/config"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"blocked": true,
"project_enabled": true
}Schema
blockedbooleanrequiredTrue when the project switch or the org's controls say: make no model call.
project_enabledbooleanrequiredThe project's own switch (
ai_enabled; off under the hipaa profile).401
404
GET
https://lucidace.com /v1/orgs/{org_id}/ai/settings Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/ai/settings"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"alerts_sent": [
0
],
"enabled": true,
"features": [
{
"calls": 0,
"feature": "string",
"usd": 0
}
],
"has_api_key": true,
"model": "string",
"month_spend_usd": 0,
"monthly_cap_usd": 0,
"provider": "string"
}Schema
alerts_sentinteger[]requiredCap thresholds (50, 80, 100 percent) already mailed to org admins this month.
enabledbooleanrequiredfeaturesFeatureSpendView[]requiredThis month's spend by AI feature (ask, scout, research, ...), largest first.
Show child parameters
callsintegerrequiredfeaturestringrequiredusdnumberrequiredhas_api_keybooleanrequiredmodelstringmonth_spend_usdnumberrequiredmonthly_cap_usdnumberproviderstring403
404
PUT
https://lucidace.com /v1/orgs/{org_id}/ai/settings Scope adminParameters
org_idstringpathrequiredRequest body
application/json
api_keystringWrite-only;
null removes the stored key.enabledbooleanmodelstringmonthly_cap_usdnumberMonthly spend cap in USD;
null removes it.providerstringnull clears (back to the platform's provider).{
"api_key": "string",
"enabled": true,
"model": "string",
"monthly_cap_usd": 0,
"provider": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/orgs/{org_id}/ai/settings" \
-H "Content-Type: application/json" \
-d '{"api_key":"string","enabled":true,"model":"string","monthly_cap_usd":0,"provider":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/ai/share-settings Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/ai/share-settings"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"full_results": true
}Schema
full_resultsbooleanShow every query result in shared AI conversations, even to members who could not run the query. Off: results the viewer cannot read are replaced by a "no access" placeholder.
404
PUT
https://lucidace.com /v1/projects/{project_id}/ai/share-settings Scope adminParameters
project_idstringpathrequiredRequest body
application/json
full_resultsbooleanShow every query result in shared AI conversations, even to members who could not run the query. Off: results the viewer cannot read are replaced by a "no access" placeholder.
{
"full_results": true
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/ai/share-settings" \
-H "Content-Type: application/json" \
-d '{"full_results":true}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/digest/recommendations Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/digest/recommendations"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"detail": "string",
"kind": "string",
"source": "string",
"title": "string"
}
]
}Schema
dataRec[]requiredkind is unused_flag | stale_experiment | broken_funnel.Show child parameters
detailstringrequiredkindstringrequiredunused_flag | stale_experiment | experiment_concluded | broken_funnel | anomalysourcestringrequiredrule (deterministic checks) or ai (anomaly cards from the AI service).titlestringrequired404
Updated