Saltar al contenido

Create an org branding

Módulo Settings

POST/org-brandingorgBrandings.create

White label brand settings for Atlas, Gateway, email and Compass. Creates an org branding. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.

  • Requiere la capacidad org.white_label.write.
  • Alcances de OAuth: org.
  • Envía el encabezado Idempotency-Key. Una repetición con la misma clave devuelve la respuesta original.
  • Estados de error: 400, 401, 409, 422, 429. Los errores son detalles de problema RFC 9457.

Cuerpo de la solicitud: OrgBrandingCreate

orgBrandings.create: OrgBrandingCreate
CampoTipoObligatorioDescripción
display_namestring | nullNoBrand display name.Restricciones: length 1 to 300
logo_light_pathstring | nullNoLogo for light themes: object path in the org-brand bucket, starting with the org id.Restricciones: length 1 to 1024
logo_dark_pathstring | nullNoLogo for dark themes: object path in the org-brand bucket.Restricciones: length 1 to 1024
favicon_pathstring | nullNoFavicon: object path in the org-brand bucket.Restricciones: length 1 to 1024
app_icon_pathstring | nullNoApp icon: object path in the org-brand bucket.Restricciones: length 1 to 1024
accent_hexstring | nullNoAccent color as uppercase #RRGGBB, replacing accent-default in every theme; null keeps the platform accent.Restricciones: pattern ^#[0-9A-F]{6}$
neutral_tint_hexstring | nullNoOptional neutral tint as uppercase #RRGGBB.Restricciones: pattern ^#[0-9A-F]{6}$
font_familystring | nullNoFont family from the approved list; null keeps the platform font.Restricciones: length 1 to 300
radius_scale"Compact" | "Default" | "Rounded"NoCorner radius scale.
email_sender_namestring | nullNoSender name on emails sent for the org.Restricciones: length 1 to 300
support_emailstring (email) | nullNoSupport address shown on branded surfaces.
legal_entity_namestring | nullNoLegal entity named on generated documents and emails.Restricciones: length 1 to 300
suppress_powered_bybooleanNoTrue hides Powered by XOS; it takes effect only while the plan includes white label.
{
  "display_name": "Northwind Live",
  "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "accent_hex": "#1F6FEB",
  "neutral_tint_hex": "#1F6FEB",
  "font_family": "Inter",
  "radius_scale": "Compact",
  "email_sender_name": "Northwind Live",
  "support_email": "alex.rivera@northwindlive.example",
  "legal_entity_name": "Northwind Live LLC",
  "suppress_powered_by": false
}

Respuesta 201: OrgBranding

orgBrandings.create: OrgBranding
CampoTipoObligatorioDescripción
idstring (uuid)SíIdentifier of the org branding.
org_idstring (uuid)SíIdentifier of the owning organization, derived from the parent row and never accepted from the caller.
created_atstring (date-time)SíWhen the row was created.
created_bystring (uuid) | nullSíIdentifier of the person who created the row; null when a seed, platform or system process created it.
updated_atstring (date-time)SíWhen the row was last updated.
updated_bystring (uuid) | nullSíIdentifier of the person who last updated the row; null when a seed, platform or system process updated it.
display_namestring | nullSíBrand display name.Restricciones: length 1 to 300
logo_light_pathstring | nullSíLogo for light themes: object path in the org-brand bucket, starting with the org id.Restricciones: length 1 to 1024
logo_dark_pathstring | nullSíLogo for dark themes: object path in the org-brand bucket.Restricciones: length 1 to 1024
favicon_pathstring | nullSíFavicon: object path in the org-brand bucket.Restricciones: length 1 to 1024
app_icon_pathstring | nullSíApp icon: object path in the org-brand bucket.Restricciones: length 1 to 1024
accent_hexstring | nullSíAccent color as uppercase #RRGGBB, replacing accent-default in every theme; null keeps the platform accent.Restricciones: pattern ^#[0-9A-F]{6}$
neutral_tint_hexstring | nullSíOptional neutral tint as uppercase #RRGGBB.Restricciones: pattern ^#[0-9A-F]{6}$
font_familystring | nullSíFont family from the approved list; null keeps the platform font.Restricciones: length 1 to 300
radius_scale"Compact" | "Default" | "Rounded"SíCorner radius scale.
email_sender_namestring | nullSíSender name on emails sent for the org.Restricciones: length 1 to 300
support_emailstring (email) | nullSíSupport address shown on branded surfaces.
legal_entity_namestring | nullSíLegal entity named on generated documents and emails.Restricciones: length 1 to 300
suppress_powered_bybooleanSíTrue hides Powered by XOS; it takes effect only while the plan includes white label.
{
  "id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "org_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "created_at": "2026-10-08T14:30:00Z",
  "created_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "updated_at": "2026-10-08T14:30:00Z",
  "updated_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "display_name": "Northwind Live",
  "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "accent_hex": "#1F6FEB",
  "neutral_tint_hex": "#1F6FEB",
  "font_family": "Inter",
  "radius_scale": "Compact",
  "email_sender_name": "Northwind Live",
  "support_email": "alex.rivera@northwindlive.example",
  "legal_entity_name": "Northwind Live LLC",
  "suppress_powered_by": false
}

Ejemplos de código

curl -X POST "$XOS_BASE_URL/org-branding" \
  -H "Authorization: Bearer $XOS_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"display_name":"Northwind Live","logo_light_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","logo_dark_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","favicon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","app_icon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","accent_hex":"#1F6FEB","neutral_tint_hex":"#1F6FEB","font_family":"Inter","radius_scale":"Compact","email_sender_name":"Northwind Live","support_email":"alex.rivera@northwindlive.example","legal_entity_name":"Northwind Live LLC","suppress_powered_by":false}'
const { data } = await xos.orgBrandings.create({
    "display_name": "Northwind Live",
    "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "accent_hex": "#1F6FEB",
    "neutral_tint_hex": "#1F6FEB",
    "font_family": "Inter",
    "radius_scale": "Compact",
    "email_sender_name": "Northwind Live",
    "support_email": "alex.rivera@northwindlive.example",
    "legal_entity_name": "Northwind Live LLC",
    "suppress_powered_by": false
  });
response = xos.org_brandings.create({"display_name": "Northwind Live", "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "accent_hex": "#1F6FEB", "neutral_tint_hex": "#1F6FEB", "font_family": "Inter", "radius_scale": "Compact", "email_sender_name": "Northwind Live", "support_email": "alex.rivera@northwindlive.example", "legal_entity_name": "Northwind Live LLC", "suppress_powered_by": False})
xos org-brandings create --data '{"display_name":"Northwind Live","logo_light_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","logo_dark_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","favicon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","app_icon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","accent_hex":"#1F6FEB","neutral_tint_hex":"#1F6FEB","font_family":"Inter","radius_scale":"Compact","email_sender_name":"Northwind Live","support_email":"alex.rivera@northwindlive.example","legal_entity_name":"Northwind Live LLC","suppress_powered_by":false}'