API ReferenceInsights
List insight folders
Lists insight folders as a flat tree with paths.
Requires the api_insights_list scope.
Authorization
bearerAuth AuthorizationBearer <token>
Bearer token using a Clai API key secret (clai_live_*).
In: header
Path Parameters
| Name | Type | Description |
|---|---|---|
orgIdrequired | string | Organization ID the key is operating in |
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.goclai.com/api/v1/orgs/org_2abc123/insights/folders"[
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",
"path": "string"
}
]{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}GETGet an insight document
Returns one insight document with processing status. Includes pollAfterMs while status is not processed or failed. Requires the `api_insights_list` scope.
POSTCreate an insight folder
Creates a folder in the Insights workspace. Returns 201 for a new folder and 200 when a folder with the same name already exists under the parent. Requires the `api_insights_create` scope.