List attribute definitions
Retrieves a paginated list of attribute definitions in your account. Each definition includes its data type, scope, and metadata.
This endpoint returns a paginated list of attribute definitions. Each definition object contains its data type, scope, and metadata.
Query parameters
Filter definitions by their scope. Available scopes:
eventDefinition
: Event-related attributescompany
: Company-related attributescompanyMembership
: Company membership attributesuser
: User-related attributes
Filter definitions by event name(s). You can provide:
- Single value:
eventName=page_viewed
- Multiple values:
eventName[]=page_viewed&eventName[]=clicked
Sort the results by one or more fields. Available fields:
createdAt
: Creation timestampcodeName
: Technical namedisplayName
: Display name
Examples:
- Single field:
orderBy=createdAt
ororderBy=-createdAt
(descending) - Multiple fields:
orderBy[]=-createdAt&orderBy[]=name
Specifies the maximum number of items to return in a single response. The value must be between 1 and 100. If not specified, defaults to 20 items per page.
Specifies the starting point for the next page of results. The response will include items that come after (but not including) the object with this ID. To get the next page, use the ID of the last item from your previous request. The easiest way is to use the list object’s cursor field. If not provided, the API will return items from the beginning of the list.
Response
Returns a list object containing an array of attribute definition objects in the results
property. The response includes pagination information in the next
and previous
fields.