# Add a client (a name is unique among the organization's active clients)

`POST /org/{orgId}/clients` · Rivier · workspace

Add a client (a name is unique among the organization's active clients). Editor and above.

- Scope: workspace:write
- Mcp: rivier_clients_create
- Graphql: Mutation.workspaceOrgClientCreate
- Sdk: workspace.orgClient.create
- Cli: clients create

## Parameters

- `orgId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "legalName": {
      "type": "string",
      "maxLength": 200,
      "default": ""
    },
    "email": {
      "anyOf": [
        {
          "type": "string",
          "format": "email",
          "maxLength": 254
        },
        {
          "type": "string",
          "const": ""
        }
      ],
      "default": ""
    },
    "phone": {
      "type": "string",
      "maxLength": 60,
      "default": ""
    },
    "address": {
      "type": "string",
      "maxLength": 1000,
      "default": ""
    },
    "country": {
      "type": "string",
      "maxLength": 2,
      "pattern": "^([A-Za-z]{2})?$",
      "default": ""
    },
    "taxId": {
      "type": "string",
      "maxLength": 60,
      "default": ""
    },
    "registration": {
      "type": "string",
      "maxLength": 60,
      "default": ""
    },
    "currency": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-z]{3}$"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "language": {
      "type": "string",
      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
      "maxLength": 20,
      "default": "en"
    },
    "paymentDays": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 365
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "notes": {
      "type": "string",
      "maxLength": 4000,
      "default": ""
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 40
      },
      "maxItems": 20,
      "default": []
    },
    "projectId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/org/{orgId}/clients' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
```
