HighLevel: List documents
HighLevel proposals.listDocumentsContracts: arguments, response, policy and SDK examples.
← Proposals operations · Get started
Operation gohighlevel.list_documents_contracts
Provider route: GET /proposals/document. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["proposals"]["listDocumentsContracts"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.proposals.listDocumentsContracts(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.proposals.list_documents_contracts(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Required within parent | Additional keys: not allowed |
query.locationId | string | Required within parent | |
query.status | string | Optional | One of: draft, sent, viewed, completed, accepted |
query.paymentStatus | string | Optional | One of: waiting_for_payment, paid, no_payment |
query.limit | number | Optional | |
query.skip | number | Optional | |
query.query | string | Optional | |
query.dateFrom | string | Optional | |
query.dateTo | string | Optional |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand List documents — response body |
Referenced models: List documents — response body
Schemas
Section titled “Schemas”List documents — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
documents | array | Required within parent | List of documents |
documents[] | Model | Each item | Expand List documents — response body — documents item |
total | JSON | Required within parent | |
total (anyOf 1) | number | Alternative | Total records available |
total (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
whiteLabelBaseUrl | JSON | Optional | |
whiteLabelBaseUrl (anyOf 1) | number | Alternative | WhiteLabel url for document |
whiteLabelBaseUrl (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
whiteLabelBaseUrlForInvoice | JSON | Optional | |
whiteLabelBaseUrlForInvoice (anyOf 1) | number | Alternative | WhiteLabel url for invoice |
whiteLabelBaseUrlForInvoice (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: List documents — response body — documents item
List documents — response body — documents item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
_id | string | Required within parent | Unique identifier |
createdAt | string | Required within parent | Date to (ISO 8601) |
deleted | boolean | Required within parent | Whether the document is deleted |
documentId | string | Required within parent | Document Id |
documentRevision | JSON | Required within parent | |
documentRevision (anyOf 1) | number | Alternative | Number of times document is moved to draft state |
documentRevision (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
fillableFields | array | Required within parent | Fillable fields |
fillableFields[] | Model | Each item | Expand List documents — response body — documents item fillable Fields item |
grandTotal | JSON | Required within parent | Grand total object of the document |
grandTotal (allOf 1) | Model | All variants apply | Expand List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts |
isExpired | boolean | Required within parent | Whether the document is expired |
links | array | Required within parent | Links for the document if its sent |
links[] | Model | Each item | Expand Send document — response body — links item |
locale | string | Required within parent | Locale of the location |
locationId | string | Required within parent | Location Id |
name | string | Required within parent | Name of the document |
paymentStatus | array | Required within parent | Payment status |
paymentStatus[] | string | Each item | Known values: waiting_for_payment, paid, no_payment |
recipients | array | Required within parent | Recipients |
recipients[] | Model | Each item | Expand List documents — response body — documents item recipients item |
status | array | Required within parent | Document status |
status[] | string | Each item | Known values: draft, sent, viewed, completed, accepted |
type | string | Required within parent | Type of the document |
updatedAt | string | Required within parent | Date start from (ISO 8601) |
Referenced models: List documents — response body — documents item fillable Fields item, List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts, Send document — response body — links item, List documents — response body — documents item recipients item
List documents — response body — documents item fillable Fields item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
entityType | string | Required within parent | Entity type Known values: contacts, users |
fieldId | string | Required within parent | Field Id |
hasCompleted | boolean | Required within parent | Has the field been completed |
id | string | Required within parent | Id |
isRequired | boolean | Required within parent | Is the field required |
recipient | string | Required within parent | Recipient |
type | string | Required within parent | Element type Known values: Page, Text, Image, Video, Table, ProductList, PageBreak, Signature, PaymentDetails, TextField, DateField, InitialsField, Checkbox, Row, Column |
value | string | Required within parent | Value of the field |
List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
amount | JSON | Required within parent | |
amount (anyOf 1) | number | Alternative | Total amount before discounts |
amount (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
currency | string | Required within parent | Currency of the total amount |
discountPercentage | JSON | Required within parent | |
discountPercentage (anyOf 1) | number | Alternative | Total discount percentage applied |
discountPercentage (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
discounts | array | Required within parent | List of applied discounts |
discounts[] | Model | Each item | Expand List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts discounts item |
Referenced models: List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts discounts item
Send document — response body — links item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
createdBy | string | Required within parent | Created by user ID |
deleted | boolean | Required within parent | Whether the document is deleted |
documentId | string | Required within parent | Document ID |
documentRevision | JSON | Required within parent | |
documentRevision (anyOf 1) | number | Alternative | Document revision number |
documentRevision (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
entityName | string | Required within parent | Entity name that the recipient belongs to Known values: contacts, users |
recipientCategory | string | Required within parent | Recipient category (recipient, cc, or bcc) Known values: recipient, cc, bcc |
recipientId | string | Required within parent | Recipient ID |
referenceId | string | Required within parent | Reference ID |
List documents — response body — documents item recipients item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
contactName | string | Optional | Recipient contact name |
country | string | Optional | Recipient country |
email | string | Required within parent | Recipient Email |
entityName | string | Optional | Recipient entity name |
firstName | string | Optional | Recipient First Name |
hasCompleted | boolean | Required within parent | Recipient has completed the document |
id | string | Required within parent | Recipient Id |
imgUrl | string | Optional | Recipient image url |
initialsImgUrl | string | Optional | Recipient initials image url |
ip | string | Optional | Recipient ip |
isPrimary | boolean | Required within parent | Recipient is primary |
lastName | string | Optional | Recipient Last Name |
lastViewedAt | string | Optional | Recipient last viewed date |
phone | string | Optional | Recipient Phone |
phoneNumber | string | Optional | Recipient Phone Number |
role | string | Required within parent | Recipient role Known values: user, signer |
shareLink | string | Optional | Share link |
signedDate | string | Optional | Recipient signed date |
signingOrder | JSON | Required within parent | |
signingOrder (anyOf 1) | number | Alternative | Recipient signing order |
signingOrder (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
userAgent | string | Optional | Recipient user agent |
List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts discounts item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
id | string | Required within parent | Unique identifier for the discount |
type | string | Required within parent | Type of discount Known values: percentage, custom_amount |
value | JSON | Required within parent | |
value (anyOf 1) | number | Alternative | Discount value (either a percentage or custom amount) |
value (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: gohighlevel.list_documents_contracts. Catalog operation: list-documents-contracts. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["documents_contracts/list.readonly"]
Pinned headers: {"Version": "v3"}