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

# Create client

`POST /clients`

## Request

- Base URL: `https://api.distill.io/v2`
- URL: `https://api.distill.io/v2/clients`
- Auth: one of:
  - API key in cookie `connect.sid`
  - HTTP bearer
  - API key in query parameter `api_key`

Auth: Write — Workspace member with write access or higher.

## Request body

- object
  - `name` string, required
  - `type` integer, required
  - `info` string, nullable
  - `state` 0 | 90 | 100
  - `props` object

## Response `200`

Success

- object
  - `id` string, uuid, required
  - `name` string, required
  - `type` integer, required
  - `owner_id` string, uuid, nullable
  - `workspace_id` string, uuid, nullable
  - `info` string, nullable
  - `state` integer, nullable
  - `version` string, nullable
  - `is_worker` boolean
  - `ts` string, date-time, nullable, required
  - `ts_mod` string, date-time, nullable, required
  - `client_ts_mod` string, date-time, nullable
  - `device_token` string, nullable
  - `props` object, nullable
    - `instance` object
      - `id` string

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/distill/apis/distill-io-api-v2.md) - [All operations](https://skmtc.dev/distill/apis/distill-io-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/distill/apis/distill-io-api-v2/revisions/c55722ccfe14?raw)
