Skip to content

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.

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 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_states(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]+
queryobjectRequired within parentAdditional keys: not allowed
query.idsarrayRequired within parentArray 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[]stringEach itemA unique state ID.
Format: 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
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Get Blueprint States — response body — states — Blueprint State List Response
$ (anyOf 2)ModelAlternativeExpand 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

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
FieldTypePresenceDescription and constraints
$objectRootRepresents 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
statesarrayRequired within parentRepresents 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[]JSONEach item
states[] (anyOf 1)ModelAlternativeExpand Get Blueprint States — response body — states states item
states[] (anyOf 2)ModelAlternativeExpand Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error
states (allOf 1)JSONAll variants applyEnsures at least one successfully fetched state is present.
states (allOf 2)JSONAll variants applyEnsures 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
FieldTypePresenceDescription and constraints
$objectRootResponse containing a list of states configured for a blueprint.
Additional keys: not allowed
statesarrayRequired within parentRepresents the list of Blueprint states included in the response.
Maximum items: 100
states[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootA summary of a configured Blueprint state, including its associated process, module, picklist value, and escalation settings.
Additional keys: not allowed
moduleModelRequired within parentExpand Get Blueprint States — response body — states states item module
pick_list_valueModelRequired within parentExpand Get Blueprint States — response body — states states item pick list value
process_idstringRequired within parentThe unique ID of the Blueprint for which the state is configured.
Maximum length: 255
state_escalationModelRequired within parentExpand 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
FieldTypePresenceDescription and constraints
$objectRootError returned when a state ID provided as a query parameter is invalid.
Additional keys: not allowed
codestringRequired within parentRepresents the error code.
Known values: INVALID_DATA
detailsModelRequired within parentExpand Get Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error details
messagestringRequired within parentRepresents 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
statusstringRequired within parentRepresents 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
FieldTypePresenceDescription and constraints
$objectRootA Zoho CRM module associated with a Blueprint, identified by its API name and unique identifier.
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 Blueprint States — response body — states states item pick list value
FieldTypePresenceDescription and constraints
$objectRootA picklist value for a state field, including its display value and unique identifier.
Additional keys: not allowed
actual_valuestringRequired within parentThe stored value of the picklist option, used as the internal identifier for the selected state.
Maximum length: 255
idstringRequired within parentThe unique identifier of the picklist value.
Maximum length: 255
Get Blueprint States — response body — states states item state escalation
FieldTypePresenceDescription and constraints
$objectRootThe escalation configuration for a Blueprint state, including the escalation period, threshold value, and trigger details.
Additional keys: not allowed
periodstringRequired within parentThe time period defined for the escalation setting.
Maximum length: 255
trigger_detailsarrayRequired within parentThe list of trigger detail objects that define the escalation conditions for the state.
Maximum items: 3
trigger_details[]ModelEach itemExpand Get Blueprint States — response body — states states item state escalation trigger details item
valueJSONRequired within parent
value (anyOf 1)integerAlternativeThe numeric threshold value for the escalation setting.
Format: int32
value (anyOf 2)stringAlternativePattern: ^-?[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
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of the invalid query parameter error, containing the name and value of the parameter that caused the error.
Additional keys: not allowed
idstringRequired within parentRepresents the invalid ID value submitted in the request.
Maximum length: 255
param_namestringRequired within parentRepresents 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
FieldTypePresenceDescription and constraints
$objectRootAn escalation trigger configured with a unique ID, timing parameters, and associated escalation actions.
Additional keys: not allowed
actionsarrayRequired within parentThe list of actions associated with the escalation trigger.
Maximum items: 30
actions[]ModelEach itemExpand Get Blueprint States — response body — states states item state escalation trigger details item actions item
execute_typestringRequired within parentThe execution type of the escalation trigger.
Maximum length: 255
idstringRequired within parentThe unique identifier of the escalation trigger.
Maximum length: 255
periodstringRequired within parentThe time period associated with the escalation trigger.
Maximum length: 255
valueJSONRequired within parent
value (anyOf 1)integerAlternativeThe numeric threshold value that triggers the escalation condition.
Format: int32
value (anyOf 2)stringAlternativePattern: ^-?[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
FieldTypePresenceDescription and constraints
$objectRootA recipient selection for an escalation action, containing the recipient type and ID.
Additional keys: not allowed
idstringRequired within parentThe unique identifier of the escalation recipient.
Maximum length: 255
typestringRequired within parentThe 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

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.

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.