---
title: "Get rule"
method: GET
path: "/rule/{identifier}/{version}?"
tags: ["Rule"]
---

# Get rule

`GET /rule/{identifier}/{version}?`

Gets all of the information stored about the rule, including its content, version or input and output schemas. 

- If the version is specified, gets the version irrespective of the rule status. 
- If the version is not specified, gets the latest published version.

## Path parameters

- `identifier` string, required
- `version` string

## Query parameters

- `path` string
- `version` integer

## Headers

- `Authorization` string, required
- `Content-Type` string

## Response `200`

OK

- object

## Other responses

- `400`
- `401`

---

[API](https://skmtc.dev/decisionrules/apis/decisionrules-rule-solver-api.md) · [All operations](https://skmtc.dev/decisionrules/apis/decisionrules-rule-solver-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decisionrules/decisionrules-rule-solver-api/revisions/b50a7df65838/schema)
