Tags

This endpoint is designed to fetch your tags and create them. Combine this with cached_tag_ids in the visitor table to get a true picture on how everything is mapped out.

get
Get Tags

https://app.bentonow.com/api/v1/fetch/tags
Returns a list of tags in your account.
Request
Response
Request
Headers
Basic Auth
required
string
publishable_key:secret_key
Query Parameters
site_uuid
required
string
Your site's unique identifier.
Response
200: OK
Returns all your accounts tags.
{
"data": [
{
"id": "174",
"type": "tags",
"attributes": {
"name": "test1",
"created_at": "2021-04-09T01:29:46.385Z",
"discarded_at": null
}
}
]
}

post
Create Tag

https://app.bentonow.com/api/v1/fetch/tags
Creates a tag instantly in your account.
Request
Response
Request
Headers
Basic Authentication
required
string
publishable_key:secret_key
Query Parameters
site_uuid
required
string
Your site's unique identifier.
Body Parameters
tag
optional
object
{ "name": "example" }
Response
200: OK
Returns the created tag.
{
"data": [
{
"id": "174",
"type": "tags",
"attributes": {
"name": "test1",
"created_at": "2021-04-09T01:29:46.385Z",
"discarded_at": null
}
}
]
}