---
title: "List PR-automation rules for a workspace"
method: GET
path: "/api/workspaces/{workspaceId}/pr-automations"
tags: ["PR Automations"]
---

# List PR-automation rules for a workspace

`GET /api/workspaces/{workspaceId}/pr-automations`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/pr-automations`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required

## Response `200`

List of configured PR-automation rules (one per event). Cleared rules are absent from the array.

- object
  - `success` boolean, required
  - `data` object[], required
    - `event` 'PR_OPENED' | 'PR_MERGED', required
    - `targetStatusId` string, required

---

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