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

# Get a list of Agency User activities

`GET /agency/{agency_id}/user/{user_id}/activity`

Retrieve a list of activity a user created within an agency 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 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/6e2cb83db3a9?raw)
