McMain icon

McMain

Interact with McMain API

Employee → Get Details

AI-generated

Summary

Fetch employee details by ID

Inputs

  • id (required) — ID of the employee
  • requestOptions — Collection of request options such as batching, SSL handling, proxy, and timeout

Output shape

a single employee record

May contain additional metadata; success returns the employee object, failure returns an error envelope

Examples

Example 1: Retrieve employee with ID 12345 using default request options

Set id to '12345', keep requestOptions unchanged

Example 2: Fetch employee details with batch processing of 100 items

Set id to a list of IDs, enable batching with batchSize 100

Discussion