Account

Create an API key

Changed on

Mints a new scoped key for the caller's own customer. The raw key value is returned ONCE and is never retrievable again — store it immediately. Requires the write scope. In an enterprise workspace only Talonic staff may mint keys: a key whose creator is not Talonic staff is refused with 403 (INSUFFICIENT_PERMISSIONS), and keys minted there live at most 90 days.

post/v1/account/keys

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Request body

object required
name, string required
scopes, string[]

Subset of: extract, read, write, operations, billing, delivery, usage, records_write. Defaults to the calling key's own scopes. Every requested scope must already be held by the calling key; requesting one it lacks is rejected with 403 (scope_not_grantable) — a key can only ever narrow its own privilege on a newly minted key, never widen it. usage, records_write and billing are granted de novo only through owner+ key management, never through self-serve key creation.

expires_at, string date-time

When the key stops working (ISO 8601, in the future; 400 otherwise). Omitted: the key does not expire, except in an enterprise workspace, where it defaults to 90 days from creation and may not be set later than that.

Example request

{
  "name": "ci-pipeline"
}

Response

Newly created key. The key field is shown only here.

object required
id, string uuid
name, string
key, string

The raw secret. Shown once. Never returned again.

masked_prefix, string
scopes, string[]
created_at, string date-time
expires_at, string date-time nullable
warning, string

Example response

{
  "key": "tlnc_0123456789abcdef0123456789abcdef"
}

Changes

    • info

      added the new optional request property expires_at

    • info

      added the optional property expires_at to the response with the status