Document attributes are customized data related to a document in a transaction, or to all data in a transaction. This data is not interpreted by Conga Sign. As such, the users of this data are free to store and interpret whatever data they want.

Customized data can also be applied at the transaction level. For more information, see Custom Transaction Data.

The following code sample illustrates the simplest way to create a package with customized document attributes. This example illustrates how to create customized attributes with the keys Department, and Employee. The customized attribute data is constructed as a map.

HTTP Request

POST /api/cs-packages
JS

HTTP Headers

Accept: application/json   
Content-Type: multipart/form-data   
Authorization: Bearer access_token
JS

Request Payload

------WebKitFormBoundary1bNO60n7FqP5WO4t   Content-Disposition: form-data; name="file"; filename="testDocumentExtraction.pdf"   Content-Type: application/pdf   %PDF-1.5   %µµµµ   1 0 obj   <>>>   endobj....   ------WebKitFormBoundary1bNO60n7FqP5WO4t   Content-Disposition: form-data; name="payload"   {   "autocomplete": true,   "documents": [   {   "approvals": [   {   "fields": [   {   "extract": false,   "height": 50,   "left": 100,   "page": 0,   "subtype": "FULLNAME",   "top": 100,   "type": "SIGNATURE",   "width": 200   }   ],   "role": "Client1"   }   ],   "data": {   "Department": "1806",   "Employee": "135526"   },   "name": "sample doc"   }   ],   "name": "Document Attributes Example",   "roles": [   {   "id": "Client1",   "name": "Client1",   "signers": [   {   "company": "Acme Inc.",   "email": "signer1@example.com",   "firstName": "John",   "id": "Client1",   "lastName": "Smith",   "title": "Managing Director"   }   ]   }   ],   "trashed": false,   "type": "PACKAGE",   "visibility": "ACCOUNT"   }   ------WebKitFormBoundary1bNO60n7FqP5WO4t--
JS

For a complete description of each field, see the Request Payload Table below. 

Response Payload

{   "id": "9sKhW-h-qS9m6Ho3zRv3n2a-rkI="   } 
JS

If you want to retrieve your attributes at a later stage, you can do so by simply retrieving your document JSON:

GET https://services.congamerge.com/api/cs-packages/{packageId}/documents/{documentId}
JS

Then loop through the data filed property.

Request Payload Table

PropertyTypeEditableRequiredDefaultSample Values
statusstringYesNoDRAFTDRAFT/SENT/COMPLETED/ARCHIVED/ 
DECLINED/OPTED_OUT/EXPIRED 
autoCompletebooleanYesNotruetrue/false 
typestringYesNoPACKAGEPACKAGE/TEMPLATE/LAYOUT 
namestringYesYesn/aDocument Attributes Example 
trashedbooleanYesNofalsetrue/false 
visibilitystringYesNoACCOUNTACCOUNT/SENDER 
documents
namestringYesNon/asample doc 
approvals
fields
subtypestringYesNon/aFULLNAME/INITIALS/CAPTURE/ 
MOBILE_CAPTURE/LABEL/TEXTFIELD/ 
TEXTAREA/CHECKBOX/DATE/RADIO/ 
LIST 
typestringYesNon/aSIGNATURE/INPUT 
extractbooleanYesNofalsetrue/false 
heightintegerYesNo5050/100/150...
leftintegerYesNo050/100/150...
pageintegerYesNo00/1/2...
topintegerYesNo050/100/150...
widthintegerYesNo20050/100/150...
rolestringYesNon/aClient1 
data
DepartmentstringYesNon/a1806
EmployeestringYesNon/a135526
roles
idstringYesNon/aClient1 
namestringYesNon/aClient1 
typestringYesNoSIGNERSIGNER/SENDER 
signers
emailstringYesYesn/ajohn.smith@example.com 
firstNamestringYesYesn/aJohn 
lastNamestringYesYesn/aSmith 
phonestringYesNon/a514-555-8888 
idstringYesNon/aClient1 
companystringYesNon/aAcme Inc 
titlestringYesNon/aManaging Director