Get a product
Returns the name, the code and the distribution setting of a product.
GET /v1/products/{product}
Use cases
- Show the name of the product on a download page.
- Read the distribution setting. It tells your download page or your application whether to ask for a license key.
- Check that your application can reach the Distribution API.
License checks
Get a product does not check the license. A known key gets the product, also when the license is suspended or expired, or when it belongs to another product in your account. So a 200 answer does not mean that the license gets the releases. To check that, use List releases or Check for an update.
Get a product changes no license and records no activity.
Authentication
Send the license key of the customer. A product with the open distribution setting does not require a key. See Authentication.
Request
{product} is the ID of the product. The request has no body and no query parameters.
| Header | Required | Description |
|---|---|---|
Seatify-License-Key | For a licensed product | The license key of the customer. For an open product, a key that the request sends must be valid. |
Seatify-Nonce | No | A new random value that the signature includes. See Signed responses. |
Seatify-Signing-Key | No | The key ID of the signing key in your application. See Signed responses. |
Response
| Field | Type | Description |
|---|---|---|
id | string | The ID of the product. |
name | string | The name of the product. |
code | string | The code of the product. |
distribution | string | The distribution setting of the product. The value is licensed or open. |
Errors
| Status | Reason | Description |
|---|---|---|
| 400 | The signing key is not known. | Your organization has no signing key with the ID in Seatify-Signing-Key. |
| 400 | The nonce must be at most 255 characters. | The value of Seatify-Nonce is too long. |
| 401 | A license key is required. | The product is licensed, and the request has no Seatify-License-Key header, or the header is empty. |
| 401 | The license key is not valid. | No license in your account has this key. This applies to an open product too. |
| 404 | The product was not found. | No product has this ID. |
| 429 | There are too many requests. Try again later. | See Rate limits. |
See Errors.
Example
curl https://dist.seatify.dev/v1/products/$PRODUCT_ID \
-H "Seatify-License-Key: $LICENSE_KEY"{
"id": "<product id>",
"name": "Beacon Studio",
"code": "BEACON",
"distribution": "licensed"
}