Get integration mapping metadata for a unified-model resource method
/unified/{model_name}/{resource_name}/{integration_name}/meta/{method}
Returns the merged JSON schema, default query/body, and documentation link for a single integration mapping (e.g. crm.contacts.list on salesforce). Useful for inspecting what a unified call will accept and return without touching a real integrated account.
Unlike most unified endpoints, this one does not require integrated_account_id — it operates against the integration mapping installed in the caller's environment, so it's safe to call during local mapping iteration. The response includes only the fields actually populated by response_mapping for the chosen integration.
Use this together with truto unified test-mapping (Truto CLI) or as the basis for client-side validation before patching environment-unified-model-resource-method.
Path Parameters
The name of the unified model (e.g. crm).
crmThe name of the resource within the model (e.g. contacts).
contactsThe name of the integration to inspect the mapping for (e.g. salesforce).
salesforceThe unified method (e.g. list, get, create, update, delete).
listResponse Body
JSON-schema-style description of the supported query parameters for this method.
Map of property name → JsonSchemaObjectProperties.
object
JSON-schema-style description of the supported request body for this method.
Map of property name → JsonSchemaObjectProperties.
object
A subset of schema containing only the fields actually populated by response_mapping for this integration.
Map of property name → JsonSchemaObjectProperties.
object
The unified-model resource JSON schema.
Map of property name → JsonSchemaObjectProperties.
object
Default request body always applied by the integration mapping. Values may be templated JSONata expressions. Object or null (arrays are allowed at runtime but rare).
Default query parameters always applied by the integration mapping. Values may be templated JSONata expressions.
Vendor documentation URL for this method, if set on the integration mapping.
The unified method this metadata describes.
listErrors
| Status | Description |
|---|---|
404 | Unified model not installed in this environment, or no integration mapping for the supplied integration/resource/method. |
import Truto from '@truto/truto-ts-sdk';
const truto = new Truto({
token: '<your_api_token>',
});
// Custom method: get-method-meta
const result = await truto.unifiedApi.get-method-meta(
'',
'unified_model_docs',
{ integrated_account_id: '<integrated_account_id>' }
);
console.log(result);import asyncio
from truto_python_sdk import TrutoApi
truto_api = TrutoApi(token="<your_api_token>")
async def main():
# Custom method: get-method-meta
result = await truto_api.unified_api.get-method-meta(
"",
"unified_model_docs",
{"integrated_account_id": "<integrated_account_id>"}
)
print(result)
asyncio.run(main())curl -X GET 'https://api.truto.one/unified/{model_name}/{resource_name}/{integration_name}/meta/{method}?integrated_account_id=<integrated_account_id>' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const integratedAccountId = '<integrated_account_id>';
const response = await fetch(`https://api.truto.one/unified/{model_name}/{resource_name}/{integration_name}/meta/{method}?integrated_account_id=${integratedAccountId}`, {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/unified/{model_name}/{resource_name}/{integration_name}/meta/{method}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
"integrated_account_id": "<integrated_account_id>"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())