List summary

Returns four counts for the caller's org: total posts, how many are scheduled, how many have published, and how many accounts are connected.

GET /v1/social/summary

Addresshttps://api.hanzo.ai/v1/social/summary
MethodGET
Operationget_social_summary
AuthAuthorization: Bearer $HANZO_API_KEY

Returns four counts for the caller's org: total posts, how many are scheduled, how many have published, and how many accounts are connected. It is the dashboard roll-up, computed over the org's own rows in one read.

Request

GET /v1/social/summary takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200social.socialSummaryok
defaultproblem-detailsrefused

200 body — 4 fields.

FieldInTypeAlwaysDescription
accountsbodyinteger (int64)—Accounts is how many accounts the org has connected, in any status.
postsbodyinteger (int64)—Posts is how many posts the org has, in any state.
publishedbodyinteger (int64)—Published is how many of them have published.
scheduledbodyinteger (int64)—Scheduled is how many of them are waiting for their scheduled time.

Failure carries the platform error shape — see Errors.

Examples

hanzo social summary
import { Configuration, SocialApi } from 'hanzoai';

const api = new SocialApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getSocialSummary();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import SocialApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = SocialApi(client).get_social_summary()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.SocialAPI.GetSocialSummary(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, social_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = social_api::get_social_summary(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.SocialApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new SocialApi(client).getSocialSummary();
curl https://api.hanzo.ai/v1/social/summary \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool social, op get_social_summary — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "social",
         "arguments": {
           "op": "get_social_summary",
           "input": {}
         }
       }
     }'

Social API · All Hanzo APIs · Interactive reference

Was this page useful?