# Returns all versions of a rule **GET /v1/{contextId}/rules/{ruleId}/versions** Returns all versions of a rule ## Servers - Cloud hosted production server: https://api.brease.run (Cloud hosted production server) - Development server: http://localhost:4400 (Development server) ## Parameters ### Path parameters - **contextId** (string) The parent context ID, for example, "contextID1/rules/{rule_id}/versions" - **ruleId** (string) The rule ID, for example, "{context_id}/rules/rule1/versions" ### Query parameters - **pageSize** (integer(int32)) The maximum number of items to return. - **pageToken** (string) The next_page_token value returned from a previous List request, if any. ## Responses ### 200 OK #### Body: application/json (object) - **rules** (array[object]) There will be a maximum number of items returned based on the page_size field in the request. - **nextPageToken** (string) Token to retrieve the next page of results, or empty if there are no more results in the list. ### default Default error response #### Body: application/json (object) - **code** (integer(int32)) The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. - **message** (string) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. - **details** (array[object]) A list of messages that carry the error details. There is a common set of message types for APIs to use. [Powered by Bump.sh](https://bump.sh)