Retrieves Session Initialized events. Supports filtering, sorting and paging.
Filtering
The filter parameter accepts a list of semicolon-separated filters in the form: {fieldName}{operator}{fieldValue} Filter terms within a single filter parameter are joined by a logical AND. Separate filter parameters are joined by a logical OR.
Supported filter fields
| Field |
|---|
| identifyId |
| accountId |
| date |
Operators
| Operator | Meaning |
|---|---|
| == | Exact match |
| != | Not equal |
| < | Less than |
| <= | Less than or equal |
| > | Greater than |
| >= | Greater than or equal |
| ~ | Matches string, supports wildcard characters * and ? |
| !~ | Not like, supports wildcard characters * and ? |
Examples:
| URI | Results |
|---|---|
| GET /v1/events/session?filter=identifyId==ABC123 | Session event matches for user with identifyId of 'ABC123'. |
Sorting
The sort parameter accepts a list of semi-colon separated fields names, each with an optional dash to imply descending sort order.
Supported sort fields
| Field |
|---|
| accountId |
| date |
Examples:
| URI | Results |
|---|---|
| GET /v1/events/session?sort=-date | Matches sorted by date descending. |
GET
/v1/events/session
curl \
--request GET 'https://api.aptrinsic.com/v1/events/session'
Response examples (200)
{
"sessionInitializedEvents": [
{
"eventId": "string",
"identifyId": "string",
"propertyKey": "string",
"date": 42,
"eventType": "string",
"sessionId": "string",
"userType": "LEAD",
"accountId": "string",
"globalContext": {},
"remoteHost": "string",
"inferredLocation": {
"countryName": "United States",
"countryCode": "USA",
"stateName": "California",
"stateCode": "CA",
"city": "San Mateo",
"street": "101 Broadway",
"postalCode": 94010,
"continent": "NA",
"regionName": "string",
"timeZone": "string",
"coordinates": {
"latitude": 37.567147,
"longitude": -122.324211
}
}
}
],
"totalHits": 42,
"scrollId": "string"
}