> For the complete documentation index, see [llms.txt](https://docs.apica.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apica.io/platform-docs/test-data-orchestrator-tdo/user-documentation/api-guide/assignment-rule-apis/get-assignment-rules.md).

# Get Assignment Rules

This call gets the details for all assignment rules in a workset. It is sent as a POST call.

<figure><img src="/files/gmNTJUqgpSfX4byxWbf8" alt=""><figcaption><p>Get Assignment Rules call</p></figcaption></figure>

The body of the call contains the information on the project and workset you want to get assignment rule information on.

```
{
    "context": {
        "user": "user_ID",
        "password": "xxxx",
        "project": {
            "name": "imp_payments_demo",
            "version": "1.0"
        },
        "workSet": {
            "name": "api_2_workset",
            "version": "1.1"
        }
    }
}
```

The return message will contain information on all rules in that workset. In the sample below, there are two steps in the workset and rules for both steps are returned.

<figure><img src="/files/6siGNtq5JzkFD4kKbwro" alt=""><figcaption><p>Return message with all rules</p></figcaption></figure>

For the remaining calls referenced in this section, the rule ID returned in this call is used to target the call to a specific rule.
