Skip to content

observe_keys_create

Create an ingest credential for one environment: a Bearer OTLP token (kind "ingest") or a public Sentry DSN (kind "dsn").

Tool

observe_keys_create

Create an ingest credential for one environment: a Bearer OTLP token (kind "ingest") or a public Sentry DSN (kind "dsn").

Create an ingest credential for one environment: a Bearer OTLP token (kind "ingest") or a public Sentry DSN (kind "dsn"). The credential is returned once and cannot be retrieved again.

Behavior

HTTP
POST /observe/keys

Arguments

NameTypeRequiredDescription
kindstringingest (default) issues a Bearer OTLP token; dsn issues a public Sentry key returned as a full DSN
namestringOptional human label for the key, e.g. "ci" or "backend pods"
environmentstringEnvironment this key sends telemetry for, e.g. "staging" or "production"

Response

FieldTypeAlwaysDescription
idstringIdentifier of the ingest key
dsnstringThe full DSN, for kind "dsn" — shown only here, store it now
kindstringingest = Bearer OTLP key; dsn = public Sentry key that ships in client code
namestringHuman label given at creation, or null
tokenstringThe full ingest token, for kind "ingest" — shown only here, store it now
prefixstringFirst characters of the token, shown for recognition
createdAtstringISO 8601 creation timestamp
revokedAtstringISO 8601 revocation timestamp, or null if active
environmentstringEnvironment the key writes telemetry for

Try it

Create an ingest credential for one environment: a Bearer OTLP token (kind "ingest") or a public Sentry DSN (kind "dsn").

When to use

Create an ingest credential for one environment: a Bearer OTLP token (kind "ingest") or a public Sentry DSN (kind "dsn"). The credential is returned once and cannot be retrieved again.

Example

Ask your agent something like this:

Create an ingest credential for one environment: a Bearer OTLP token (kind "ingest") or a public Sentry DSN (kind "dsn").

The agent will invoke observe_keys_create with these arguments:

{
  "environment": "<environment>"
}

Esc

Start typing to search the docs.

navigateselect