v24

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

Oauth Callback

Handle OAuth callback from HuggingFace.

This is where HF redirects after user authorizes. Shows a success/error page that the user can close.

get/api/hf-auth/oauth/callback

Query parameters

codestring nullable
statestring nullable
errorstring nullable
error_descriptionstring nullable

Response

Successful Response

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