Broker API HubMenu

Deriv API error code

Deriv API error: Deriv-App-ID header is required for PAT tokens

The error, as text you can copy

Deriv-App-ID header is required for PAT tokens
Kind
API error code
HTTP status
401
API
Deriv

What does Deriv-App-ID header is required for PAT tokens mean on the Deriv API?

A REST request authenticated with a personal access token was sent without the Deriv-App-ID header. Deriv's page gives this as the message of the 401 response.

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 unofficialdevelopers.deriv.comchecked

How do I fix Deriv-App-ID header is required for PAT tokens?

Send the Deriv-App-ID header with every request that uses a personal access token. Deriv's page says the header is not required with an OAuth 2.0 access token.