Skip to content
POST /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

authentication_methodstring
contentstring
environment_integration_idstring · uuid
environment_unified_model_idstring · uuid
integration_idstring · uuid
methodstring
resourcestring
typestring

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.

Possible values:
readmenoteend_user_guidedescriptiontool_namequery_schemabody_schemaresponse_schemaoauth_documentation_linkoauth_app_requires_verificationoauth_note
unified_model_idstring · uuid

Response Body

ONE OF
object · 11 properties
authentication_methodstring

Set when the entry applies to one authentication method only.

contentstring

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.

created_atstring · date-time

When the entry was created.

entity_idstring · uuid

The ID of the integration, environment integration, unified model or environment unified model the entry belongs to.

entity_typestring

What entity_id points to.

Possible values:
integrationunified_modelenvironment_integrationenvironment_unified_model
idstring · uuid

The entry's ID.

integration_namestring

The integration the entry belongs to.

methodstring

The method a per-method entry describes.

resourcestring

The resource a per-method entry describes.

typestring

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.

Possible values:
readmenoteend_user_guidedescriptiontool_namequery_schemabody_schemaresponse_schemaoauth_documentation_linkoauth_app_requires_verificationoauth_note
updated_atstring · date-time

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())