# Get user events

You can return all user’s events.

GET /users/:id/events/

Attributes Type Required Description
id integer no A unique identifier for the user which is given by User.com automatically.

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/users/:id/events/"

# Response

{
  "count": 6,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 600714,
      "client": 3577959,
      "timestamp": "2016-11-22T12:53:41.020361Z",
      "items": [],
      "event": "MyNewEvent",
      "event_id": 550
    },
    {
      "id": 573849,
      "client": 3577959,
      "timestamp": "2016-11-18T11:34:30.765917Z",
      "items": [],
      "event": "NewOrder",
      "event_id": 583
    },
    {
      "id": 573847,
      "client": 3577959,
      "timestamp": "2016-11-18T11:34:27.088702Z",
      "items": [],
      "event": "MyNewEvent",
      "event_id": 550
    },
    ...
  ]
}