Actions67
- Account Actions
- Asset Actions
- Asset Type Actions
- Base Data Actions
- Call Actions
- Contact Actions
- Contract Actions
- Crew Actions
- Document Actions
- Employee Actions
- Hours Actions
- Hour Type Actions
- Work Order Actions
Document → Get List
AI-generatedSummary
Retrieve a list of documents from the McMain API.
Inputs
- returnAll — Whether to return all results or only up to a given limit
- limit — Maximum number of results to return (used when returnAll is false)
- requestOptions — Advanced request configuration including batching, SSL verification, proxy, and timeout
Output shape
a list of Document objects
Response contains an array of document records; errors are wrapped in a standard error envelope.
Examples
Example 1: Get the first 20 documents.
returnAll=false, limit=20
Example 2: Retrieve all documents.
returnAll=true
Example 3: Use batching with default batch size.
requestOptions.batch.batchSize=50, requestOptions.batchInterval=1000