Organisation

The organisation itself: its record, name and type (MSP or company), whether Bramble support may access it, and what the signed-in admin is allowed to manage.

MethodPathSummary
GET/v1/admin/isadminCan the caller use the Admin Centre?
GET/v1/admin/tenant/infoGet the organisation
PATCH/v1/admin/tenant/support-accessAllow or stop Bramble support access
PATCH/v1/admin/tenant/nameRename the organisation
GET/v1/admin/tenant/monitoring/summaryHealth summary for the Admin Centre home page
PATCH/v1/admin/tenant/org-typeSet the organisation type

#Can the caller use the Admin Centre?

GET/v1/admin/isadmin

Returns whether the signed-in person can open the Admin Centre and which sections their roles unlock. Use it to check an API key's reach.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/isadmin
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).

Response 200

Errors

StatusMessage
403Insufficient permissions

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/admin/isadmin' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Get the organisation

GET/v1/admin/tenant/info

Get the caller's tenant record. Requires the GLOBAL_ADMIN role. Returns the full tenants row (SELECT *) for the caller's own tenant.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/info
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Response 200

FieldTypeDescription
tenantany
Example response
JSON
{
  "tenant": null
}

Errors

StatusMessage
404Tenant not found

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/info' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Allow or stop Bramble support access

PATCH/v1/admin/tenant/support-access

Allow or stop Bramble support access to this tenant. "Requires the GLOBAL_ADMIN role. Body: enabled (boolean)."

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/support-access
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
enabledbooleantrue lets Bramble support sign in to help; false stops it.

Response 200

FieldTypeDescription
successboolean
support_accessboolean
Example response
JSON
{
  "success": true,
  "support_access": false
}

Errors

StatusMessage
400enabled must be true or false

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/support-access' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true}'

#Rename the organisation

PATCH/v1/admin/tenant/name

Set the tenant's organisation name. Requires the GLOBAL_ADMIN role. name is required, max 100 characters.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/name
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
namestringThe organisation's name, up to 100 characters.

Response 200

FieldTypeDescription
successboolean
namestring
Example response
JSON
{
  "success": true,
  "name": "Example name"
}

Errors

StatusMessage
400Organisation name is required
400Organisation name must be 100 characters or fewer

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/name' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example name"}'

#Health summary for the Admin Centre home page

GET/v1/admin/tenant/monitoring/summary

get:

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/monitoring/summary
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Permission (any of): audit.view.

Response 200

FieldTypeDescription
signInsobject
signIns.successany
signIns.failureany
signIns.interruptedany
signIns.usersarray of any
eventsobject
events.totalinteger
events.adminany
events.failedany
sessionsobject
sessions.activeboolean
Example response
JSON
{
  "signIns": {
    "success": null,
    "failure": null,
    "interrupted": null,
    "users": []
  },
  "events": {
    "total": 3,
    "admin": null,
    "failed": null
  },
  "sessions": {
    "active": true
  }
}

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/monitoring/summary' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Set the organisation type

PATCH/v1/admin/tenant/org-type

msp or company. Decides which apps are switched on by default in the launcher.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/org-type
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
org_typerequiredstring: "msp" | "company"

Response 200

FieldTypeDescription
successboolean
Example response
JSON
{
  "success": true,
  "…await svc.listForTenant(": "…"
}

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/org-type' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"org_type":"msp"}'