---
title: "Links · API docs — Reeflip"
description: "Short links that count clicks, each opening one of your flipbooks."
url: "https://reeflip.com/docs/links"
---

# Links · API docs — Reeflip

Short links that count clicks, each opening one of your flipbooks.

Needs a key with Links access: Read for GET requests, Read and write for the rest.

Every request follows [How requests work](https://reeflip.com/docs/requests.md).

## List links

`GET /links`

Your tracked links, newest first. Each opens a catalog or a flipbook. With `flipbook_id` or `catalog_id`, only that flipbook's or catalog's.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `flipbook_id` | id | No | Only this flipbook's links. |
| `catalog_id` | id | No | Only this catalog's links. |

### Example

```sh
curl https://app.reeflip.com/api/v1/links \
  -H "Authorization: Bearer $REEFLIP_KEY"
```

### Response: 200 OK

```json
{
  "items": [
    {
      "id": "6f04e9cc-e981-4819-af57-adfe8ab471cd",
      "code": "",
      "name": "Instagram bio",
      "opens": "catalog",
      "flipbook_id": "a93b2e88-3d4e-4366-aa19-a0e5f11a9472",
      "flipbook_title": "",
      "catalog_id": "81d64594-e84c-4a74-a6aa-6e5c8e8275de",
      "catalog_name": "",
      "start_page": 1,
      "expires_at": "2026-12-02T09:30:00Z",
      "enabled": false,
      "created_at": "2026-12-02T09:30:00Z",
      "updated_at": "2026-12-02T09:30:00Z"
    }
  ]
}
```

## Get a link

`GET /links/{link_id}`

One link, with its short address.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `link_id` | id | Yes | The link's id. |

### Example

```sh
curl https://app.reeflip.com/api/v1/links/52034fe0-7bd9-442f-ae99-57dc96e3c55b \
  -H "Authorization: Bearer $REEFLIP_KEY"
```

### Response: 200 OK

```json
{
  "id": "6f04e9cc-e981-4819-af57-adfe8ab471cd",
  "code": "",
  "name": "Instagram bio",
  "opens": "catalog",
  "flipbook_id": "a93b2e88-3d4e-4366-aa19-a0e5f11a9472",
  "flipbook_title": "",
  "catalog_id": "81d64594-e84c-4a74-a6aa-6e5c8e8275de",
  "catalog_name": "",
  "start_page": 1,
  "expires_at": "2026-12-02T09:30:00Z",
  "enabled": false,
  "created_at": "2026-12-02T09:30:00Z",
  "updated_at": "2026-12-02T09:30:00Z"
}
```

Other errors: `link_not_found`

## Create a link

`POST /links`

Makes a tracked link to one of your catalogs or flipbooks, with its own short address: reeflip.com/c/{code} for a catalog (send `catalog_id`), reeflip.com/b/{code} for a flipbook (send `flipbook_id`). A flipbook's link opens it at `start_page` (page 1 unless you send one). It works until `expires_at`, if you send one, and is switched on unless you send `enabled: false`.

Each link that is on uses one of your plan's share links, as each live catalog and flipbook does. When all of them are in use, a link that is on is refused with `plan_limit`.

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | text | Yes | Any name, for the business to tell its links apart, such as "Dealers group, November". |
| `catalog_id` | id | No | One of the business's catalogs. |
| `flipbook_id` | id | No | One of the business's flipbooks. |
| `start_page` | number | No | The flipbook's page to open at; 1 unless sent. |
| `expires_at` | date and time | No | When it stops working, in the future; never unless sent. |
| `enabled` | true or false | No | False to make it switched off; on unless sent. |

### Example

```sh
curl -X POST https://app.reeflip.com/api/v1/links \
  -H "Authorization: Bearer $REEFLIP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Instagram bio",
    "flipbook_id": "1a436618-0809-41df-ad4d-1ef0974c77d0"
  }'
```

### Response: 201 Created

```json
{
  "id": "6f04e9cc-e981-4819-af57-adfe8ab471cd",
  "code": "",
  "name": "Instagram bio",
  "opens": "catalog",
  "flipbook_id": "a93b2e88-3d4e-4366-aa19-a0e5f11a9472",
  "flipbook_title": "",
  "catalog_id": "81d64594-e84c-4a74-a6aa-6e5c8e8275de",
  "catalog_name": "",
  "start_page": 1,
  "expires_at": "2026-12-02T09:30:00Z",
  "enabled": false,
  "created_at": "2026-12-02T09:30:00Z",
  "updated_at": "2026-12-02T09:30:00Z"
}
```

Other errors: `flipbook_not_found`, `catalog_not_found`, `plan_limit`

## Change a link

`PATCH /links/{link_id}`

Changes only the fields you send. `enabled: false` switches the link off and `true` on again; its code stays the same. `expires_at: null` removes its end date. `catalog_id` or `flipbook_id` makes it open another catalog or flipbook; its address keeps working.

A change that makes the link work again, switching it on or moving its end past now, takes one of your plan's share links; when all of them are in use it is refused with `plan_limit`.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `link_id` | id | Yes | The link's id. |

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | text | No | Any name, to tell your links apart. |
| `catalog_id` | id | No | One of the business's catalogs, for the link to open instead. |
| `flipbook_id` | id | No | One of the business's flipbooks, for the link to open instead. |
| `start_page` | number | No | The flipbook's page it opens at. |
| `expires_at` | date and time | No | When it stops working, in the future; null so it never does. |
| `enabled` | true or false | No | False switches it off; true on again. |

### Example

```sh
curl -X PATCH https://app.reeflip.com/api/v1/links/52034fe0-7bd9-442f-ae99-57dc96e3c55b \
  -H "Authorization: Bearer $REEFLIP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": false
  }'
```

### Response: 200 OK

```json
{
  "id": "6f04e9cc-e981-4819-af57-adfe8ab471cd",
  "code": "",
  "name": "Instagram bio",
  "opens": "catalog",
  "flipbook_id": "a93b2e88-3d4e-4366-aa19-a0e5f11a9472",
  "flipbook_title": "",
  "catalog_id": "81d64594-e84c-4a74-a6aa-6e5c8e8275de",
  "catalog_name": "",
  "start_page": 1,
  "expires_at": "2026-12-02T09:30:00Z",
  "enabled": false,
  "created_at": "2026-12-02T09:30:00Z",
  "updated_at": "2026-12-02T09:30:00Z"
}
```

Other errors: `link_not_found`, `flipbook_not_found`, `catalog_not_found`, `plan_limit`

## Delete a link

`DELETE /links/{link_id}`

Deletes the link. Its address stops working at once. To stop it for a while, switch it off instead.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `link_id` | id | Yes | The link's id. |

### Example

```sh
curl -X DELETE https://app.reeflip.com/api/v1/links/52034fe0-7bd9-442f-ae99-57dc96e3c55b \
  -H "Authorization: Bearer $REEFLIP_KEY"
```

### Response: 204 No Content

Nothing in the body.

Other errors: `link_not_found`

## Compare links

`GET /links/stats`

Clicks and enquiries for each of your links over the last 7, 30 or 90 days (UTC, today included), newest link first.

Clicks count the readers a link brought to its catalog or flipbook; bots aren't counted. Enquiries are the ones those readers sent from it. You get both for each day, and each link's totals for the same number of days before, while those days are kept.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `window` | 7 · 30 · 90 | No | How many days to count over, today included. Default 30. |

### Example

```sh
curl https://app.reeflip.com/api/v1/links/stats \
  -H "Authorization: Bearer $REEFLIP_KEY"
```

### Response: 200 OK

```json
{
  "window_days": 1,
  "from": "2026-12-02",
  "to": "2026-12-02",
  "items": [
    {
      "link_id": "9be66fe6-4b3d-4de2-a655-b81edaa4d7fb",
      "code": "",
      "name": "Instagram bio",
      "clicks": 87,
      "enquiries": 9,
      "days": [
        {
          "day": "2026-12-02",
          "clicks": 87,
          "enquiries": 9
        }
      ],
      "previous": {
        "clicks": 87,
        "enquiries": 9
      }
    }
  ]
}
```
