List Cost Codes
list_cost_codesRetrieve a paginated list of cost codes for a project. Use filters and pagination to find specific Work Breakdown Structure records and their IDs.
Instructions
Returns a list of Cost Codes. Use this to enumerate Work Breakdown Structure records when you need a paginated overview, to find IDs, or to filter by query parameters. Returns a paginated JSON array of Work Breakdown Structure records. Use page and per_page to control pagination; the response includes pagination metadata. Required parameters: project_id. Procore API: Construction Financials > Work Breakdown Structure. Endpoint: GET /rest/v1.0/cost_codes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Query string parameter — unique identifier for the project. | |
| sub_job_id | No | Query string parameter — unique identifier for the Sub Job | |
| filters__id | No | Query string parameter — return cost codes that are filtered on an array of ID's. Example: filters[id]=[1,2] | |
| 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) | |
| filters__origin_id | No | Query string parameter — origin ID. Returns item(s) with the specified Origin ID. | |
| view | No | Query string parameter — specifies which view (which attributes) of the resource is going to be present in the response. |