nyx_exchange_identity
Exchange an agent's NyxID identity for a delegated access token to call APIs on behalf of a user without holding long-lived credentials.
Instructions
Exchange the agent's NyxID identity for a delegated access token bound to a downstream OIDC service (RFC 8693 token exchange). Lets the agent call APIs on behalf of a specific user without holding that user's long-lived credentials. The returned token carries the original user's identity claims while remaining auditable as an agent action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audience | Yes | Target downstream service identifier (resource URI or audience claim) the exchanged token should be valid for. | |
| scope | No | Space-separated OAuth scopes to request on the exchanged token. Must be a subset of what the subject_user has approved for this agent. | |
| subject_user | Yes | User ID or email of the principal whose identity the agent is acting on behalf of. Must already exist in NyxID and have granted the agent delegation rights. | |
| ttl_secs | No | Requested token lifetime in seconds. Bounded by the audience's configured maximum (typically 900-3600 seconds). |