---
title: "Retrieve an Activity Action"
method: GET
path: "/activity/{id}"
tags: ["Activity"]
---

# Retrieve an Activity Action

`GET /activity/{id}`

Retrieves the details of an existing activity action. Provide the primary key of the activity action and Directus will return the corresponding information.

## Path parameters

- `id` integer, required

## Query parameters

- `fields` string[]
- `meta` string

## Response `200`

Successful request

- object
  - `data` Activity
    - `id` integer — Unique identifier for the object.
    - `action` 'create' | 'update' | 'delete' | 'login' — Action that was performed.
    - `user` union — The user who performed this action.
      - string
      - Users
        - `id` string — Unique identifier for the user.
        - `first_name` string — First name of the user.
        - `last_name` string — Last name of the user.
        - `email` string, email — Unique email address for the user.
        - `password` string — Password of the user.
        - `location` string, nullable — The user's location.
        - `title` string, nullable — The user's title.
        - `description` string, nullable — The user's description.
        - `tags` string[], nullable — The user's tags.
        - `avatar` union — The user's avatar.
          - string
          - Files
            - `id` string — Unique identifier for the file.
            - `storage` string — Where the file is stored. Either `local` for the local filesystem or the name of the storage adapter (for example `s3`).
            - `filename_disk` string — Name of the file on disk. By default, Directus uses a random hash for the filename.
            - `filename_download` string — How you want to the file to be named when it's being downloaded.
            - `title` string — Title for the file. Is extracted from the filename on upload, but can be edited by the user.
            - `type` string — MIME type of the file.
            - `folder` union — Virtual folder where this file resides in.
              - …
            - `uploaded_by` union — Who uploaded the file.
              - …
            - `created_on` string, date-time — When the file was created.
            - `modified_by` union
              - …
            - `modified_on` string, date-time
            - `charset` string, nullable — Character set of the file.
            - `filesize` integer — Size of the file in bytes.
            - `width` integer, nullable — Width of the file in pixels. Only applies to images.
            - `height` integer, nullable — Height of the file in pixels. Only applies to images.
            - `duration` integer, nullable — Duration of the file in seconds. Only applies to audio and video.
            - `embed` string, nullable — Where the file was embedded from.
            - `description` string, nullable — Description for the file.
            - `location` string, nullable — Where the file was created. Is automatically populated based on Exif data for images.
            - `tags` string[], nullable — Tags for the file. Is automatically populated based on Exif data for images.
            - `metadata` object, nullable — IPTC, Exif, and ICC metadata extracted from file
            - `focal_point_x` integer, nullable
            - `focal_point_y` integer, nullable
            - `tus_id` string, nullable
            - `tus_data` unknown
            - `uploaded_on` string, date-time — When the file was last uploaded/replaced.
        - `language` string — The user's language used in Directus.
        - `tfa_secret` string, nullable — The 2FA secret string that's used to generate one time passwords.
        - `status` 'active' | 'invited' | 'draft' | 'suspended' | 'deleted' — Status of the user.
        - `role` union — Unique identifier of the role of this user.
          - string
          - Roles
            - `id` string — Unique identifier for the role.
            - `name` string — Name of the role.
            - `icon` string — The role's icon.
            - `description` string, nullable — Description of the role.
            - `parent` union — $t:field_options.directus_roles.parent_note
              - …
            - `children` union[], nullable — $t:field_options.directus_roles.children_note
              - …
            - `policies` unknown
            - `users` union[], nullable
              - …
        - `token` string, nullable — Static token for the user.
        - `last_access` string, date-time, nullable — When this user used the API last.
        - `last_page` string, nullable — Last page that the user was on.
        - `provider` string
        - `external_identifier` string, nullable
        - `auth_data` unknown
        - `email_notifications` boolean, nullable
        - `appearance` string, nullable
        - `theme_dark` string, nullable
        - `theme_light` string, nullable
        - `theme_light_overrides` unknown
        - `theme_dark_overrides` unknown
        - `text_direction` string
        - `policies` unknown
    - `timestamp` string, date-time — When the action happened.
    - `ip` string, ipv4 — The IP address of the user at the time the action took place.
    - `user_agent` string — User agent string of the browser the user used when the action took place.
    - `collection` union — Collection identifier in which the item resides.
      - string
      - Collections
        - `collection` string — The collection key.
        - `icon` string, nullable
        - `note` string, nullable
        - `display_template` string, nullable
        - `hidden` boolean
        - `singleton` boolean
        - `translations` unknown
        - `archive_field` string, nullable
        - `archive_app_filter` boolean
        - `archive_value` string, nullable
        - `unarchive_value` string, nullable
        - `sort_field` string, nullable
        - `accountability` string, nullable
        - `color` string, nullable
        - `item_duplication_fields` unknown
        - `sort` integer, nullable
        - `group` union
          - string
          - Collections — recursive
        - `collapse` string
        - `preview_url` string, nullable
        - `versioning` boolean
    - `item` string — Unique identifier for the item the action applied to. This is always a string, even for integer primary keys.
    - `origin` string — Origin of the request when the action took place.
    - `revisions` union[], nullable
      - union
        - integer
        - Revisions
          - `id` integer — Unique identifier for the revision.
          - `activity` union — Unique identifier for the activity record.
            - integer
            - Activity — recursive
          - `collection` union — Collection of the updated item.
            - string
            - Collections
              - …
          - `item` string — Primary key of updated item.
          - `data` object, nullable — Copy of item state at time of update.
          - `delta` object — Changes between the previous and the current revision.
          - `parent` integer, nullable — If the current item was updated relationally, this is the id of the parent revision record
          - `version` union — Associated version of this revision.
            - string
            - Versions
              - …

## Other responses

- `401` — Error: Unauthorized request
- `404` — Error: Not found.

---

[API](https://skmtc.dev/utomic-media/apis/dynamic-api-specification.md) · [All operations](https://skmtc.dev/utomic-media/apis/dynamic-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/utomic-media/dynamic-api-specification/revisions/4a0ccd34700e/schema)
