---
title: "Create a client"
method: POST
path: "/v1/clients"
tags: ["Clients"]
---

# Create a client

`POST /v1/clients`

## Request

- Base URL: `https://api.merlonix.com`
- URL: `https://api.merlonix.com/v1/clients`
- Auth: HTTP bearer

Create a client bucket to group assets. Requires a `write`-scoped key. The `slug` is derived from the name when omitted and must be unique per tenant (`409` on collision).

## Request body

- ClientCreate: Request body for creating a client bucket (TD-943).
  - `name` string, required
  - `slug` string: URL-safe slug; derived from name when omitted. Unique per tenant.
  - `logo_url` string, uri: https logo URL.
  - `brand_color` string: Hex color (e.g. #1a2b3c).

## Response `201`

The created client.

- Client
  - `id` string, uuid, required
  - `tenant_id` string, uuid, required
  - `slug` string, required
  - `name` string, required
  - `logo_url` string, nullable, required
  - `brand_color` string, nullable, required
  - `is_unassigned` boolean, required: True for the catch-all Unassigned bucket.
  - `asset_count` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Error — canonical envelope with a trace_id.
- `401`: Error — canonical envelope with a trace_id.
- `403`: Error — canonical envelope with a trace_id.
- `409`: Error — canonical envelope with a trace_id.
- `429`: Error — canonical envelope with a trace_id.

---

[API](https://skmtc.dev/merlonix/apis/merlonix-public-api.md) · [All operations](https://skmtc.dev/merlonix/apis/merlonix-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/merlonix/apis/merlonix-public-api/revisions/2192584bdfcd?raw)
