---
title: "Get Link Rule"
method: GET
path: "/links/{link_id}/rules/{rule_id}"
tags: ["Link Rules"]
---

# Get Link Rule

`GET /links/{link_id}/rules/{rule_id}`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/links/{link_id}/rules/{rule_id}`
- Auth: API key in header `apikey`

Get a single routing rule for a link by its public ID.

**Requires:** Authenticated user with workspace access.

**Blocked by:** Link deleted (status=3).

## Path parameters

- `link_id` string, required
- `rule_id` string, required

## Headers

- `Workspace` string
- `apikey` string, required

## Response `200`

Rule details

- LinkRule
  - `id` string, required: Rule public ID
  - `rank` integer
  - `destination` string, uri, required
  - `conditions` object[], required
    - `type` string
    - `value` string
  - `createdAt` string, date-time

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/rebrandly/apis/rebrandly-api.md) - [All operations](https://skmtc.dev/rebrandly/apis/rebrandly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rebrandly/apis/rebrandly-api/revisions/b098bf9fb684?raw)
