v24

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-017946115.2 KB

Begin Oauth

One-shot OAuth entry point for the mobile setup flow.

Creates a session and 302-redirects the browser straight to Hugging Face's authorize page, so the phone only has to open this single URL. The existing /oauth/callback finishes the job (exchange → store token → start relay).

get/api/hf-auth/oauth/begin

Response

Successful Response

{"stackTrail":"paths:/api/hf-auth/oauth/begin:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}