---
title: "Open a gift link"
method: GET
path: "/api/gift/{token}"
tags: ["gifts"]
---

# Open a gift link

`GET /api/gift/{token}`

## Request

- Base URL: `https://leafle.org` (the document declares no server; this is the origin it was published from)
- URL: `https://leafle.org/api/gift/{token}`
- Auth: none required

**Access: signed link.** The token in the path is the credential.

Returns only the reader-approved gift card, previously generated suggestions and claims. No account sign-in is needed. Reading and claiming remain possible after the link's recommendation allowance is spent, until expiry or revocation.

## Path parameters

- `token` string, required

## Response `200`

Successful Response

- GiftPage: GET /api/gift/{token} — the giver's landing payload (public; token-credential).
  - `label` string, required
  - `card` GiftCard, required: The reader-approved taste card — exactly the `gifts.sanitise_card` whitelist. Stored frozen per link, so extra/legacy keys pass through and absent ones stay absent; a fresh card always carries all seven.
    - `summary` string, nullable
    - `themes_and_moods` string, nullable
    - `favourite_authors` string[], nullable
    - `books_they_love` BookRef[], nullable
      - `title` string, required
      - `author` string, required
    - `format_preference` string, nullable
    - `reading_stage` string, nullable
    - `language` string, nullable
  - `claimed` BookRef[], required
    - `title` string, required
    - `author` string, required
  - `picks` GiftPick[], required
    - `title` string, nullable
    - `author` string, nullable
    - `why_this_gift` string, nullable
    - `buy_url` string, nullable
    - `isbn` string, nullable
    - `year` union
      - integer
      - string
    - `cover_url` string, nullable
    - `review_url` string, nullable

## Other responses

- `410`: This link is no longer available.
- `422`: Validation Error

---

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