---
title: "Retrieves the owner's decision audit log by given decisionID"
method: GET
path: "/owner/{ownerID}/context/{context}/decision/{decisionID}"
tags: ["Policy Management"]
---

# Retrieves the owner's decision audit log by given decisionID

`GET /owner/{ownerID}/context/{context}/decision/{decisionID}`

## Request

- Base URL: `https://circleci.com/api/v2`
- URL: `https://circleci.com/api/v2/owner/{ownerID}/context/{context}/decision/{decisionID}`
- Auth: one of:
  - API key in header `Circle-Token`
  - HTTP bearer
  - HTTP basic
  - API key in query parameter `circle-token`

This endpoint will retrieve a decision for a given decision log ID

## Path parameters

- `ownerID` string, required
- `context` string, required
- `decisionID` string, required

## Response `200`

Decision log successfully retrieved.

- DecisionLog
  - `created_at` string, date-time
  - `decision` Decision
    - `enabled_rules` string[]
    - `hard_failures` Violation[]
      - `reason` string, required
      - `rule` string, required
    - `reason` string
    - `soft_failures` Violation[]
      - `reason` string, required
      - `rule` string, required
    - `status` string, required
  - `id` string, uuid
  - `metadata` object
    - `build_number` integer
    - `project_id` string, uuid
    - `ssh_rerun` boolean
    - `vcs` object
      - `branch` string
      - `origin_repository_url` string
      - `release_tag` string
      - `target_repository_url` string
  - `policies` object: policy-name-to-hash-map
  - `time_taken_ms` integer

## Other responses

- `400`: The request is malformed (e.g, a given path parameter is invalid)
- `401`: The request is unauthorized
- `403`: The user is forbidden from making this request
- `404`: There was no decision log found for given decision_id, and owner_id.
- `500`: Something unexpected happened on the server.

---

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