Skip to main content

Get Alerts​

This API retrieves a list of all alerts set by a particular user in the system. It includes details about the alert conditions, status, and additional metadata like trigger times and user-specific data.

🛣️Path Parameters​

ParameterTypeRequiredDescriptionExample
tenantidstringYesUnique identifier for the tenantABC123
user_idstringYesUnique identifier for the useruser_123
versionstringYesAPI version (choose between v1 or v2)v1

🔑Header Parameters​

HeaderTypeDescriptionExample
AuthorizationstringBearer token for API authenticationBearer{{access_token}}
x-api-keystringAPI key required to access the resource{{x-api-key}}

🟢Success Response - 200 Ok​

FieldTypeDescriptionExample/ENUM
statusstringStatus of the API call (usually "success")success
codestringResponse code for the user request"s-101"
messagestringSuccess message, describing the result of the API call"Alerts fetched successfully"
dataarray of objectList of alerts set by the userSee details below

📋Alert Structure Base Fields​

FieldTypeDescriptionExample
conditionArray of objectAn array of conditions. Each condition is an object.See details below
dataobjectContains additional data as key-value pairsSee details below
expirationintegerThe expiration timestamp.-1
createDatestringThe creation date and time"2025-07-25T13:00:54.907"
tenantIdstringUnique identifier for the tenant.1404
workerIdstringIdentifier for the worker processing the alert."worker_alerts_eq_e88bf5f7-d7e6"
triggeredintegerWhether the alert has been triggered (1 = triggered, 0 = not triggered).1
entryTimestringTime the alert was initially set (ISO 8601 format)2025-06-01T09:00:00Z
UCCstringUCC (Unique Client Code) associated with the alertUCC_12345
MessageTypestringType of message related to the alertUSR_Alert
serverAlertIdstringServer-specific ID for this alert"c70d7f4c-709d-4ec4-a42"
msgCodeintegerCode representing the message type1001
UniqueIdintegerUnique identifier for this alertalert_5678

📝Condition Object (Array Of Objects)​

FieldTypeDescriptionExample
operand1objectFirst operand object containing market segment, token, and fieldSee details below
operand2objectSecond operand object containing market segment, token, field, and valueSee details below
operatorstringOperator to compare operand values(e.g., >, <, =)>
broadcastarray of integersList of broadcast IDs associated with the alert[1, 2, 3]
triggeredinteger
triggeredTimeintegerThe timestamp when the alert condition was triggered2025-06-03T15:00:00Z

🛈Operand1 Object​

FieldTypeDescriptionExample/ENUM
marketsegmentintegerMarket segment identifier1
tokenintegerToken number from the exchange scrip master file12345
fieldstringField to compare, e.g., LIFETIMEHIGH, LIFETIMELOW, etc."LastTraderPrice"

🛈Operand2 Object​

FieldTypeDescriptionExample
marketsegmentintegerMarket segment identifier1
tokenintegerToken number from the exchange scrip master file12345
fieldstringField to compare, e.g., LIFETIMEHIGH, LIFETIMELOW, etc."USE_VALUE"
valueintegerValue to compare against the field15000

📘Data Object Fields​

FieldTypeDescriptionExample/ENUM
remarksstringAdditional remarks or comments"Alert : AXISBANK price exceeds ₹700"
useridstringUser ID for whom the alert is being setuser_123
tenantidstringUnique id provided for the tenant by SIPLABC123
symbolstringSymbol code for the scrip"AXISBANK"
alertTypestringType of alert (e.g., LIFETIMEHIGH, LASTTRADEDPRICE)LIFETIMEHIGH
categorystringCategory of alert"EQ"