Authentication & authorization#
In order to invoke MetaApi REST API you have to provide an authorization token via auth-token header. An API request will produce error 401 if for some reason the token specified in auth-token header turned out to be invalid and the authorization failed.
The token can be retrieved via MetaApi Web application or Profile REST API.
Alternatively you can use authorization token stored in
accessToken field of the MetatraderAccount model. This token is permitted to access single account.