How to create a tag for a new website ?

Send a Json payload with the following structure.

{
   "name": "domain.com", // [REQUIRED] Need to be unique accross all the tags, use the main domain name
   "pbjs_adapter": "pbjs" // [REQUIRED] the name of the Prebidjs global variable
}
curl -H 'Content-Type: application/json' -H 'x-api-key: <API_KEY>' -X POST --data '<JSON_STRING>' https://api.pubstack.io/v1/me/tags

The response is the created tag.

{
    "id":"9f7d550a-120a-4a5d-xxxx-fc7deb033a0f",
    "name":"your tag name",
    "state":"ACTIVE",
    "pbjs_adapter":"pbjs",
    "loader":"https://boot.pbstck.com/v1/tag/9f7d550a-120a-4a5d-xxxx-fc7deb033a0f"
 }

You can directly use the loader URL in order to integrate Pubstack in the HTLM page.

<head>
  ...
  <script async src='https://boot.pbstck.com/v1/tag/9f7d550a-120a-4a5d-xxxx-fc7deb033a0f'></script<
  ...
</head>