---
title: "Register Worker"
method: POST
path: "/lens/workers/register"
tags: ["Lens"]
---

# Register Worker

`POST /lens/workers/register`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/lens/workers/register`
- Auth: API key in header `x-litellm-api-key`

## Request body

- WorkerName
  - `analysis_key_id` string, required
  - `name` string
  - `managed` boolean

## Response `200`

Successful Response

- WorkerCreated
  - `image` string, required
  - `worker` Worker, required
    - `analysis_key_id` string, nullable
    - `id` string, required
    - `name` string, required
    - `scope` Scope, required
      - `team_id` string
      - `api_key_hash` string
      - `all_teams` boolean
    - `last_seen` string, date-time, required
    - `revoked` boolean
  - `token` string, required
  - `managed` boolean

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/lens/workers/register/post.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
