List Project State Codes
list_project_state_codesRetrieve state codes for a country to find the project state ID required by other Procore API calls. Provides paginated read-only JSON results.
Instructions
Return the list of states for a country. Use this to discover project state codes or to look up the id of one before calling a tool that needs it. project_id defaults to the value set by procore_set_config when omitted. Returns a JSON array of project state codes; 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: project_id, country_code. Procore API: Core > Directory. Endpoint: GET /rest/v1.0/projects/{project_id}/directory/filter_options/state_codes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for paginated results (default: 1, 1-indexed) | |
| per_page | No | Number of items per page (default: 100, max: 100) | |
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| country_code | Yes | Query string parameter — code that identifies a country |