Skip to content

Read account by id


Returns MetaTrader account belonging to the current user by id

GET /users/current/accounts/:accountId

For more information see swagger documentation


Name Type Required Description
auth-token string Yes Authorization token. See Authentication and authorization

Path parameters

Name Type Required Description
accountId string Yes MetaTrader account id to retrieve


  • 200 - MetaTrader account returned. Response schema: MetatraderAccount
  • 401 - Authorization failed. Response schema: Error
  • 404 - MetaTrader account not found. Response schema: Error


Example request:

curl -X GET --header 'Accept: application/json' --header 'auth-token: token' ''

Example response:

  "_id": "1eda642a-a9a3-457c-99af-3bc5e8d5c4c9",
  "login": "50194988",
  "name": "mt5a",
  "server": "ICMarketsSC-Demo",
  "provisioningProfileId": "f9ce1f12-e720-4b9a-9477-c2d4cb25f076",
  "magic": 123456,
  "application": "MetaApi",
  "connectionStatus": "DISCONNECTED",
  "state": "DEPLOYED",
  "type": "cloud",
  "accessToken": "2RUnoH1ldGbnEneCoqRTgI4QO1XOmVzbH5EVoQsA"