API ReferenceInsights
Get 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.
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 |
documentIdrequired | string | Format uuid |
Response Body
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/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"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"
]
},
"pollAfterMs": 1
}{
"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": {}
}
}