> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linquid.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Rule

> Retrieve a single routing rule by ID

<ParamField path="ruleId" type="string" required>
  Rule identifier
</ParamField>

## Access

* Permission: `rules:read`

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.linquid.io/api/rules/rule_def456 \
    -H "Authorization: Bearer <token>"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "id": "rule_def456",
      "campaignId": "campaign_123",
      "linkId": null,
      "name": "Mobile Traffic",
      "type": "device",
      "conditions": {
        "devices": ["mobile"]
      },
      "destinationUrl": "https://example.com/mobile",
      "priority": 1,
      "enabled": true
    }
  }
  ```
</ResponseExample>

## Common Errors

* `404`: rule not found or outside workspace
