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

# Lookup Marketplace Registration

`POST /api/v1/marketplace/registrations/lookup`

## 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/lookup`
- Auth: none declared

What the link's purchase is, where it is connected, and the
workspaces the caller could connect it to. A connected link stays
readable until it expires.

## Request body

- MarketplaceRegistrationRequest
  - `secret` string, required

## Response `200`

Successful Response

- MarketplaceRegistrationResponse: The purchase a link connects. connected_workspace is set only when the caller is a member of the workspace holding it; any other holder reads as connected_elsewhere, never by name.
  - `license_state` 'pending' | 'active' | 'ended', required: Where an AWS Marketplace license stands (the CHECK's mirror): pending until GetEntitlements first grants it, active while AWS grants it, ended once AWS stops — the day AWS says, never a guess of ours.
  - `expires_at` string, date-time, nullable, required
  - `ended_at` string, date-time, nullable, required
  - `connected_workspace` MarketplaceWorkspace, required
    - `id` string, uuid, required
    - `name` string, required
  - `connected_elsewhere` boolean, required
  - `owner_workspaces` MarketplaceWorkspace[], required
    - `id` string, uuid, required
    - `name` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Unknown link
- `405`: Method not allowed
- `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)
