Get mapping metadata for an integrated account's unified-model method
/unified/{model_name}/{resource_name}/meta/{method}
Like GET /unified/{model_name}/{resource_name}/{integration_name}/meta/{method}, but the integration and environment come from an integrated account, so it describes the mapping that account's unified calls use. Returns response_mapping itself instead of a response_schema, and query_schema and request_body_schema as maps of field name to schema.
Auth: an API token, or an integrated account token (then integrated_account_id comes from the token).
Path Parameters
crmcontactslistQuery Parameters
Refer Specifying query parameters in Truto APIs
Show Truto-specific parameters
Required unless you call with an integrated account token. Must be a UUID.
Response Body
Top-level JSON Schema object used by Truto's unified-model resource definitions.
Map of property name → JsonSchemaObjectProperties.
object
The method's response_mapping (a JSONata expression, or a mapping object).
Errors
| Status | Description |
|---|---|
400 | integrated_account_id is missing or not a UUID. |
404 | The integrated account, the unified model, or its mapping for the method was not found. |
import Truto from '@truto/truto-ts-sdk';
const truto = new Truto({
token: '<your_api_token>',
});
// Custom method: get-account-method-meta
const result = await truto.unifiedApi.get-account-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-account-method-meta
result = await truto_api.unified_api.get-account-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}/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}/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}/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())