---
title: "Claim anonymous decks onto the logged-in account"
method: POST
path: "/api/claim"
tags: ["Claim"]
---

# Claim anonymous decks onto the logged-in account

`POST /api/claim`

## Request

- Base URL: `https://slidesfly.com`
- URL: `https://slidesfly.com/api/claim`
- Auth: HTTP bearer

Send claim tokens only in the JSON body. This credential-bearing route
rejects every query parameter.

## Request body

- object[]
  - `deck_id` string, required
  - `claim_token` string, required

## Response `200`

Claim result

- ClaimSuccess
  - `ok` unknown, required
  - `data` object, required
    - `claimed` string[], required
    - `failed` object[], required
      - `deck_id` string
      - `reason` string

## Other responses

- `401`: Missing or invalid credentials

---

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