Skip to content

User Profile

Ventura’s EaseAPI user profile API focuses on basic profile information about a user, such as their name and address for simplicity and clarity. However, it does not provide financial details like token balances or transaction history.

Sample code

curl --location 'https://easeapi.venturasecurities.com/user/v1/profile' \
--header 'x-client-id: AA0605' \
--header 'x-app-key: 8ab5rt7yp2lm9qw4s1ex' \
--header 'authorization: Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
import requests

url = "https://easeapi.venturasecurities.com/user/v1/profile"
payload = {}
headers = {
    'x-client-id': 'AA0605',
    'x-app-key': '8ab5rt7yp2lm9qw4s1ex',
    'authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
}   
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
const axios = require('axios');

let config = {
    method: 'get',
    maxBodyLength: Infinity,
    url: 'https://easeapi.venturasecurities.com/user/v1/profile',
    headers: { 
        'x-client-id': 'AA0605', 
        'x-app-key': '8ab5rt7yp2lm9qw4s1ex', 
        'authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
    }
};

axios.request(config)
    .then((response) => {
        console.log(JSON.stringify(response.data));
    })
    .catch((error) => {
        console.log(error);
    });

Response

{
    "status": "success",
    "data": {
        "user_type": "online",
        "email": "XXXXXX",
        "mobile": "XYZXYZXYZX",
        "pan": "ANOPN9468D",
        "account_status": "active",
        "user_name": "XXXXXXX",
        "user_address": "XXXXXX",
        "broker": "VENTURA",
        "exchanges": [
            "NSE",
            "BSE"
        ],
        "products": [
            "I",
            "M",
            "C",
            "F"
        ],
        "order_types": [
            "MARKET",
            "LIMIT",
            "SL",
            "SL-M"
        ],
        "segments": [
            "E",
            "D",
            "MF"
        ],
        "photo_url": "https://<photo-url>"
    }
}

Response Parameters

Parameter
Description
status Indicates the outcome of the request, either "success" or another status indicating failure
user_type Specifies whether the user is registered online or offline
email User's email address
mobile User's mobile phone number
pan User's PAN (Permanent Account Number) for taxation purposes
account_status Status of the user's account, typically active or inactive
user_name Name of the user
user_address Complete address of the user including city, state, and PIN code
broker Brokerage firm associated with the user
exchanges List of stock exchanges the user is registered with, such as NSE (National Stock Exchange) and BSE (Bombay Stock Exchange)
products Types of financial products the user can trade, such as intraday, margin, cash and carry, and MTF (Margin Trading Facility)
order_types Different types of orders the user can place, including market, limit, stop loss limit, and stop loss market orders
segments Various trading segments the user has access to, like equity, derivative, and mutual fund
photo_url This is valid for only 1 hour