Get all custom events for an account

Use this interface to retrieve the names and descriptions of all custom events for an account.

Service URL:

/rest/api/v1.3/events

Request Method:

GET

Request Header:

Authorization=<AUTH_TOKEN>

Request Body:

None

Sample Response in case of success:

RESPONSE NOTE: The response is a list of custom event names and their descriptions.

[
  {
    "eventName": "My_Test",
    "description": "This is a test custom event.",
    "eventType": "1"
  },
  {
    "eventName": "My_Test_Mobile",
    "description": "Test custom event that includes mobile RIIDs",
    "eventType": "1"
  },
  {
    "eventName": "Test3",
    "description": "Test event 3",
    "eventType": "1"
  }
]

Sample Response in case of failure:

{
  "type": "",
  "title": "Custom event not found",
  "errorCode": "CUSTOM_EVENT_NOT_FOUND",
  "detail": "Account : acctname : does not have any custom events.",
  "errorDetails": []
}