---
title: "Create Ingestion Key"
method: POST
path: "/lens/tracing/keys"
tags: ["Lens"]
---

# Create Ingestion Key

`POST /lens/tracing/keys`

## 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/tracing/keys`
- Auth: API key in header `x-litellm-api-key`

## Request body

- IngestionKeyRequest
  - `name` string
  - `team_id` string
  - `expires_at` string, date-time, nullable

## Response `200`

Successful Response

- IngestionKeyCreated
  - `key` string, required
  - `record` IngestionKey, required
    - `id` string, required
    - `name` string, required
    - `tenant` IngestionTenant, required
      - `team_id` string
      - `user_id` string, required
      - `org_id` string
      - `api_key_hash` string, required
    - `created_at` string, date-time, required
    - `expires_at` integer, nullable, required
  - `active` 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/tracing/keys/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)
