AuthContextRecord with a masked token preview. Pass the returned auth_context_id in subsequent agent invocations instead of a raw token — the full token is never surfaced again.
Request Body
Describes how the credential is presented to the provider. The
mode field is required:The raw credential to encrypt and store. This value is never returned after registration.
Optional expiry timestamp for this credential. The node may reject invocations that reference an expired auth context.
Response
Returns201 Created with an AuthContextRecord.
Internal reference to the encrypted secret in the secret broker. Not needed for invocations.
A masked preview of the stored token (e.g.
"sk-...••••••"). The full token is never returned.