McMain icon

McMain

Interact with McMain API

Contract → Get List

AI-generated

Summary

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.

Discussion