Zoho: Get Blueprint States
Zoho blueprintStateConfig.getBlueprintStates: arguments, response, policy and SDK examples.
← Blueprint state config operations · Get started
Operation zoho.getblueprintstates
Provider route: GET /crm/v8/settings/blueprints/{blueprintId}/states. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["blueprintStateConfig"]["getBlueprintStates"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.blueprintStateConfig.getBlueprintStates(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_zoho import ZohoIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.blueprint_state_config.get_blueprint_states(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.blueprintId | string | Required within parent | Format: int64 Maximum length: 19 Minimum length: 1 Pattern: ^[0-9]+ |
query | object | Required within parent | Additional keys: not allowed |
query.ids | array | Required within parent | Array of state IDs in CSV format, with a maximum of 100 unique IDs allowed. Maximum items: 100 Minimum items: 1 Unique items: true |
query.ids[] | string | Each item | A unique state ID. Format: int64 Maximum length: 19 Minimum length: 1 Pattern: ^[0-9]+$ |
headers | object | Required within parent | Additional keys: not allowed |
headers.X-ZOHO-SERVICE | string | Required within parent | One of: automation |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand Get Blueprint States — response body — states — Blueprint State List Response |
$ (anyOf 2) | Model | Alternative | Expand Get Blueprint States — response body — states — Blueprint State List Multi Status Response |
Referenced models: Get Blueprint States — response body — states — Blueprint State List Multi Status Response, Get Blueprint States — response body — states — Blueprint State List Response
Schemas
Section titled “Schemas”2 more schemas are linked from the tables above, on the schema pages.
Get Blueprint States — response body — states — Blueprint State List Multi Status Response
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a multi-status response for retrieving Blueprint states in bulk, containing a **states** array with a mix of successfully retrieved state objects and error entries. Additional keys: not allowed |
states | array | Required within parent | Represents the list of Blueprint state results, where each entry contains either a successfully retrieved state object or a per-record error result. Maximum items: 100 |
states[] | JSON | Each item | |
states[] (anyOf 1) | Model | Alternative | Expand Get Blueprint States — response body — states states item |
states[] (anyOf 2) | Model | Alternative | Expand Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error |
states (allOf 1) | JSON | All variants apply | Ensures at least one successfully fetched state is present. |
states (allOf 2) | JSON | All variants apply | Ensures at least one error entry is present for an invalid state ID. |
Referenced models: Get Blueprint States — response body — states states item, Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error
Get Blueprint States — response body — states — Blueprint State List Response
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response containing a list of states configured for a blueprint. Additional keys: not allowed |
states | array | Required within parent | Represents the list of Blueprint states included in the response. Maximum items: 100 |
states[] | Model | Each item | Expand Get Blueprint States — response body — states states item |
Referenced models: Get Blueprint States — response body — states states item
Get Blueprint States — response body — states states item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A summary of a configured Blueprint state, including its associated process, module, picklist value, and escalation settings. Additional keys: not allowed |
module | Model | Required within parent | Expand Get Blueprint States — response body — states states item module |
pick_list_value | Model | Required within parent | Expand Get Blueprint States — response body — states states item pick list value |
process_id | string | Required within parent | The unique ID of the Blueprint for which the state is configured. Maximum length: 255 |
state_escalation | Model | Required within parent | Expand Get Blueprint States — response body — states states item state escalation |
Referenced models: Get Blueprint States — response body — states states item module, Get Blueprint States — response body — states states item pick list value, Get Blueprint States — response body — states states item state escalation
Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Error returned when a state ID provided as a query parameter is invalid. Additional keys: not allowed |
code | string | Required within parent | Represents the error code. Known values: INVALID_DATA |
details | Model | Required within parent | Expand Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error details |
message | string | Required within parent | Represents the error message returned when the provided ID is invalid. Possible values: the id given seems to be invalid - Indicates that the supplied ID does not correspond to a valid state. Known values: the id given seems to be invalid |
status | string | Required within parent | Represents the status of the response. Possible values: **error** - Indicates the request resulted in an error. Known values: error |
Referenced models: Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error details
Get Blueprint States — response body — states states item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A Zoho CRM module associated with a Blueprint, identified by its API name and unique identifier. Additional keys: not allowed |
api_name | string | Required within parent | The API name of the Blueprint module. Maximum length: 255 |
id | string | Required within parent | The unique identifier of the Blueprint module. Maximum length: 255 |
Get Blueprint States — response body — states states item pick list value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A picklist value for a state field, including its display value and unique identifier. Additional keys: not allowed |
actual_value | string | Required within parent | The stored value of the picklist option, used as the internal identifier for the selected state. Maximum length: 255 |
id | string | Required within parent | The unique identifier of the picklist value. Maximum length: 255 |
Get Blueprint States — response body — states states item state escalation
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The escalation configuration for a Blueprint state, including the escalation period, threshold value, and trigger details. Additional keys: not allowed |
period | string | Required within parent | The time period defined for the escalation setting. Maximum length: 255 |
trigger_details | array | Required within parent | The list of trigger detail objects that define the escalation conditions for the state. Maximum items: 3 |
trigger_details[] | Model | Each item | Expand Get Blueprint States — response body — states states item state escalation trigger details item |
value | JSON | Required within parent | |
value (anyOf 1) | integer | Alternative | The numeric threshold value for the escalation setting. Format: int32 |
value (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Get Blueprint States — response body — states states item state escalation trigger details item
Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of the invalid query parameter error, containing the name and value of the parameter that caused the error. Additional keys: not allowed |
id | string | Required within parent | Represents the invalid ID value submitted in the request. Maximum length: 255 |
param_name | string | Required within parent | Represents the name of the query parameter that caused the invalid state error. Maximum length: 255 |
Get Blueprint States — response body — states states item state escalation trigger details item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An escalation trigger configured with a unique ID, timing parameters, and associated escalation actions. Additional keys: not allowed |
actions | array | Required within parent | The list of actions associated with the escalation trigger. Maximum items: 30 |
actions[] | Model | Each item | Expand Get Blueprint States — response body — states states item state escalation trigger details item actions item |
execute_type | string | Required within parent | The execution type of the escalation trigger. Maximum length: 255 |
id | string | Required within parent | The unique identifier of the escalation trigger. Maximum length: 255 |
period | string | Required within parent | The time period associated with the escalation trigger. Maximum length: 255 |
value | JSON | Required within parent | |
value (anyOf 1) | integer | Alternative | The numeric threshold value that triggers the escalation condition. Format: int32 |
value (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Get Blueprint States — response body — states states item state escalation trigger details item actions item
Get Blueprint States — response body — states states item state escalation trigger details item actions item details escalate to item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A recipient selection for an escalation action, containing the recipient type and ID. Additional keys: not allowed |
id | string | Required within parent | The unique identifier of the escalation recipient. Maximum length: 255 |
type | string | Required within parent | The recipient type for the escalation. Possible values: **user** - An individual CRM user. **role** - A CRM role. **group** - A user group. **team_user** - A team member user. **profile** - A CRM profile. Known values: user, role, group, team_user, profile Maximum length: 255 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getblueprintstates. Catalog operation: getBlueprintStates. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.