---
title: "Register or update a public client"
method: POST
path: "/public/clients"
tags: ["Public Clients"]
---

# Register or update a public client

`POST /public/clients`

## Request

- Base URL: `https://api.distill.io/v2`
- URL: `https://api.distill.io/v2/public/clients`
- Auth: none required

Auth: Public — No authentication required.

## Request body

- object
  - `type` integer
  - `name` string
  - `is_worker` boolean
  - `props` object
    - `os` string
    - `os_version` string
    - `model` string
    - `device_name` string
    - `build_version` string
  - `device_token` string, nullable

## Response `200`

Success

- object
  - `id` string, uuid, required
  - `ts_mod` string, date-time, required
  - `type` integer
  - `name` string
  - `is_worker` boolean
  - `version` string
  - `messages_state` object
  - `props` object
  - `device_token` string, nullable
  - `ts` string, date-time

## Other responses

- `400`: Validation error

---

[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)
