> ## Documentation Index
> Fetch the complete documentation index at: https://docs.closient.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Product App Links

> Add, update, list, and remove a product's companion app links (an app store listing or web app per platform, with minimum version and whether the product needs it) -- the programmatic equivalent of the dashboard's app links page.

Programmatic equivalent of the dashboard's `products/<gtin>/app-links/` page.

## When to use

* A product works with a companion app (a smart device, a fitness tracker, a connected
  appliance) and a shopper who scans it should be offered the app for their platform.
* An app moved to a new listing, gained a platform, or now needs a newer version.

## Auth

`X-API-Key` header or OAuth token. Writing takes membership of the product's organization with
the contribute role (Editor or Manager). A read-only key is refused with `403`; a product or
link another organization owns answers `404`, so the API never confirms it exists.

## Flow

```
GET    /products/api/v1/app-links?gtin={gtin}
GET    /products/api/v1/app-links/{link_id}
POST   /products/api/v1/app-links
PATCH  /products/api/v1/app-links/{link_id}
DELETE /products/api/v1/app-links/{link_id}
```

* **List** -- every app link of the product in `gtin`, ordered by `priority`, then platform and
  name.
* **Create** -- the body is `gtin`, `platform`, `name`, `url`, and optionally `description`,
  `minimum_version`, `is_required` and `priority`; fields are listed in the OpenAPI document at
  `/products/api/v1/openapi.json`. The `url` must start with `https://`.
* **Update** -- `PATCH` with only the fields you are changing, addressed by the link's `id`.
* **Delete** -- removes the link permanently.
* **Read back** -- every create and update returns the saved link; list again to confirm.

Returns `403` for a read-only key, `404` for a product or link the caller cannot see, and `422`
for an invalid value, such as an address that is not `https://`.

## Notes

The fields a brand writes on a link are defined once on the model
(`AppLink.BRAND_EDITABLE_FIELDS`); both API schemas are pinned to that set. The dashboard form
edits a named subset of it (platform, name, URL and description).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.