Accounts
Accounts
The top-level object for all other data. It is foundational for upserting Locations. The unique_identifier for accounts is necessary for upserting Locations.
Endpoints
List all accounts
Returns a list of accounts you have access to. The accounts are returned sorted alphabetically by name.
Parameters
limit
(optional)integerLimits the number of accounts returned.
Returns
A dictionary with a data property that contains an array of up to limit accounts. Each entry in the array is a separate account object. If no more accounts are available, the resulting array will be empty.
GET
/v1/accounts
curl -G https://api.mogulbridge.com/v1/accounts \ -u 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: \ -d limit=100
RESPONSE
{
"object": "list",
"url": "/v1/accounts",
"data": [
{
"inserted_at": "2023-11-13T23:12:32Z",
"name": "Account 1",
"unique_identifier": "acct_unique_identifier1",
"updated_at": "2024-01-08T22:58:57Z"
},
{
"inserted_at": "2023-11-14T16:17:43Z",
"name": "Account 2",
"unique_identifier": "acct_unique_identifier2",
"updated_at": "2024-01-08T22:30:59Z"
}
]
}