---
title: "Claim Marketplace Registration"
method: POST
path: "/api/v1/marketplace/registrations/claim"
tags: ["authed"]
---

# Claim Marketplace Registration

`POST /api/v1/marketplace/registrations/claim`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/marketplace/registrations/claim`
- Auth: none declared

Connect the link's purchase to a workspace the caller owns; from then
on the workspace pays through AWS. Connecting it again to the same
workspace changes nothing.

## Request body

- ClaimMarketplaceRegistrationRequest
  - `secret` string, required
  - `organization_id` string, uuid, required

## Response `200`

Successful Response

- ClaimedMarketplaceRegistrationResponse
  - `connected_workspace` MarketplaceWorkspace, required
    - `id` string, uuid, required
    - `name` string, required

## Other responses

- `401`: Unauthorized
- `403`: Not an owner of the workspace
- `404`: Unknown link
- `405`: Method not allowed
- `409`: The purchase is connected to another workspace
- `410`: The link is past its week
- `422`: Validation error
- `500`: Internal server error

---

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