View Endpoints and View Hardware Inventory permissions

How do you assign the View Endpoints and View Hardware Inventory permissions on accounts that run API queries?

Is this a question about BigFix Inventory? If so, you assign permissions to all BFI accounts in the BFI User Interface, while logged on as an Administrator. The built-in role of Auditor has these permissions, or you could create a custom role, and assign the API account to that role.