Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.blueprintIdstringRequired within parentFormat: int64
Maximum length: 19
Minimum length: 1
Pattern: ^[0-9]+
path.stateIdstringRequired within parentFormat: int64
Maximum length: 19
Minimum length: 1
Pattern: ^[0-9]+
headersobjectRequired within parentAdditional keys: not allowed
headers.X-ZOHO-SERVICEstringRequired within parentOne of: automation

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get a Blueprint state by ID — response body

Referenced models: Get a Blueprint state by ID — response body

Get a Blueprint state by ID — response body
FieldTypePresenceDescription and constraints
$objectRootRepresents the response payload containing detailed information for a single Blueprint state, including its associated state data.
Additional keys: not allowed
statesarrayRequired within parentThe list of Blueprint state detail objects returned in the response.
Maximum items: 1
states[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents a Blueprint state with its associated escalation configuration, CRM module reference, and picklist value.
Additional keys: not allowed
moduleModelRequired within parentExpand Get a Blueprint state by ID — response body — states item module
pick_list_valueModelRequired within parentExpand Get a Blueprint state by ID — response body — states item pick list value
process_idstringRequired within parentThe unique ID of the Blueprint for which the state is configured.
Maximum length: 255
state_escalationModelOptionalExpand 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
FieldTypePresenceDescription and constraints
$objectRootThe module associated with a Blueprint state, including its unique identifier and API name.
Additional keys: not allowed
api_namestringRequired within parentThe API name of the Blueprint module.
Maximum length: 255
idstringRequired within parentThe unique identifier of the Blueprint module.
Maximum length: 255
Get a Blueprint state by ID — response body — states item state escalation
FieldTypePresenceDescription and constraints
$objectRootAn escalation profile for a state, containing the timing period, escalation value, and trigger details.
Additional keys: not allowed
periodstringRequired within parentThe period associated with the state escalation profile.
Maximum length: 255
trigger_detailsarrayRequired within parentThe list of trigger details associated with the escalation profile.
Maximum items: 3
trigger_details[]ModelEach itemExpand Get a Blueprint state by ID — response body — states item state escalation trigger details item
valueJSONRequired within parent
value (anyOf 1)integerAlternativeThe numeric value associated with the escalation profile state.
Format: int32
value (anyOf 2)stringAlternativePattern: ^-?[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
FieldTypePresenceDescription and constraints
$objectRootA picklist value for a state field, containing the unique identifier and the corresponding actual value.
Additional keys: not allowed
actual_valuestringRequired within parentThe actual stored value of the picklist option in Zoho CRM.
Maximum length: 255
idstringRequired within parentThe unique identifier of the picklist value.
Maximum length: 255
Get a Blueprint state by ID — response body — states item state escalation trigger details item
FieldTypePresenceDescription and constraints
$objectRootTrigger for a specific state's escalation, including timing fields and associated actions.
Additional keys: not allowed
actionsarrayRequired within parentThe list of actions associated with the state escalation trigger.
Maximum items: 10
actions[]ModelEach itemExpand Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item
execute_typestringRequired within parentThe execution type for the state escalation trigger.
Maximum length: 255
idstringRequired within parentThe unique identifier of the state escalation trigger.
Maximum length: 255
periodstringRequired within parentThe time period after which the escalation trigger activates for the current state.
Maximum length: 255
valueJSONRequired within parent
value (anyOf 1)integerAlternativeThe numeric threshold value that triggers the state escalation.
Format: int32
value (anyOf 2)stringAlternativePattern: ^-?[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
FieldTypePresenceDescription and constraints
$objectRootRepresents an action entry within a state's escalation configuration, including the action type and its associated details.
Additional keys: not allowed
detailsModelRequired within parentExpand Get a Blueprint state by ID — response body — states item state escalation trigger details item actions item details
idstringRequired within parentRepresents the unique identifier of the state escalation action.
Maximum length: 255
namestringRequired within parentThe name of the escalation action.
Maximum length: 255
typestringRequired within parentThe 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
FieldTypePresenceDescription and constraints
$objectRootThe escalation action configuration for a specific state, including the recipients to escalate to.
Additional keys: not allowed
escalate_toarrayRequired within parentThe list of escalation targets for the state escalation action.
Maximum items: 1
escalate_to[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootA recipient reference scoped to a specific escalation state, including the recipient's unique ID and type.
Additional keys: not allowed
idstringRequired within parentThe unique identifier of the escalation recipient.
Maximum length: 255
typestringRequired within parentThe 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

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.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.