Skip to navigation

Create a product ingest key

Create an API key for this product that can only send traces for its product and read that product’s refused exports and first-trace check (scope TELEMETRY:WRITE). It cannot read other data, manage resources or create keys. Agents in traces sent with it are added to the product. Callable from a signed-in session, or with an API key that has the INGEST_KEYS:CREATE scope. With a name, repeating the request returns the existing key without its secret. Each new key a test API key creates counts toward that test key’s lifetime limit; a repeat that returns an existing key does not.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

productIdstringRequired

Request

This endpoint expects an object.
namestringOptional1-255 characters

Makes the request idempotent for this product: while a key with this name is not revoked, the request returns that key without its secret instead of creating another.

Response

A key with this name already exists; its secret is not returned

createdboolean

true (status 201) when this request created the key; false (status 200) when a key with this name already existed

keyobject
plainKeystringOptional

The secret, present only when created is true. It is returned only once, by the request that created the key.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error