List insight documents

GET
/api/v1/orgs/{orgId}/insights/documents

Lists live insight documents in the organization.

Requires the api_insights_list scope.

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token using a Clai API key secret (clai_live_*).

In: header

Path Parameters

NameTypeDescription
orgId
required
string

Organization ID the key is operating in

Query Parameters

NameTypeDescription
typesarray<string> | null
Default[]
contractStatusesarray<string> | null
Default[]
statusesarray<string> | null
Default[]
searchstring
folderIdstring
Formatuuid
includeSubfoldersstring
Allowed"true""false"Default"false"
orderBystring
Allowed"createdAt""name"Default"createdAt"
ascendingstring
Allowed"true""false"Default"false"
limitinteger
Default50Range1 <= value <= 100
cursorstring

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": {}
  }
}