service-accounts

Rotate service-account token

Invalidate an existing token and generate a new one with the same permissions. The old token will stop working immediately.

post/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}/rotate

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}/rotate
  • Auth: HTTP bearer

Path parameters

namestring required
serviceAccountIdstring required
tokenIdstring required

Response

Rotated token

tokenstring required

The new access token

Changes

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