abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 
Beantwortet! Gehe zur Lösung.

Problem with refresh token request

Hello,

 

I'm trying to implement the Viessmann API into my Openhab3 environment.

I read the documentation carefully and all steps until the "refresh token request" worked very well.

My challenge now is that the refresh token call does not work.

 

This is the call I'm trying:

curl -X POST "https://iam.viessmann.com/idp/v2/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=refresh_token&client_id=07...&refresh_token=XX_x..."

 

I always get {"error":"invalid-token-request"} as response, but I can't find the mistake as the call is exactly as described.

 

Can you help me, please?

 

Thanks a Lot.

2 AKZEPTIERTE LÖSUNGEN

Akzeptierte Lösungen

Hi @martmey238 ,

 

The call you are trying should be correct. Please make sure that your client_id and your refresh_token are valid. Maybe it helps to create a new refresh token. If the refresh token is invalid, you get exactly the error you are describing.

 

https://developer.viessmann.com/en/doc/authentication (Section: Refreshing an access token)

 

Let me know if this helps.

 

Best,

 

Michael

Lösung in ursprünglichem Beitrag anzeigen

Hello Michael,

 

I've clicked the wrong button. The topic is unfortunately not resolved.

I've retried the whole procedure and ended again with the same "invalid-token-request" message.

 

Any idea what I can do, please?

 

Thanks a Lot.

 

Martin

Lösung in ursprünglichem Beitrag anzeigen

2 ANTWORTEN 2

Hi @martmey238 ,

 

The call you are trying should be correct. Please make sure that your client_id and your refresh_token are valid. Maybe it helps to create a new refresh token. If the refresh token is invalid, you get exactly the error you are describing.

 

https://developer.viessmann.com/en/doc/authentication (Section: Refreshing an access token)

 

Let me know if this helps.

 

Best,

 

Michael

Hello Michael,

 

I've clicked the wrong button. The topic is unfortunately not resolved.

I've retried the whole procedure and ended again with the same "invalid-token-request" message.

 

Any idea what I can do, please?

 

Thanks a Lot.

 

Martin