Home > @opengovsg/logging > SensitiveEndpointAccessedInput > keyId
SensitiveEndpointAccessedInput.keyId property
The acting principal — the API key/credential id used to make the call, a reference and never the key value. Required so no API-usage line is anonymous; pair with userId when the key is user-bound. Emitted as context.key_id.
Signature:
typescript
keyId: string;