API Reference > imodelhub-client > iModelHubClient > InstanceIdQuery > byId byId Method Query single instance by its id. byId(id: string): InstanceIdQuery throws IModelHubClientError with IModelHubStatus.UndefinedArgumentError or IModelHubStatus.InvalidArgumentError if id is undefined or it is not a valid GuidString value. Parameter Type Description id string Id of the instance to query. Returns - InstanceIdQuery This query. Defined in clients/imodelhub/src/imodelhub/HubQuery.ts Line 60 Last Updated: 11 June, 2024