deft/notes/retrieve_tokens_for_ai_assistant.org
Yann Esposito (Yogsototh) 9f0200c13d
update
2024-06-27 11:09:53 +02:00

433 B

Retrieve Tokens for AI Assistant

tags
source

TL;DR

  1. Call /iroh/oauth2/custom/tokens with body client_id=client-ai-assistant and the user JWT as bearer token in the Authorization header.
  2. From there you could use the access token to call the AI Assistant API.

Working Example

<s