Fields

This endpoint is designed to fetch your tags.

get
Get Fields

https://app.bentonow.com/api/v1/fetch/fields
This endpoint returns a list of your fields.
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
List of fields returned.
{
"data": [
{
"id": "61",
"type": "visitors-fields",
"attributes": {
"name": "First Name",
"key": "first_name",
"whitelisted": null,
"created_at": "2021-04-07T08:48:45.603Z"
}
},
{
"id": "62",
"type": "visitors-fields",
"attributes": {
"name": "Last Name",
"key": "last_name",
"whitelisted": null,
"created_at": "2021-04-07T08:48:45.616Z"
}
}
]
}

post
Create Field

https://app.bentonow.com/api/v1/fetch/fields
Creates a custom field in your account.
Request
Response
Request
Headers
Basic Auth
required
string
Your publishable key (username) and secret key (password).
Query Parameters
site_uuid
required
string
Your site's unique identifier.
Body Parameters
field
required
object
{ "key": "example" }
Response
201: Created
Returns the created field.
{
"data": [
{
"id": "61",
"type": "visitors-fields",
"attributes": {
"name": "First Name",
"key": "first_name",
"whitelisted": null,
"created_at": "2021-04-07T08:48:45.603Z"
}
}
]
}