API reference · version 1
Account
Check a key and the month's usage.
Who the key is
GET/api/v1/me
The workspace, company, key and member the key acts as, and this month's calls against the plan's limit. Any valid key may call it: use it to test a key.
Example
curl "https://your-workspace.omnibooks.online/api/v1/me" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"workspace": {
"id": "cmabc123def456",
"name": "Gulf Star Trading LLC"
},
"company": {
"id": "cmabc123def456",
"code": "C-0042",
"name": "Gulf Star Trading LLC",
"baseCurrency": "text",
"currencyDecimals": 1,
"countryCode": "OM"
},
"key": "delivery_slot",
"actingAs": {
"userId": "cmabc123def456",
"name": "Gulf Star Trading LLC"
},
"usage": {
"callsThisMonth": 1,
"monthlyLimit": 1
}
}Answer fields
| Field | Type | Description |
|---|---|---|
| workspacerequired | object | |
| workspace.idrequired | string | An OmniBooks id. |
| workspace.namerequired | string | Display name. |
| companyrequired | object | |
| company.idrequired | string | An OmniBooks id. |
| company.coderequired | string | Left out = the next free number. |
| company.namerequired | string | Display name. |
| company.baseCurrencyrequired | string | |
| company.currencyDecimalsrequired | number | |
| company.countryCoderequired | string | ISO 3166 two-letter code. |
| keyrequired | object | |
| key.idrequired | string | An OmniBooks id. |
| key.namerequired | string | Display name. |
| key.moderequired | enum | one of LIVE, TEST |
| key.scopesrequired | array of string | |
| actingAsrequired | object | |
| actingAs.userIdrequired | string | An OmniBooks id. |
| actingAs.namerequired | string | Display name.may be null |
| usagerequired | object | |
| usage.callsThisMonthrequired | number | |
| usage.monthlyLimitrequired | number | may be null |