List graphql
The schema of the caller's org Base as GraphQL SDL: a type per collection with its fields, relations and the records pointing at it, a filter input per collection, orderBy, connections, aggregates and the writes.
GET /v1/base/graphql
| Address | https://api.hanzo.ai/v1/base/graphql |
| Method | GET |
| Operation | get_base_graphql |
| Auth | Authorization: Bearer $HANZO_API_KEY |
The schema of the caller's org Base as GraphQL SDL: a type per collection with its fields, relations and the records pointing at it, a filter input per collection, orderBy, connections, aggregates and the writes. It is that org's own, so it changes with its collections. /v1/graphql carries the same schema under base.
Request
GET /v1/base/graphql takes no parameters and no body — the credential is the whole request.
Response
The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.
Examples
hanzo base graphql getimport { Configuration, BaseApi } from 'hanzoai';
const api = new BaseApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getBaseGraphql();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import BaseApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = BaseApi(client).get_base_graphql()cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.BaseAPI.GetBaseGraphql(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, base_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = base_api::get_base_graphql(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BaseApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new BaseApi(client).getBaseGraphql();curl https://api.hanzo.ai/v1/base/graphql \
-H "Authorization: Bearer $HANZO_API_KEY"MCP reaches base through the base tool, which names its 3 operations with its own verbs — this one among them, under a name only MCP declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_base_bases"
}
}
}'