Retrieve user networks configuration

A user should be able to retrieve his networks configuration, so he can see what are the markets he has configured to receive alerts on.

Note

The user should be logged in.

GET https://api.tradingpartners.ai/api/v1/users/networks

Get users/networks response object

Attributes


telegram - object
Telegram configuration

enabled - boolean
Do you want to send alerts to Telegram.

apiKey - string max:255
API Key used for sending alerts to Telegram.

chatID - string max:255
ID of the chat you want to push the alert to.


instagram - object
Instagram configuration

enabled - boolean
Do you want to send alerts to Instagram.

accessToken - string max:255
Access-token to consume Instagram APIs

Authorization header

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXN0IjoidG9rZW4iLCJmb3IiOiJ1c2VyIiwid2l0aCI6ImdyYWRlIiwiZnVsbCI6dHJ1ZX0.sWNz-Z0oGGWoSwaVlOGyzCQdYCWJQmKSSFvZIJzchZw

Get users/networks response object

{
    "telegram": {
        "enabled": true,
        "apiKey": "1234567890",
        "chatID": "1234567890"
    },
    "instagram": {
        "enabled": false,
        "accessToken": ""
    }
}