Get an entity's current commit id
GET /Platform/entities/{entity_type}/{entity_id}/commit
Get an entity's current commit id.
Uses a targeted HQL select id, commit_id query — no full entity
load — so this is cheap even for large entities.
Path parameters
entity_type: str. Entity class name.entity_id: str. Entity id to look up the current commit for.
Query parameters
branch: optional str. Hilus branch (defaultmain).
Returns
EntityCommitResponse
entity_id: optional str or null. Entity id.commit_id: optional str or null. Current commit; None when the entity is not on the branch.
Example request
curl -X GET "https://api.hilus.ai/Platform/entities/{entity_type}/{entity_id}/commit" \
-H "Authorization: Bearer $HILUS_API_KEY"