List the entities on each branch
GET /Platform/entities/branches
List the entities on each branch. What is actually ON a branch: entity types and ids, not just names.
A branch listing answers "which branch names exist"; this answers "what would be merged or deleted" — the relevant question before promoting or cleaning up a branch.
Only entities with a commit ON the branch are listed. Entities merely visible through main fallback are not, because those are exactly the ones a branch operation must NOT touch.
Branches that exist only in branch_metadata (created but never
committed to, including time-based branches) are still listed, with
entity_count = 0 — matching the branch-name listing so a branch
can't silently vanish from one view but not the other.
Query parameters
branch: optional str. Only report this branch. Omit for every branch.entity_types: optional str. Restrict the listing to these entity types.include_entities: optional bool. Include the per-entity id list. Set False for just the per-type counts on a large branch.limit: optional int. Max entity rows per branch inentities(counts are always exact).truncatedflags when this cut in.
Returns
BranchContentsResponse
branches: optional List[dict]. One per branch: branch, time_based, base_timestamp, entity_count, types (count per entity type), entities (entity_type, entity_id, commit_id, committed_at: when the branch last changed it), repos (repo_id, sha: the code heads on the branch).truncated: optional bool. True when an entities list was cut off by limit (counts are always complete).
Example request
curl -X GET "https://api.hilus.ai/Platform/entities/branches" \
-H "Authorization: Bearer $HILUS_API_KEY"