deft/notes/retrieve_tokens_for_ai_assistant.org

22 lines
433 B
Org Mode
Raw Permalink Normal View History

2024-06-27 09:09:53 +00:00
: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