Create a documentation entry
/documentation
Create a documentation entry. For type: tool_name, content must be a unique MCP tool name (lowercase letters, numbers and underscores, at most 64 characters). Sending empty content or the default name changes nothing and stores no entry.
Request Body
Entry type. Per-method entries for MCP tools use description, tool_name, query_schema,
body_schema, and response_schema. Integration-wide entries include readme, oauth_*, and note.
readmenoteend_user_guidedescriptiontool_namequery_schemabody_schemaresponse_schemaoauth_documentation_linkoauth_app_requires_verificationoauth_note
Response Body
object · 11 properties
Set when the entry applies to one authentication method only.
Entry content. For tool_name, a custom MCP tool name (lowercase letters, numbers and underscores,
at most 64 characters). For description, plain text. For *_schema types, a YAML-encoded schema.
When the entry was created.
The ID of the integration, environment integration, unified model or environment unified model the entry belongs to.
What entity_id points to.
integrationunified_modelenvironment_integrationenvironment_unified_model
The entry's ID.
The integration the entry belongs to.
The method a per-method entry describes.
The resource a per-method entry describes.
Entry type. Per-method entries for MCP tools use description, tool_name, query_schema,
body_schema, and response_schema. Integration-wide entries include readme, oauth_*, and note.
readmenoteend_user_guidedescriptiontool_namequery_schemabody_schemaresponse_schemaoauth_documentation_linkoauth_app_requires_verificationoauth_note
When the entry was last updated.
curl -X POST 'https://api.truto.one/documentation' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"integration_id": "your_integration_id",
"environment_integration_id": "your_environment_integration_id",
"unified_model_id": "your_unified_model_id",
"environment_unified_model_id": "your_environment_unified_model_id",
"type": "readme",
"content": "your_content",
"resource": "your_resource",
"method": "your_method",
"authentication_method": "your_authentication_method"
}'const body = {
"integration_id": "your_integration_id",
"environment_integration_id": "your_environment_integration_id",
"unified_model_id": "your_unified_model_id",
"environment_unified_model_id": "your_environment_unified_model_id",
"type": "readme",
"content": "your_content",
"resource": "your_resource",
"method": "your_method",
"authentication_method": "your_authentication_method"
};
const response = await fetch('https://api.truto.one/documentation', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/documentation"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"integration_id": "your_integration_id",
"environment_integration_id": "your_environment_integration_id",
"unified_model_id": "your_unified_model_id",
"environment_unified_model_id": "your_environment_unified_model_id",
"type": "readme",
"content": "your_content",
"resource": "your_resource",
"method": "your_method",
"authentication_method": "your_authentication_method"
}
response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())