Token with scope clips:edit no more working


Since this working my access_token is no more working, i have :

{"error":"Unauthorized","status":401,"message":"Must provide a valid Client-ID or OAuth token"}

I tried to regen a new Bearer Token

$ curl -X POST ""

it give me :


For now, everything is OK

But then :

$url = '';
$ch = curl_init();
$headers=['Authorization: Bearer TOKEN'];
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);

it give me :

{"error":"Unauthorized","status":401,"message":"Missing clips:edit scope"}

but as we saw before, scope is OK.

Do you have clue to help me please ? :smiley:

That’s not refreshing a token, that’s generating an App Access token. That’s completely different from a User Access token and as such it is not possible to have that scope associated with it.

To refresh a token you should follow the docs on how to use your refresh token to generate a new User Access Token Authentication | Twitch Developers

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.