APIAccount & operationsCompanies
List company notification preferences (per-event)
Phase 3.3. Returns rows from `company_notification_events` for the caller's company. Auto-seeds defaults (all events enabled, caller's email as the only recipient) on first read.
Authorization
bearerAuth AuthorizationBearer <token>
Supabase JWT bearer token for dashboard / user-scoped endpoints. Role-derived scopes: ROOT/ADMIN → full admin; USER → read-only treasury.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/auth/companies/notification-preferences"{
"success": true,
"timestamp": "2019-08-24T14:15:22Z",
"data": null,
"message": "string",
"pagination": {
"total": 0,
"limit": 1,
"offset": 0,
"has_more": true,
"cursors": {
"first": "string",
"last": "string"
}
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}Ensure company accounts are fully provisioned
Previous Page
Search opt-in companies (rolodex directory)
Phase 3.4. Returns up to 20 companies whose name matches `q` AND have `discoverable=true` AND are brale_status_complete for the active environment. Caller's own company must be brale_status_complete for this env. Excludes the caller's company.