OpenapiFlags
Returns the caller's flag change log newest-first: every create, update and…
Returns the caller's flag change log newest-first: every create, update and delete, with the actor and the time.
GET /v1/flags/activity
| Address | https://api.hanzo.ai/v1/flags/activity |
| Method | GET |
| Operation | get_flags_activity |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the caller's flag change log newest-first: every create, update and delete, with the actor and the time.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | — | Limit caps the rows returned. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | activityOut | ok |
200 body — 7 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | ActivityRow[] | — | Data is the change log newest-first: who created, updated or deleted which key, when. |
data[].action | body | string | — | Action is one of created, updated, deleted. |
data[].actor | body | string | — | Actor is the email of the principal who made the change. |
data[].at | body | string | — | At is when the change was made, RFC 3339 UTC. |
data[].detail | body | string | — | Detail is free-form context about the change. |
data[].id | body | integer | — | ID is the log's own sequence number, rising with each entry. |
data[].key | body | string | — | Key is the flag that changed. |
Failure carries the platform error shape — see Errors.
Examples
hanzo flags activityimport { Configuration, FlagsApi } from 'hanzoai';
const api = new FlagsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getFlagsActivity();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import FlagsApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = FlagsApi(client).get_flags_activity()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.FlagsAPI.GetFlagsActivity(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, flags_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = flags_api::get_flags_activity(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.FlagsApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new FlagsApi(client).getFlagsActivity();curl https://api.hanzo.ai/v1/flags/activity \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches flags through the flags tool, which names its 8 operations with its own verbs — this one among them, under a name only the door 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": "get_flag_activity"
}
}
}'How is this guide?