List package document uploads
Lists a package's document uploads, newest first. Each item includes the poll status fields plus fileName.
Requires the api_deals_create 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 |
|---|---|---|
dealIdrequired | string | Deal that owns the package. Format uuid |
packageIdrequired | string | Package whose document uploads to list. 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/document-uploads?dealId=497f6eca-6276-4993-bfeb-53cbbbba6f08&packageId=497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"items": [
{
"documentId": "4704590c-004e-410d-adf7-acb7ca0a7052",
"flowId": "ccd52024-9c9c-4751-993a-9d75a778bf9d",
"collectionId": "string",
"status": "awaiting_upload",
"updatedAt": "2019-08-24T14:15:22Z",
"pollAfterMs": 2000,
"error": "invalid_pdf",
"errorMessage": "string",
"detection": {
"outcome": "detected",
"participantCount": 0,
"signatureFieldCount": 0
},
"canFindSignatures": true,
"fileName": "string"
}
],
"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": {}
}
}POSTFind where people sign on an uploaded document
Scans a ready upload for signers and signature fields. Runs only when upload status reports `canFindSignatures: true`. Detected signers and fields land on the document directly. Returns the upload status; poll the upload status until it is `ready` or `failed`. Idempotency-Key is required. Requires the `api_deals_create` scope.
POSTBegin a document upload
Starts an upload on an existing deal package, or reuses its pending upload. No Idempotency-Key is required. Returns 201 when a new pending document row is created and 200 when an existing awaiting_upload row is reused with a freshly minted signed URL. Requires the `api_deals_create` scope.