---
title: "Get a list of Agency Group User activities"
method: GET
path: "/agency-group/{agency_group_id}/user/{user_id}/activity"
tags: ["Agency Group User Activity"]
---

# Get a list of Agency Group User activities

`GET /agency-group/{agency_group_id}/user/{user_id}/activity`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency-group/{agency_group_id}/user/{user_id}/activity`
- Auth: HTTP basic and HTTP basic

Retrieve a list of activity a user created within an agency group context

## Query parameters

- `page` integer
- `items_per_page` integer
- `sortBy` string[]
- `activity_type` string[]
- `activity_date_at_from` string, date-time
- `activity_date_at_to` string, date-time
- `subject_type` 'candidate' | 'client'

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required

## Response `200`

The agency group user activities will be returned

- UserContextActivityResponseDef[]
  - `activity_type` string, required
  - `description` string
  - `comment` string
  - `linked_entities` EntityObject[]
    - `entity_id` string: The id of the entity, note this doesn't have pattern matching as user don't have mongo object ids as ids
    - `entity_type` string, required: The type of the entity this object represents
    - `name` string: The name of the entity
  - `subject_type` 'candidate' | 'client'
  - `subject_id` string
  - `subject_name` string
  - `created_by_user` string
  - `created_by_user_name` string
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `activity_date` string, date-time, required
  - `created_by_context_id` string
  - `created_by_context_type` string

## Other responses

- `204`: No entities found that match the query
- `400`: Validation Error. Usually caused by a missing or invalid parameter.
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
