---
title: "REST API: Get Events by User ID"
type: "wiki"
space: "Axero Documentation"
author: "Anonymous User"
created: 2011-03-29T05:25:57Z
updated: 2026-09-28T01:14:12Z
tags: ["API"]
url: "https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/494/rest-api-get-events-by-user-id"
---

# REST API: Get Events by User ID

[Open API Guide](https://my.axerosolutions.com/spaces/5/axero-documentation/api-guide?id=494)
GET/api/events/spaces/\{SpaceID\}

Get a list of events in a space, filtered by a UserID.

## Request

### Request Header
| Header | Required | Value | Description |
| :--- | :--- | :--- | :--- |
| `Authorization` | YES | `Bearer YOUR_TOKEN` | Bearer token for the authenticated user. [Learn how to create Bearer tokens](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens). |
### Required Parameters
| Parameter | Type | Required | Location | Description |
| :--- | :--- | :--- | :--- | :--- |
| `SpaceID` | Integer | YES | Path | ID of the space whose events are returned |
| `UserID` | Integer | YES | Query | ID of the user whose attendance status is checked. Required for the route to match: without it the request answers 404 \(No HTTP resource was found\). |
## Example

### Request Header

```
Authorization: Bearer YOUR_TOKEN
```

### Request URL

`https://your-site.com/api/events/spaces/252?UserID=376`

### Success Response

```
{
  "IsError": false,
  "ResponseMessage": "",
  "ResponseData": [
    {
      "CanBeViewed": true,
      "CanBeEdited": true,
      "CanBeDeleted": true,
      "IsBusy": true,
      "AttendanceType": 1,
      "IsShared": false,
      "CanInviteOthers": true,
      "InvitedByCRMContactID": 0,
      "EventID": 552,
      "AlbumID": 0,
      "IsPrivate": false,
      "IsScheduled": false,
      "IsEvent": false,
      "IsClassPeriod": false,
      "MediaServerID": 64,
      "MainImageFileName": "",
      "CommentCount": 0,
      "EventTypeID": 624,
      "Title": "Company Picnic",
      "WorkFlowID": 0,
      "CurrentWorkFlowStepID": 0,
      "SpaceName": "Human Resources",
      "SpaceURL": "/spaces/252/human-resources/hr-homepage",
      "Description": "<p>Come and join us!</p>",
      "DescriptionUnprocessed": "<p>Come and join us!</p>",
      "StartDate": "2026-11-21T19:00:00",
      "EndDate": "2026-11-21T23:00:00",
      "SpaceID": 252,
      "Views": 1,
      "IsFeatured": false,
      "IsPrivateSpace": false,
      "IsPublishedFromDraftMode": false,
      "Address": "",
      "Address2": "",
      "CountryID": 0,
      "Zip": "",
      "EventStatusID": 1,
      "UserName": "admin",
      "Telephone": "",
      "CreatedOnDate": "2026-11-18T19:02:48.453",
      "Organization": "",
      "Keywords": "",
      "WhoShouldAttend": "",
      "City": "",
      "Website": "",
      "VenueName": "Recreation Center",
      "EventTypeName": "Team Building",
      "AttendanceID": 0,
      "UserID": 376,
      "AvatarPath": "1c32c413-8025-4da5-b23a-575ab251faf4.png",
      "IsOnline": false,
      "MetroID": 0,
      "FirstName": "Alexis",
      "LastName": "Fox",
      "UserEmail": "alexis.fox@your-site.com",
      "StateID": 0,
      "UserProfileURL": "https://your-site.com/people/admin",
      "UserDisplayName": "Alexis Fox",
      "UserAvatarFullUrl": "https://your-site.com/Assets/Uploaded-Photos/376/1c32c413-8025-4da5-b23a-575ab251faf4.png",
      "DateTimeSpan": "6 days ago",
      "EventURL": "/spaces/252/human-resources/events/details/552",
      "EditEventURL": "/events/addedit?eventID=552&spaceid=252",
      "StartDateText": "11/21/2020 11:00 AM",
      "EndDateText": "11/21/2020 3:00 PM",
      "UpdatedByUserID": 0,
      "AttendeeCount": 1,
      "MayBeAttendeeCount": 0,
      "Rating": 0,
      "Location": "Recreation Center",
      "StartTimeText": "11:00 AM",
      "EndTimeText": "3:00 PM",
      "EventBookedByUserID": 0,
      "Tags": [],
      "Reminders": [
        {
          "ReminderID": 912,
          "EntityType": 5,
          "EntityID": 552,
          "ReminderType": 1,
          "ReminderTime": 30,
          "UserID": 376,
          "ReminderSent": true
        },
        {
          "ReminderID": 913,
          "EntityType": 5,
          "EntityID": 552,
          "ReminderType": 1,
          "ReminderTime": 10,
          "UserID": 376,
          "ReminderSent": true
        }
      ],
      "IsAllDay": false,
      "StartDateISO": "2026-11-21T11:00:00.00",
      "EndDateISO": "2026-11-21T15:00:00.00",
      "FrequencyChoice": 0,
      "Frequency": 0,
      "DaysOfWeek": 0,
      "IsRepeat": false,
      "QuarterInterval": 0,
      "QuarterlyInterval": 0,
      "MonthlyInterval": 0,
      "WeeklyInterval": 0,
      "DaysOfMonth": 0,
      "IsSundaySelected": false,
      "IsMondaySelected": false,
      "IsTuesdaySelected": false,
      "IsWednesdaySelected": false,
      "IsThursdaySelected": false,
      "IsFridaySelected": false,
      "IsSaturdaySelected": false,
      "IsFirstWeekOfMonthSelected": false,
      "IsSecondWeekOfMonthSelected": false,
      "IsThirdWeekOfMonthSelected": false,
      "IsFourthWeekOfMonthSelected": false,
      "IsLastWeekOfMonthSelected": false,
      "FrequencyTypeOption": 0,
      "QuarterlyOptions": 0,
      "QuarterlyIntervalOptions": 0,
      "MonthlyIntervalOptions": 0,
      "WeeklyIntervalOptions": 0,
      "DaysOfWeekOptions": 0,
      "RangeStartMonth": 0,
      "RangeEndMonth": 0,
      "RepeatStartDate": "2026-11-21T19:00:00",
      "RepeatStartDateISO": "2026-11-21T11:00:00.00",
      "EndAfterOccurences": 0,
      "DayInterval": 0,
      "MonthInterval": 0,
      "DayOfMonth": 0,
      "YearInterval": 0,
      "RepeatEndType": 1,
      "StartDateWithRespectToUser": "2026-11-21T11:00:00",
      "EndDateWithRespectToUser": "2026-11-21T15:00:00",
      "RepeatStartDateWithRespectToUser": "2026-11-21T11:00:00",
      "RepeatEndDateWithRespectToUser": "0001-01-01T00:00:00",
      "When": "11/21/2020 11:00 AM <i class=\"icon-long-arrow-right\"></i>  3:00 PM (Pacific Standard Time)",
      "RepeatSummary": "",
      "ResourceIDCSV": ""
    },
    {
      "CanBeViewed": true,
      "CanBeEdited": true,
      "CanBeDeleted": true,
      "IsBusy": true,
      "AttendanceType": 1,
      "IsShared": false,
      "CanInviteOthers": true,
      "InvitedByCRMContactID": 0,
      "EventID": 547,
      "AlbumID": 0,
      "IsPrivate": false,
      "IsScheduled": false,
      "IsEvent": false,
      "IsClassPeriod": false,
      "MediaServerID": 64,
      "MainImageFileName": "6deded1d-caa2-4d19-bcc9-bf1fd0ea23cf.jpg",
      "CommentCount": 0,
      "EventTypeID": 567,
      "Title": "Update Employee Directory",
      "WorkFlowID": 0,
      "CurrentWorkFlowStepID": 0,
      "SpaceName": "Human Resources",
      "SpaceURL": "/spaces/252/human-resources/hr-homepage",
      "Description": "",
      "DescriptionUnprocessed": "",
      "StartDate": "2026-09-30T21:00:00",
      "EndDate": "2026-09-30T21:00:00",
      "SpaceID": 252,
      "Views": 1,
      "IsFeatured": false,
      "IsPrivateSpace": false,
      "IsPublishedFromDraftMode": false,
      "Address": "",
      "Address2": "",
      "CountryID": 0,
      "Zip": "",
      "EventStatusID": 1,
      "UserName": "admin",
      "Telephone": "",
      "CreatedOnDate": "2026-09-11T18:49:00.2",
      "Organization": "",
      "Keywords": "",
      "WhoShouldAttend": "",
      "City": "",
      "Website": "",
      "VenueName": "",
      "EventTypeName": "Meeting",
      "AttendanceID": 0,
      "UserID": 376,
      "AvatarPath": "1c32c413-8025-4da5-b23a-575ab251faf4.png",
      "IsOnline": false,
      "MetroID": 0,
      "FirstName": "Alexis",
      "LastName": "Fox",
      "UserEmail": "alexis.fox@your-site.com",
      "StateID": 0,
      "UserProfileURL": "https://your-site.com/people/admin",
      "ImageURL": "https://your-site.com/Assets/Uploaded-CMS-Files/6deded1d-caa2-4d19-bcc9-bf1fd0ea23cf.jpg",
      "UserDisplayName": "Alexis Fox",
      "UserAvatarFullUrl": "https://your-site.com/Assets/Uploaded-Photos/376/1c32c413-8025-4da5-b23a-575ab251faf4.png",
      "DateTimeSpan": "9/11/2020",
      "EventURL": "/spaces/252/human-resources/events/details/547",
      "EditEventURL": "/events/addedit?eventID=547&spaceid=252",
      "StartDateText": "9/30/2020 2:00 PM",
      "EndDateText": "9/30/2020 2:00 PM",
      "UpdatedByUserID": 0,
      "AttendeeCount": 1,
      "MayBeAttendeeCount": 0,
      "Rating": 0,
      "Location": "Conference Room A",
      "StartTimeText": "2:00 PM",
      "EndTimeText": "2:00 PM",
      "EventBookedByUserID": 0,
      "Tags": [],
      "Reminders": [
        {
          "ReminderID": 892,
          "EntityType": 5,
          "EntityID": 547,
          "ReminderType": 1,
          "ReminderTime": 30,
          "UserID": 376,
          "ReminderSent": true
        },
        {
          "ReminderID": 893,
          "EntityType": 5,
          "EntityID": 547,
          "ReminderType": 1,
          "ReminderTime": 10,
          "UserID": 376,
          "ReminderSent": true
        }
      ],
      "IsAllDay": false,
      "StartDateISO": "2026-09-30T14:00:00.00",
      "EndDateISO": "2026-09-30T14:00:00.00",
      "FrequencyChoice": 0,
      "Frequency": 0,
      "DaysOfWeek": 0,
      "IsRepeat": false,
      "QuarterInterval": 0,
      "QuarterlyInterval": 0,
      "MonthlyInterval": 0,
      "WeeklyInterval": 0,
      "DaysOfMonth": 0,
      "IsSundaySelected": false,
      "IsMondaySelected": false,
      "IsTuesdaySelected": false,
      "IsWednesdaySelected": false,
      "IsThursdaySelected": false,
      "IsFridaySelected": false,
      "IsSaturdaySelected": false,
      "IsFirstWeekOfMonthSelected": false,
      "IsSecondWeekOfMonthSelected": false,
      "IsThirdWeekOfMonthSelected": false,
      "IsFourthWeekOfMonthSelected": false,
      "IsLastWeekOfMonthSelected": false,
      "FrequencyTypeOption": 0,
      "QuarterlyOptions": 0,
      "QuarterlyIntervalOptions": 0,
      "MonthlyIntervalOptions": 0,
      "WeeklyIntervalOptions": 0,
      "DaysOfWeekOptions": 0,
      "RangeStartMonth": 0,
      "RangeEndMonth": 0,
      "RepeatStartDate": "2026-09-30T21:00:00",
      "RepeatStartDateISO": "2026-09-30T14:00:00.00",
      "EndAfterOccurences": 0,
      "DayInterval": 0,
      "MonthInterval": 0,
      "DayOfMonth": 0,
      "YearInterval": 0,
      "RepeatEndType": 1,
      "StartDateWithRespectToUser": "2026-09-30T14:00:00",
      "EndDateWithRespectToUser": "2026-09-30T14:00:00",
      "RepeatStartDateWithRespectToUser": "2026-09-30T14:00:00",
      "RepeatEndDateWithRespectToUser": "0001-01-01T00:00:00",
      "When": "9/30/2020 2:00 PM <i class=\"icon-long-arrow-right\"></i>  2:00 PM (Pacific Daylight Time)",
      "RepeatSummary": "",
      "ResourceIDCSV": "5"
    }
  ]
}
```

### Error Response

```
{
  "Message": "No HTTP resource was found that matches the request URI 'https://your-site.com/api/events/spaces/313'."
}
```

## Error Handling

| Status Code | Likely Cause | Next Action |
| :--- | :--- | :--- |
| 400 Bad Request | SpaceID in the path is not an integer. | Send the space's numeric ID. |
| 401 Unauthorized | Missing or invalid Bearer token. | Check token validity. [Learn how to create Bearer tokens →](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens) |
| 403 Forbidden | Not returned: events the caller cannot see are left out of the results. | Call as a user who can see the events you expect. |
| 404 Not Found | UserID was left out, so the request matched no action \(No HTTP resource was found\). | Send UserID. |
| 500 Server Error | Internal failure. | Retry later. |

## Rate Limits

While Axero does not enforce hard rate limits by default, we recommend the following best practices to ensure optimal performance:

- **Sustained Request Rate:** Do not exceed 5 API calls per second
- **Sequential Processing:** Wait for each request to complete before sending the next in automated workflows
- **Concurrent Connections:** If parallel processing is required, limit to 3 or fewer simultaneous requests
- **Response Timeout:** Ensure API responses complete within 15 seconds during testing

Axero may implement temporary rate restrictions if excessive API usage affects overall site performance. For high-volume integrations, contact Axero to discuss your requirements.
