ai

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-ai"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/ceb53d5d-dcac-4f22-9737-b529622ea51e/social-card.svg?v=3e7ae33eec8b" alt="ai" width="600" height="315"></a>
GEThttps://lucidace.com/v1/internal/ai/orgs/{org_id}/config

Parameters

org_idstringpathrequired

Code 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_keystring
The org's own key, opened; null = use the platform's.
blockedbooleanrequired
True when the switch is off or the month's spend reached the cap: make no model call.
enabledbooleanrequired
modelstring
month_spend_usdnumberrequired
monthly_cap_usdnumber
providerstring
401
404
POSThttps://lucidace.com/v1/internal/ai/orgs/{org_id}/spend

Parameters

org_idstringpathrequired

Request body

application/json
featurestring
The AI feature that made the call (ask, scout, research, ...); default other.
usdnumberrequired
Cost 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
blockedbooleanrequired
month_spend_usdnumberrequired
monthly_cap_usdnumber
400
401
404
GEThttps://lucidace.com/v1/internal/ai/projects/{project_id}/config

Parameters

project_idstringpathrequired

Code 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
blockedbooleanrequired
True when the project switch or the org's controls say: make no model call.
project_enabledbooleanrequired
The project's own switch (ai_enabled; off under the hipaa profile).
401
404
GEThttps://lucidace.com/v1/orgs/{org_id}/ai/settingsScope admin

Parameters

org_idstringpathrequired

Code 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[]required
Cap thresholds (50, 80, 100 percent) already mailed to org admins this month.
enabledbooleanrequired
featuresFeatureSpendView[]required
This month's spend by AI feature (ask, scout, research, ...), largest first.
Show child parameters
callsintegerrequired
featurestringrequired
usdnumberrequired
has_api_keybooleanrequired
modelstring
month_spend_usdnumberrequired
monthly_cap_usdnumber
providerstring
403
404
PUThttps://lucidace.com/v1/orgs/{org_id}/ai/settingsScope admin

Parameters

org_idstringpathrequired

Request body

application/json
api_keystring
Write-only; null removes the stored key.
enabledboolean
modelstring
monthly_cap_usdnumber
Monthly spend cap in USD; null removes it.
providerstring
null 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

Responses

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/ai/share-settingsScope settings:read

Parameters

project_idstringpathrequired

Code 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_resultsboolean
Show 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
PUThttps://lucidace.com/v1/projects/{project_id}/ai/share-settingsScope admin

Parameters

project_idstringpathrequired

Request body

application/json
full_resultsboolean
Show 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

Responses

404
GEThttps://lucidace.com/v1/projects/{project_id}/digest/recommendationsScope insight:read

Parameters

project_idstringpathrequired

Code 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[]required
kind is unused_flag | stale_experiment | broken_funnel.
Show child parameters
detailstringrequired
kindstringrequired
unused_flag | stale_experiment | experiment_concluded | broken_funnel | anomaly
sourcestringrequired
rule (deterministic checks) or ai (anomaly cards from the AI service).
titlestringrequired
404
Updated