---
title: "GET /rules/{InstanceId}"
method: GET
path: "/rules/{InstanceId}"
---

# GET /rules/{InstanceId}

`GET /rules/{InstanceId}`

List all rules for the specified Amazon Connect instance.

## Path parameters

- `InstanceId` string, required

## Query parameters

- `publishStatus` 'DRAFT' | 'PUBLISHED'
- `eventSourceName` 'OnPostCallAnalysisAvailable' | 'OnRealTimeCallAnalysisAvailable' | 'OnPostChatAnalysisAvailable' | 'OnZendeskTicketCreate' | 'OnZendeskTicketStatusUpdate' | 'OnSalesforceCaseCreate'
- `maxResults` integer
- `nextToken` string
- `MaxResults` string
- `NextToken` string

## Response `200`

Success

- ListRulesResponse
  - `RuleSummaryList` RuleSummary[], required — Summary information about a rule.
    - `Name` string, required — The name of the rule.
    - `RuleId` string, required — A unique identifier for the rule.
    - `RuleArn` string, required — The Amazon Resource Name (ARN) of the rule.
    - `EventSourceName` 'OnPostCallAnalysisAvailable' | 'OnRealTimeCallAnalysisAvailable' | 'OnPostChatAnalysisAvailable' | 'OnZendeskTicketCreate' | 'OnZendeskTicketStatusUpdate' | 'OnSalesforceCaseCreate', required — The name of the event source.
    - `PublishStatus` 'DRAFT' | 'PUBLISHED', required — The publish status of the rule.
    - `ActionSummaries` ActionSummary[], required — A list of ActionTypes associated with a rule.
      - `ActionType` 'CREATE_TASK' | 'ASSIGN_CONTACT_CATEGORY' | 'GENERATE_EVENTBRIDGE_EVENT' | 'SEND_NOTIFICATION', required — The action type.
    - `CreatedTime` string, date-time, required — The timestamp for when the rule was created.
    - `LastUpdatedTime` string, date-time, required — The timestamp for when the rule was last updated.
  - `NextToken` string — If there are additional results, this is the token for the next set of results.

## Other responses

- `480` — InvalidRequestException
- `481` — InternalServiceException
- `482` — ThrottlingException
- `483` — AccessDeniedException
- `484` — ResourceNotFoundException

---

[API](https://skmtc.net/aws/apis/connect.md) · [All operations](https://skmtc.net/aws/apis/connect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/connect/versions/fbcf0a4faed2/schema)
