API ReferenceDocuments

List package document uploads

GET
/api/v1/orgs/{orgId}/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
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
dealId
required
string

Deal that owns the package.

Formatuuid
packageId
required
string

Package whose document uploads to list.

Formatuuid

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