---
title: "Issue a source key"
method: POST
path: "/v1/sources/{id}/keys"
tags: ["Sources"]
---

# Issue a source key

`POST /v1/sources/{id}/keys`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/sources/{id}/keys`
- Auth: HTTP bearer

Issues an ingest-only key for an API source. The key carries no scope: it reaches no other `/v1` route and writes into its own source only. The raw key is in this answer only. Enterprise workspaces cap `expires_at` at 90 days. An owner manages every key of the source; anyone else only the keys they issued. In an enterprise workspace only Talonic staff issue and manage keys. Also answers at `/v1/sources/api/{id}/keys…`.

**Scope:** `team:write`. A key holding only the legacy `write` scope does not satisfy it.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `expires_at` string, date-time: When the key stops working.

## Response `201`

The new key with its raw value.

- SourceKeyMinted
  - `key` SourceKey, required
    - `id` string, uuid
    - `name` string
    - `masked_prefix` string: The first characters of the key, e.g. `tlnc_live_ab...`.
    - `scopes` string[]
    - `is_active` boolean
    - `last_used_at` string, date-time, nullable
    - `usage_count` integer
    - `created_at` string, date-time, nullable
    - `revoked_at` string, date-time, nullable
    - `expires_at` string, date-time, nullable
  - `api_key` string, required: The raw key. Returned only here; store it now.
  - `endpoint_url` string, uri: Where the key sends files (`/v1/ingest`).
  - `warning` string
  - `links` object
    - `keys` string

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/sources/:id/keys/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
