Get Token
AI-generatedSummary
Retrieve an Entra Agent ID access token, optionally caching it for reuse, supporting on-behalf-of user tokens for delegated authentication.
Inputs
- Enable Token Cache — When true (default), cache tokens securely to reuse before expiry; when false, always fetch a fresh token and clear any cached tokens.
Output shape
a list of items matching input count (or a single item if no inputs), each including JSON fields agent_id_access_token (the bearer token string), cached (boolean if token was retrieved from cache), and expires_in (token validity in seconds).
Tokens are encrypted in cache and refreshed when near expiry. Supports caching per user token when on-behalf-of tokens are used, otherwise caches a single token. The output token may be a client credential token or a user delegated token depending on inputs and credentials.