Store or replace the Monid API key.
Write-only.
PUT/api/v1/tools/monid/key
Scopeconfig
Monid is asked about the key first (whoami, then the balance and Monid's own controls when the key may read them; none is billed). A key Monid refuses is not stored (400 key_refused). 409 not_configured on a server that does not offer Monid. Answers the connection, never the key. The timeline records the key ID, action and outcome.
Headers.
Idempotency-Keystring
Retry the same request with the same key. Retry rules.
Body.
valuestringrequired
Your Monid API key. Monid is asked about it first with free calls; a key it refuses is not stored (400 key_refused). Encrypted at rest and never returned. 8 to 512 characters.
Response.
200 OK · JSON object
- 422 validation_failed
- Each schema error appears in
details.