Skip to main content
GET
/
v2
/
fields
curl --location --request GET 'https://api.audienceful.com/v2/fields' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <your-api-key>'
import requests

url = "https://api.audienceful.com/v2/fields"
headers = {
    "Content-Type": "application/json",
    "X-Api-Key": "<your-api-key>",
}

response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.audienceful.com/v2/fields", {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
    "X-Api-Key": "<your-api-key>",
  },
});
const data = await response.json();
console.log(data);
{
  "data": [
    {
      "id": "4XJA8RZ6kJRwMJYDBETyZa",
      "name": "Email",
      "data_name": "email",
      "type": "string",
      "editable": false,
      "internal": true,
      "required": false
    },
    {
      "id": "o4i4TNZnWsq2f2ZWVqNNWY",
      "name": "Plan",
      "data_name": "plan",
      "type": "string",
      "editable": true,
      "internal": false,
      "required": false
    }
  ],
  "has_more": false,
  "next_cursor": null
}
Requires the fields:read scope.

Query parameters

page_size
number
default:"100"
The number of fields to return per page.
cursor
string
The pagination cursor from a previous response’s next_cursor. See Pagination.

Response

data
array
The page of custom fields.
has_more
boolean
Whether more fields exist after this page.
next_cursor
string or null
The cursor to pass as ?cursor= to fetch the next page.
curl --location --request GET 'https://api.audienceful.com/v2/fields' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <your-api-key>'
import requests

url = "https://api.audienceful.com/v2/fields"
headers = {
    "Content-Type": "application/json",
    "X-Api-Key": "<your-api-key>",
}

response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.audienceful.com/v2/fields", {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
    "X-Api-Key": "<your-api-key>",
  },
});
const data = await response.json();
console.log(data);
{
  "data": [
    {
      "id": "4XJA8RZ6kJRwMJYDBETyZa",
      "name": "Email",
      "data_name": "email",
      "type": "string",
      "editable": false,
      "internal": true,
      "required": false
    },
    {
      "id": "o4i4TNZnWsq2f2ZWVqNNWY",
      "name": "Plan",
      "data_name": "plan",
      "type": "string",
      "editable": true,
      "internal": false,
      "required": false
    }
  ],
  "has_more": false,
  "next_cursor": null
}