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

21 lines
433 B
Org Mode

:PROPERTIES:
:ID: 7d934841-a145-4833-8389-18ba449a6de7
:END:
#+title: Retrieve Tokens for AI Assistant
#+Author: Yann Esposito
#+Date: [2024-02-09]
- 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