List Departments
list_departmentsList a company's departments to discover them or retrieve their IDs for other API calls. Supports pagination and is read-only.
Instructions
Return a list of Departments. Use this to discover departments or to look up the id of one before calling a tool that needs it. Returns a JSON array of departments; page and per_page control pagination and the response reports how many pages remain. Read-only — it changes nothing in Procore. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, and 404 when an id does not resolve. Required parameters: company_id. Procore API: Core > Directory. Endpoint: GET /rest/v1.0/departments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Query string parameter — page number for paginated results (default: 1) | |
| per_page | No | Query string parameter — number of items per page (default: 100, max: 100) | |
| company_id | Yes | Query string parameter — unique identifier for the company. |