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
Contract → Get List
AI-generatedSummary
Retrieves a list of contracts from the McMain API, optionally limited and supporting advanced request settings.
Inputs
- returnAll — Whether to return all results or only up to a given limit.
- limit — Maximum number of results to return; must be between 1 and 500.
- requestOptions — Additional request settings such as batching, SSL verification, proxy, and timeout.
Output shape
a list of contract records
Returns up to the specified limit unless Return All is enabled; pagination is controlled by the limit parameter.
Examples
Example 1: Get the first 20 contracts
Set Limit to 20, keep Return All false; default requestOptions.
Example 2: Retrieve all contracts ignoring SSL errors
Enable Return All true, leave Limit default, set allowUnauthorizedCerts true.
Example 3: Process contracts in batches of 100
Enable batching, set batchSize 100, keep other defaults.