oauth

Initiate device authorization

post/oauth/device

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/oauth/device
  • Auth: HTTP bearer

Request body

client_idstring required
scopestring

Response

Details of the device code that was created as per https://datatracker.ietf.org/doc/html/rfc8628#section-3.2

device_codestring required
user_codestring required
verification_uristring required
expires_innumber required

Changes

No recorded changes to this operation across all 276 revisions of this API.