Call any Blesta API method
blesta_callInvoke any Blesta API model method with named parameters, including nested arrays and plugin models. Automatically infers the HTTP verb when omitted.
Instructions
Escape hatch: call any public model method of the Blesta API as {model}/{method}. Parameters are passed BY NAME and must match the PHP method's argument names (see https://source-docs.blesta.com/classes/{Model}.html). Nested arrays/objects are supported (e.g. params: {"vars": {"client_id": 1, "lines": [{"description": "x", "amount": "5.00"}]}}). Plugin models use "plugin.model" (e.g. "support_manager.support_manager_tickets"). If http_method is omitted it is inferred from the method name (get*/search* -> GET, add* -> POST, edit*/set* -> PUT, delete* -> DELETE). Timestamps must include a timezone (e.g. 2026-01-31T12:00:00Z). If Blesta answers HTTP 500 'Failed to retrieve the default value', resend with every optional argument explicitly set. Any valid API key has full administrative power; prefer the purpose-built tools when one exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name in snake_case as used in the URL, e.g. clients, invoices, services, transactions, or plugin.model | |
| method | Yes | Public method name, e.g. get, getList, add, edit | |
| params | No | Named arguments for the method; nested objects/arrays allowed | |
| max_chars | No | Cap on returned JSON size (default 60000) | |
| http_method | No | Override the inferred HTTP verb |