Zoho: Get a Blueprint state by ID
Zoho blueprintStateConfig.getBlueprintStateById: arguments, response, policy and SDK examples.
← Blueprint state config operations · Get started
Operation zoho.getblueprintstatebyid
Provider route: GET /crm/v8/settings/blueprints/{blueprintId}/states/{stateId}. 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"]["getBlueprintStateById"]>[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.getBlueprintStateById(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_state_by_id(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]+ |
path.stateId | string | Required within parent | 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 |
|---|---|---|---|
$ | Model | Root | Expand Get a Blueprint state by ID — response body |
Referenced models: Get a Blueprint state by ID — response body
Schemas
Section titled “Schemas”Get a Blueprint state by ID — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the response payload containing detailed information for a single Blueprint state, including its associated state data. Additional keys: not allowed |
states | array | Required within parent | The list of Blueprint state detail objects returned in the response. Maximum items: 1 |
states[] | Model | Each item | Expand Get a Blueprint state by ID — response body — states item |
Referenced models: Get a Blueprint state by ID — response body — states item
Get a Blueprint state by ID — response body — states item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a Blueprint state with its associated escalation configuration, CRM module reference, and picklist value. Additional keys: not allowed |
module | Model | Required within parent | Expand Get a Blueprint state by ID — response body — states item module |
pick_list_value | Model | Required within parent | Expand Get a Blueprint state by ID — response body — 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 | Optional | Expand Get a Blueprint state by ID — response body — states item state escalation |
Referenced models: Get a Blueprint state by ID — response body — states item module, Get a Blueprint state by ID — response body — states item state escalation, Get a Blueprint state by ID — response body — states item pick list value
Get a Blueprint state by ID — response body — states item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The module associated with a Blueprint state, including its unique identifier and API name. 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 a Blueprint state by ID — response body — states item state escalation
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An escalation profile for a state, containing the timing period, escalation value, and trigger details. Additional keys: not allowed |
period | string | Required within parent | The period associated with the state escalation profile. Maximum length: 255 |
trigger_details | array | Required within parent | The list of trigger details associated with the escalation profile. Maximum items: 3 |
trigger_details[] | Model | Each item | Expand Get a Blueprint state by ID — response body — states item state escalation trigger details item |
value | JSON | Required within parent | |
value (anyOf 1) | integer | Alternative | The numeric value associated with the escalation profile state. Format: int32 |
value (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Get a Blueprint state by ID — response body — states item state escalation trigger details item
Get a Blueprint state by ID — response body — states item pick list value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A picklist value for a state field, containing the unique identifier and the corresponding actual value. Additional keys: not allowed |
actual_value | string | Required within parent | The actual stored value of the picklist option in Zoho CRM. Maximum length: 255 |
id | string | Required within parent | The unique identifier of the picklist value. Maximum length: 255 |
Get a Blueprint state by ID — response body — states item state escalation trigger details item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Trigger for a specific state's escalation, including timing fields and associated actions. Additional keys: not allowed |
actions | array | Required within parent | The list of actions associated with the state escalation trigger. Maximum items: 10 |
actions[] | Model | Each item | Expand Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item |
execute_type | string | Required within parent | The execution type for the state escalation trigger. Maximum length: 255 |
id | string | Required within parent | The unique identifier of the state escalation trigger. Maximum length: 255 |
period | string | Required within parent | The time period after which the escalation trigger activates for the current state. Maximum length: 255 |
value | JSON | Required within parent | |
value (anyOf 1) | integer | Alternative | The numeric threshold value that triggers the state escalation. Format: int32 |
value (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item
Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an action entry within a state's escalation configuration, including the action type and its associated details. Additional keys: not allowed |
details | Model | Required within parent | Expand Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item details |
id | string | Required within parent | Represents the unique identifier of the state escalation action. Maximum length: 255 |
name | string | Required within parent | The name of the escalation action. Maximum length: 255 |
type | string | Required within parent | The type of the state escalation action. Maximum length: 255 |
Referenced models: Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item details
Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The escalation action configuration for a specific state, including the recipients to escalate to. Additional keys: not allowed |
escalate_to | array | Required within parent | The list of escalation targets for the state escalation action. Maximum items: 1 |
escalate_to[] | Model | Each item | Expand Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item details escalate to item |
Referenced models: Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item details escalate to item
Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item details escalate to item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A recipient reference scoped to a specific escalation state, including the recipient's unique ID and type. 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 target. Possible values: **user** - An individual CRM user. **role** - A CRM role. **group** - A CRM user group. **team_user** - A team 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.getblueprintstatebyid. Catalog operation: getBlueprintStateById. 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.