create_ingest_key
Create an ingest-scoped LastPing key bound to one monitor, allowing it to send traces, metrics, logs, and pings for that monitor only. The plaintext key is returned once for secure storage.
Instructions
Requires an API key with the write scope or higher. Create a tracing key for one monitor: an ingest-scoped LastPing key bound to that monitor. It can send traces, metrics, logs and pings for that one monitor and nothing else; it cannot read or change anything in the account, and every REST call refuses it. This is the credential get_trace_setup's steps need. The plaintext key is returned ONCE: write it straight into the git-ignored file or helper script the set-up names, never into committed code, and never echo it back to the person, in a reply, a commit message or a log. Never use your own LastPing API key as an exporter's credential instead. Omit expires_at for a 90-day key, capped at your own key's expiry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional label for the key. Defaults to "Tracing:" followed by the monitor's name. | |
| expires_at | No | Optional RFC 3339 expiry, e.g. "2026-12-31T00:00:00Z". Omit for a 90-day key, capped at the creating key's own expiry. | |
| monitor_id | Yes | Monitor UUID the key is bound to (from create_monitor or list_monitors). |