List insight documents
Lists live insight documents in the organization.
Requires the api_insights_list scope.
Authorization
bearerAuth 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 |
Query Parameters
| Name | Type | Description |
|---|---|---|
types | array<string> | null | Default [] |
contractStatuses | array<string> | null | Default [] |
statuses | array<string> | null | Default [] |
search | string | |
folderId | string | Format uuid |
includeSubfolders | string | Allowed "true""false"Default"false" |
orderBy | string | Allowed "createdAt""name"Default"createdAt" |
ascending | string | Allowed "true""false"Default"false" |
limit | integer | Default 50Range1 <= value <= 100 |
cursor | string |
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/documents"{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"folderId": "5b6379a4-2a6c-4085-b184-45838a3b8e7e",
"sizeBytes": 0,
"createdAt": "2019-08-24T14:15:22Z",
"status": "pending",
"stage": "string",
"failureKind": "transient",
"documentType": "Purchase",
"contractStatus": "draft",
"extracted": {
"parties": [
{
"role": "string",
"name": "string",
"entityType": "individual",
"contactInfo": {
"email": "string",
"phone": "string",
"address": "string"
},
"representedBy": "string"
}
],
"address": "string",
"keyDates": [
{
"type": "string",
"value": "string"
}
],
"amounts": [
{
"type": "string",
"value": "string",
"period": "string"
}
],
"keyTerms": [
"string"
]
}
}
],
"hasMore": true,
"nextCursor": "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": {}
}
}POSTVoid a submission
Voids one submission owned by the API key's bound user. Requires an `Idempotency-Key` header. A completed submission returns `409` with `SUBMISSION_NOT_VOIDABLE`. Voiding an already voided submission returns its current state. The body never includes signing links. Requires the `api_deals_send` scope.
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.