;

Get all business units

This API retrieves a list of all business units associated with your account. A business unit typically represents a division, department, or entity within an organization.
GET https://apiv3.imocha.io/v3/accounts/business-units
  • Docs
  • Try it
Response
Field Type Description
businessUnitId Integer64 Unique identifier for the business unit.
businessUnitName String Name of the business unit
createdOn DateTime Timestamp indicating when the business unit was created (YYYY-MM-DDTHH:mm:ss.sss).
Example API endpoint

URL 1: /v3/accounts/business-units

Successful response

Status 200 OK

                        
Response
{ "businessUnits": [ { "businessUnitId": 115231, "businessUnitName": "Default BU 1", "createdOn": "2023-02-28T04:15:53.103" }, { "businessUnitId": 115232, "businessUnitName": "Default BU 2", "createdOn": "2023-02-28T04:15:53.103" }, { "businessUnitId": 140867, "businessUnitName": "Engineering", "createdOn": "2024-07-12T06:37:04.14" } ], "count": 3 }
Failed response

Status 401 Access Denied

Response
{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." }
  • Response Body