Broker API HubMenu

OAuth 2.0 error code

OAuth 2.0 error code: unsupported_grant_type

As text you can copy

unsupported_grant_type
Kind
Error code
Where you meet it
In the error field of a reply, or in the WWW-Authenticate header
Read from
RFC 6749, The OAuth 2.0 Authorization Framework, section 5.2

What does unsupported_grant_type mean in OAuth 2.0?

The authorisation server does not support the authorisation grant type requested.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Independent and unofficialrfc-editor.orgchecked

What it means in trading API work

The grant_type value in the token request is one this provider does not offer at all, or it is misspelt.

This part is this site's own explanation, written for people learning to call a trading API. It is not part of the source cited above and it describes no particular broker.

What should I do about unsupported_grant_type?

Check the grant_type value against the list the API documents and correct it.

This page is an independent explanation in plain words. The definition itself is in the source it was read from, which is the authority if the two ever differ.