Implement the expand-id API.