# Load clients from CSV text

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

Load clients from CSV text. With apply false (the default) it shows what would be created, changed or skipped and writes nothing.

- Scope: workspace:write
- Mcp: rivier_clients_import
- Graphql: Mutation.workspaceOrgClientImport
- Sdk: workspace.orgClient.import
- Cli: clients import

## Parameters

- `orgId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "csv": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000000
    },
    "apply": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "csv"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: 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/import' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "csv": "string"
}'
```
