On this page

The branding API controls the appearance of proxy-generated error pages (404, 502, gateway timeout) served within your custom preview domain. Set your logo, product name, support URL, and primary accent color so end-users see your brand - not MIOSA’s.

Base path: /api/v1/tenant/branding


Endpoints

MethodPathDescription
GET/api/v1/tenant/brandingGet current branding
PUT/api/v1/tenant/brandingSet or replace branding
DELETE/api/v1/tenant/brandingReset to MIOSA defaults

Get Branding

GET /api/v1/tenant/branding

Auth

Authorization: Bearer msk_...

Response - 200 OK

{
  "branding": {
    "logo_url": "https://cdn.cliniciq.com/logo.png",
    "name": "ClinicIQ",
    "support_url": "https://cliniciq.com/support",
    "primary_color": "#0066FF"
  }
}

Returns {"branding": null} if no custom branding has been set.


Set Branding

PUT /api/v1/tenant/branding

Replaces all branding fields. Omitted fields are cleared to their defaults.

Request Body

Wrap fields under a "branding" key.

FieldTypeRequiredDescription
logo_urlstringNoHTTPS URL to your logo image
namestringNoProduct or company name
support_urlstringNoLink shown on error pages for user support
primary_colorstringNoHex color for CTA buttons (e.g. "#0066FF")
{
  "branding": {
    "logo_url": "https://cdn.cliniciq.com/logo.png",
    "name": "ClinicIQ",
    "support_url": "https://cliniciq.com/support",
    "primary_color": "#0066FF"
  }
}

Response - 200 OK

{
  "branding": {
    "logo_url": "https://cdn.cliniciq.com/logo.png",
    "name": "ClinicIQ",
    "support_url": "https://cliniciq.com/support",
    "primary_color": "#0066FF"
  }
}

Delete Branding

DELETE /api/v1/tenant/branding

Resets all branding to MIOSA defaults. Error pages will show the MIOSA logo and color scheme.

Response - 200 OK

{
  "branding": null
}

Errors

StatusCodeCause
404tenant not foundTenant does not exist
422validation errorA field failed validation (e.g. invalid URL, invalid hex color)

Examples

Was this helpful?