---
title: "Get an environment activity log entry"
method: GET
path: "/projects/{projectId}/environments/{environmentId}/activities/{activityId}"
tags: ["Environment Activity"]
---

# Get an environment activity log entry

`GET /projects/{projectId}/environments/{environmentId}/activities/{activityId}`

Retrieve a single environment activity entry as specified by an
`id` returned by the
[Get environment activities list](#tag/Environment-Activity%2Fpaths%2F~1projects~1%7BprojectId%7D~1environments~1%7BenvironmentId%7D~1activities%2Fget)
endpoint. See the documentation on that endpoint for details about
the information this endpoint can return.

## Path parameters

- `projectId` string, required
- `environmentId` string, required
- `activityId` string, required

## Response `default`

- Activity
  - `id` string, required — The identifier of Activity
  - `created_at` string, date-time, nullable, required — The creation date
  - `updated_at` string, date-time, nullable, required — The update date
  - `type` string, required — The type of the activity
  - `parameters` object, required — The parameters of the activity
  - `project` string, required — The project the activity belongs to
  - `integration` string — The integration the activity belongs to
  - `environments` string[] — The environments related to the activity
  - `state` 'cancelled' | 'complete' | 'in_progress' | 'pending' | 'scheduled' | 'staged', required — The state of the activity
  - `result` 'failure' | 'success', nullable, required — The result of the activity
  - `started_at` string, date-time, nullable, required — The start date of the activity
  - `completed_at` string, date-time, nullable, required — The completion date of the activity
  - `completion_percent` integer, required — The completion percentage of the activity
  - `cancelled_at` string, date-time, nullable, required — The Cancellation date of the activity
  - `timings` object, required — Timings related to different phases of the activity
  - `log` string, required — The log of the activity
  - `payload` object, required — The payload of the activity
  - `description` string, nullable, required — The description of the activity, formatted with HTML
  - `text` string, nullable, required — The description of the activity, formatted as plain text
  - `expires_at` string, date-time, nullable, required — The date at which the activity will expire
  - `commands` object[], required — The commands of the activity
    - `app` string, required
    - `type` string, required
    - `exit_code` integer, required

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
