Productsup
Platform API

Site tags

List, create, and delete site tags using the Platform API.

2 min read

Site tag endpoints let you manage and customize tags on your Productsup sites. Tags provide a flexible way to identify and reference sites using your own key-value pairs.

List

Use a GET request to list all tags for a site or retrieve a specific tag by its ID.

List all tags for a site

GET https://platform-api.productsup.io/platform/v2/sites/<siteId>/tags

curl --location 'https://platform-api.productsup.io/platform/v2/sites/<SITE_ID>/tags' \
--header 'X-Auth-Token: TOKEN'
FieldTypeDescription
siteIdintegerSite to list tags for

Get a tag by its identifier

GET https://platform-api.productsup.io/platform/v2/sites/<siteId>/tags/<tagId>

curl --location 'https://platform-api.productsup.io/platform/v2/sites/<SITE_ID>/tags/<TAG_ID>' \
--header 'X-Auth-Token: TOKEN'
FieldTypeDescription
siteIdintegerSite the tag belongs to
tagIdintegerTag to retrieve

Create

Use a POST request to create a new tag for a site.

POST https://platform-api.productsup.io/platform/v2/sites/<siteId>/tags

curl --location 'https://platform-api.productsup.io/platform/v2/sites/<SITE_ID>/tags' \
--header 'X-Auth-Token: TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "site_id": "<SITE_ID>",
  "key": "<TAG_KEY>",
  "value": "<TAG_VALUE>",
  "readonly": 0
}'

Request body fields

FieldTypeDescription
site_idstringSite the tag belongs to
keystringName of the tag
valuestringValue of the tag
readonlyintegerSet to 1 to prevent end users from editing this tag in the platform UI

A tag's key must be unique per site. Creating a tag with a key that already exists for that site returns an error.

Delete

Use a DELETE request to remove a tag from a site.

DELETE https://platform-api.productsup.io/platform/v2/sites/<siteId>/tags/<tagId>

curl --location --request DELETE 'https://platform-api.productsup.io/platform/v2/sites/<SITE_ID>/tags/<TAG_ID>' \
--header 'X-Auth-Token: TOKEN'
FieldTypeDescription
siteIdintegerSite the tag belongs to
tagIdintegerTag to delete

On this page

Still stuck?

Reach out to our support team and we’ll help you get unstuck.

Contact support