Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.locationIdstringRequired within parent
query.statusstringOptionalOne of: draft, sent, viewed, completed, accepted
query.paymentStatusstringOptionalOne of: waiting_for_payment, paid, no_payment
query.limitnumberOptional
query.skipnumberOptional
query.querystringOptional
query.dateFromstringOptional
query.dateTostringOptional

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand List documents — response body

Referenced models: List documents — response body

List documents — response body
FieldTypePresenceDescription and constraints
$objectRoot
documentsarrayRequired within parentList of documents
documents[]ModelEach itemExpand List documents — response body — documents item
totalJSONRequired within parent
total (anyOf 1)numberAlternativeTotal records available
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
whiteLabelBaseUrlJSONOptional
whiteLabelBaseUrl (anyOf 1)numberAlternativeWhiteLabel url for document
whiteLabelBaseUrl (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
whiteLabelBaseUrlForInvoiceJSONOptional
whiteLabelBaseUrlForInvoice (anyOf 1)numberAlternativeWhiteLabel url for invoice
whiteLabelBaseUrlForInvoice (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: List documents — response body — documents item

List documents — response body — documents item
FieldTypePresenceDescription and constraints
$objectRoot
_idstringRequired within parentUnique identifier
createdAtstringRequired within parentDate to (ISO 8601)
deletedbooleanRequired within parentWhether the document is deleted
documentIdstringRequired within parentDocument Id
documentRevisionJSONRequired within parent
documentRevision (anyOf 1)numberAlternativeNumber of times document is moved to draft state
documentRevision (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
fillableFieldsarrayRequired within parentFillable fields
fillableFields[]ModelEach itemExpand List documents — response body — documents item fillable Fields item
grandTotalJSONRequired within parentGrand total object of the document
grandTotal (allOf 1)ModelAll variants applyExpand List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts
isExpiredbooleanRequired within parentWhether the document is expired
linksarrayRequired within parentLinks for the document if its sent
links[]ModelEach itemExpand Send document — response body — links item
localestringRequired within parentLocale of the location
locationIdstringRequired within parentLocation Id
namestringRequired within parentName of the document
paymentStatusarrayRequired within parentPayment status
paymentStatus[]stringEach itemKnown values: waiting_for_payment, paid, no_payment
recipientsarrayRequired within parentRecipients
recipients[]ModelEach itemExpand List documents — response body — documents item recipients item
statusarrayRequired within parentDocument status
status[]stringEach itemKnown values: draft, sent, viewed, completed, accepted
typestringRequired within parentType of the document
updatedAtstringRequired within parentDate 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
FieldTypePresenceDescription and constraints
$objectRoot
entityTypestringRequired within parentEntity type
Known values: contacts, users
fieldIdstringRequired within parentField Id
hasCompletedbooleanRequired within parentHas the field been completed
idstringRequired within parentId
isRequiredbooleanRequired within parentIs the field required
recipientstringRequired within parentRecipient
typestringRequired within parentElement type
Known values: Page, Text, Image, Video, Table, ProductList, PageBreak, Signature, PaymentDetails, TextField, DateField, InitialsField, Checkbox, Row, Column
valuestringRequired within parentValue of the field
List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts
FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)numberAlternativeTotal amount before discounts
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringRequired within parentCurrency of the total amount
discountPercentageJSONRequired within parent
discountPercentage (anyOf 1)numberAlternativeTotal discount percentage applied
discountPercentage (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
discountsarrayRequired within parentList of applied discounts
discounts[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRoot
createdBystringRequired within parentCreated by user ID
deletedbooleanRequired within parentWhether the document is deleted
documentIdstringRequired within parentDocument ID
documentRevisionJSONRequired within parent
documentRevision (anyOf 1)numberAlternativeDocument revision number
documentRevision (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
entityNamestringRequired within parentEntity name that the recipient belongs to
Known values: contacts, users
recipientCategorystringRequired within parentRecipient category (recipient, cc, or bcc)
Known values: recipient, cc, bcc
recipientIdstringRequired within parentRecipient ID
referenceIdstringRequired within parentReference ID
List documents — response body — documents item recipients item
FieldTypePresenceDescription and constraints
$objectRoot
contactNamestringOptionalRecipient contact name
countrystringOptionalRecipient country
emailstringRequired within parentRecipient Email
entityNamestringOptionalRecipient entity name
firstNamestringOptionalRecipient First Name
hasCompletedbooleanRequired within parentRecipient has completed the document
idstringRequired within parentRecipient Id
imgUrlstringOptionalRecipient image url
initialsImgUrlstringOptionalRecipient initials image url
ipstringOptionalRecipient ip
isPrimarybooleanRequired within parentRecipient is primary
lastNamestringOptionalRecipient Last Name
lastViewedAtstringOptionalRecipient last viewed date
phonestringOptionalRecipient Phone
phoneNumberstringOptionalRecipient Phone Number
rolestringRequired within parentRecipient role
Known values: user, signer
shareLinkstringOptionalShare link
signedDatestringOptionalRecipient signed date
signingOrderJSONRequired within parent
signingOrder (anyOf 1)numberAlternativeRecipient signing order
signingOrder (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
userAgentstringOptionalRecipient user agent
List documents — response body — documents item grand Total amount, currency, discount Percentage, discounts discounts item
FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentUnique identifier for the discount
typestringRequired within parentType of discount
Known values: percentage, custom_amount
valueJSONRequired within parent
value (anyOf 1)numberAlternativeDiscount value (either a percentage or custom amount)
value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

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

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.