curl --request GET \
--url https://api.affinity.co/v2/lists/{listId}/fields \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "affinity-data-description",
"name": "Description",
"type": "enriched",
"valueType": "text",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-industry",
"name": "Industry",
"type": "enriched",
"valueType": "filterable-text-multi",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-investment-stage",
"name": "Investment Stage",
"type": "enriched",
"valueType": "filterable-text",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-investors",
"name": "Investors",
"type": "enriched",
"valueType": "filterable-text-multi",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-last-funding-amount",
"name": "Last Funding Amount (USD)",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-last-funding-date",
"name": "Last Funding Date",
"type": "enriched",
"valueType": "datetime",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-linkedin-url",
"name": "LinkedIn URL",
"type": "enriched",
"valueType": "text",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-location",
"name": "Location",
"type": "enriched",
"valueType": "location",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-number-of-employees",
"name": "Number of Employees",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-total-funding-amount",
"name": "Total Funding Amount (USD)",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-year-founded",
"name": "Year Founded",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "field-1",
"name": "Custom global field",
"type": "global",
"valueType": "text",
"enrichmentSource": null
},
{
"id": "field-2",
"name": "Custom list field",
"type": "list",
"valueType": "text",
"enrichmentSource": null
},
{
"id": "first-chat-message",
"name": "First Chat Message",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "first-email",
"name": "First Email",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "first-event",
"name": "First Event",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-chat-message",
"name": "Last Chat Message",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-contact",
"name": "Last Contact",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-email",
"name": "Last Email",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-event",
"name": "Last Event",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "next-event",
"name": "Next Event",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "source-of-introduction",
"name": "Source of Introduction",
"type": "relationship-intelligence",
"valueType": "person",
"enrichmentSource": null
}
],
"pagination": {
"prevUrl": "https://api.affinity.co/v2/lists/1/fields?cursor=ICAgICAgYmVmb3JlOjo6Nw",
"nextUrl": "https://api.affinity.co/v2/lists/1/fields?cursor=ICAgICAgIGFmdGVyOjo6NA"
}
}Returns metadata on the Fields available on a single List.
Use the returned Field IDs to request field data from the GET /v2/lists/{listId}/list-entries endpoint.
curl --request GET \
--url https://api.affinity.co/v2/lists/{listId}/fields \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "affinity-data-description",
"name": "Description",
"type": "enriched",
"valueType": "text",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-industry",
"name": "Industry",
"type": "enriched",
"valueType": "filterable-text-multi",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-investment-stage",
"name": "Investment Stage",
"type": "enriched",
"valueType": "filterable-text",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-investors",
"name": "Investors",
"type": "enriched",
"valueType": "filterable-text-multi",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-last-funding-amount",
"name": "Last Funding Amount (USD)",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-last-funding-date",
"name": "Last Funding Date",
"type": "enriched",
"valueType": "datetime",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-linkedin-url",
"name": "LinkedIn URL",
"type": "enriched",
"valueType": "text",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-location",
"name": "Location",
"type": "enriched",
"valueType": "location",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-number-of-employees",
"name": "Number of Employees",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-total-funding-amount",
"name": "Total Funding Amount (USD)",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "affinity-data-year-founded",
"name": "Year Founded",
"type": "enriched",
"valueType": "number",
"enrichmentSource": "affinity-data"
},
{
"id": "field-1",
"name": "Custom global field",
"type": "global",
"valueType": "text",
"enrichmentSource": null
},
{
"id": "field-2",
"name": "Custom list field",
"type": "list",
"valueType": "text",
"enrichmentSource": null
},
{
"id": "first-chat-message",
"name": "First Chat Message",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "first-email",
"name": "First Email",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "first-event",
"name": "First Event",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-chat-message",
"name": "Last Chat Message",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-contact",
"name": "Last Contact",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-email",
"name": "Last Email",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "last-event",
"name": "Last Event",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "next-event",
"name": "Next Event",
"type": "relationship-intelligence",
"valueType": "interaction",
"enrichmentSource": null
},
{
"id": "source-of-introduction",
"name": "Source of Introduction",
"type": "relationship-intelligence",
"valueType": "person",
"enrichmentSource": null
}
],
"pagination": {
"prevUrl": "https://api.affinity.co/v2/lists/1/fields?cursor=ICAgICAgYmVmb3JlOjo6Nw",
"nextUrl": "https://api.affinity.co/v2/lists/1/fields?cursor=ICAgICAgIGFmdGVyOjo6NA"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List ID
1 <= x <= 9007199254740991Cursor for the next or previous page
"ICAgICAgYmVmb3JlOjo6Nw"
Number of items to include in the page
1 <= x <= 100100
OK
FieldMetadataPaged model
A page of FieldMetadata results
100Show child attributes
Show child attributes
{
"prevUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgYmVmb3JlOjo6Nw",
"nextUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgIGFmdGVyOjo6NA"
}
Was this page helpful?